Minor improvements (#1461)

* Minor improvements

* Update edit_user_profile.php

* Update init_bb.php

* Update init_bb.php

* Update init_bb.php

* Update usercp_register.tpl

* Update admin_ug_auth.php

* Update admin_ug_auth.tpl

* Update tpl_config.php

* Update viewprofile.php

* Update group_membership.php

* Update group_membership.php

* Update viewtopic.tpl

* Update admin_ug_auth.php

* Update functions.php

* Update admin_ug_auth.php

* Update admin_ug_auth.php

* Update admin_ug_auth.php

* Update admin_forums.php

* Update admin_forums.php

* Update posting_tpl.php

* Update viewforum.php

* Update viewforum.tpl

* Update admin_forums.php

* Update admin_ug_auth.php

* Update admin_ug_auth.php

* Update usercp_viewprofile.tpl

* Update register.php

* Update admin_ug_auth.php

* Update admin_ug_auth.php

* Update posts.php

* Update posting_tpl.php

* Update viewforum.php

* Update admin_forums.php

* Update admin_forums.php

* Update admin_forumauth.php

* Update index_map.tpl

* Update index.tpl

* Update index.tpl

* Update group.php

* Update viewtopic.tpl

* Update change_torrent.php

* Update viewtopic.tpl

* Update viewtopic.php

* Update viewtopic.php

* Update admin_log.php

* Update search.php

* Update usercp_register.tpl

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-05-04 11:58:21 +07:00 committed by GitHub
commit 0ca5fe3abe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 83 additions and 85 deletions

View file

@ -96,7 +96,7 @@ switch ($type) {
$this->prompt_for_confirm($lang['DEL_MOVE_TORRENT']);
}
\TorrentPier\Legacy\Torrent::delete_torrent($attach_id);
$url = make_url("modcp.php?t={$torrent['topic_id']}&mode=move&sid={$userdata['session_id']}");
$url = make_url("modcp.php?" . POST_TOPIC_URL . "={$torrent['topic_id']}&mode=move&sid={$userdata['session_id']}");
break;
}

View file

@ -60,9 +60,8 @@ switch ($field) {
}
if (!isset($lang['GENDER_SELECT'][$value])) {
$this->ajax_die($lang['ERROR']);
} else {
$this->response['new_value'] = $lang['GENDER_SELECT'][$value];
}
$this->response['new_value'] = $lang['GENDER_SELECT'][$value];
break;
case 'user_birthday':
@ -107,8 +106,7 @@ switch ($field) {
case 'user_occ':
case 'user_interests':
$value = htmlCHR($value);
$this->response['new_value'] = $value;
$this->response['new_value'] = htmlCHR($value);
break;
case 'user_regdate':

View file

@ -38,7 +38,7 @@ switch ($mode) {
$href = GROUP_URL . $row['group_id'];
if (IS_ADMIN) {
$href .= "&u=$user_id";
$href .= "&" . POST_USERS_URL . "=$user_id";
$link = '<a href="' . $href . '" class="' . $class . '" target="_blank">' . htmlCHR($row['group_name']) . '</a>';
$html[] = $link;
} else {
@ -48,7 +48,7 @@ switch ($mode) {
}
if ($row['group_moderator'] == $user->id) {
$class .= ' selfMod';
$href .= "&amp;u=$user_id"; // сам юзер модератор этой группы
$href .= "&amp;" . POST_USERS_URL . "=$user_id"; // сам юзер модератор этой группы
}
$link = '<a href="' . $href . '" class="' . $class . '" target="_blank">' . htmlCHR($row['group_name']) . '</a>';
$html[] = $link;

View file

@ -85,7 +85,7 @@ switch ($this->request['type']) {
$message = "[quote]" . $post['topic_title'] . "[/quote]\r";
}
if (mb_strlen($message, 'UTF-8') > 1000) {
$this->response['redirect'] = make_url(POSTING_URL . '?mode=quote&p=' . $post_id);
$this->response['redirect'] = make_url(POSTING_URL . '?mode=quote&' . POST_POST_URL . '=' . $post_id);
}
$this->response['quote'] = true;
@ -112,7 +112,7 @@ switch ($this->request['type']) {
$this->ajax_die($lang['EDIT_OWN_POSTS']);
}
if ((mb_strlen($post['post_text'], 'UTF-8') > 1000) || $post['post_attachment'] || ($post['topic_first_post_id'] == $post_id)) {
$this->response['redirect'] = make_url(POSTING_URL . '?mode=editpost&p=' . $post_id);
$this->response['redirect'] = make_url(POSTING_URL . '?mode=editpost&' . POST_POST_URL . '=' . $post_id);
} elseif ($this->request['type'] == 'editor') {
$text = (string)$this->request['text'];
$text = prepare_message($text);