diff --git a/library/ajax/manage_admin.php b/library/ajax/manage_admin.php index 2ab460080..02789fcf1 100644 --- a/library/ajax/manage_admin.php +++ b/library/ajax/manage_admin.php @@ -13,7 +13,9 @@ if (!defined('IN_AJAX')) { global $userdata, $lang, $bb_cfg; -$mode = (string)$this->request['mode']; +if (!$mode = (string)$this->request['mode']) { + $this->ajax_die('invalid mode (empty)'); +} switch ($mode) { case 'clear_cache': diff --git a/library/ajax/manage_user.php b/library/ajax/manage_user.php index 9d58c832c..c3696d732 100644 --- a/library/ajax/manage_user.php +++ b/library/ajax/manage_user.php @@ -13,8 +13,13 @@ if (!defined('IN_AJAX')) { global $userdata, $lang, $bb_cfg; -$mode = (string)$this->request['mode']; -$user_id = $this->request['user_id']; +if (!$mode = (string)$this->request['mode']) { + $this->ajax_die('invalid mode (empty)'); +} + +if (!$user_id = (int)$this->request['user_id']) { + $this->ajax_die($lang['NO_USER_ID_SPECIFIED']); +} switch ($mode) { case 'delete_profile': diff --git a/library/ajax/mod_action.php b/library/ajax/mod_action.php index ff29caeff..4d449e9cb 100644 --- a/library/ajax/mod_action.php +++ b/library/ajax/mod_action.php @@ -13,7 +13,9 @@ if (!defined('IN_AJAX')) { global $userdata, $bb_cfg, $lang, $datastore, $log_action; -$mode = (string)$this->request['mode']; +if (!$mode = (string)$this->request['mode']) { + $this->ajax_die('invalid mode (empty)'); +} switch ($mode) { case 'tor_status': diff --git a/library/ajax/sitemap.php b/library/ajax/sitemap.php index 5af1fb19f..3c924a929 100644 --- a/library/ajax/sitemap.php +++ b/library/ajax/sitemap.php @@ -13,7 +13,10 @@ if (!defined('IN_AJAX')) { global $bb_cfg, $lang; -$mode = (string)$this->request['mode']; +if (!$mode = (string)$this->request['mode']) { + $this->ajax_die('invalid mode (empty)'); +} + $map = new TorrentPier\Sitemap(); $html = ''; diff --git a/library/ajax/user_register.php b/library/ajax/user_register.php index 2638943c7..1baba2474 100644 --- a/library/ajax/user_register.php +++ b/library/ajax/user_register.php @@ -13,7 +13,9 @@ if (!defined('IN_AJAX')) { global $bb_cfg, $lang, $userdata; -$mode = (string)$this->request['mode']; +if (!$mode = (string)$this->request['mode']) { + $this->ajax_die('invalid mode (empty)'); +} $html = ''; switch ($mode) { diff --git a/library/attach_mod/displaying_torrent.php b/library/attach_mod/displaying_torrent.php index 49435c1b5..1cc5fbcd1 100644 --- a/library/attach_mod/displaying_torrent.php +++ b/library/attach_mod/displaying_torrent.php @@ -13,6 +13,7 @@ if (!defined('BB_ROOT')) { global $bb_cfg, $t_data, $poster_id, $is_auth, $dl_link_css, $dl_status_css, $lang, $images; +$tor_status_by_for_all = true; $change_peers_bgr_over = true; $bgr_class_1 = 'row1'; $bgr_class_2 = 'row2'; @@ -201,7 +202,7 @@ if ($tor_reged && $tor_info) { 'TOR_FROZEN' => (!IS_AM) ? (isset($bb_cfg['tor_frozen'][$tor_info['tor_status']]) && !(isset($bb_cfg['tor_frozen_author_download'][$tor_info['tor_status']]) && $userdata['user_id'] == $tor_info['poster_id'])) ? true : '' : '', 'TOR_STATUS_TEXT' => $lang['TOR_STATUS_NAME'][$tor_info['tor_status']], 'TOR_STATUS_ICON' => $bb_cfg['tor_icons'][$tor_info['tor_status']], - 'TOR_STATUS_BY' => ($tor_info['checked_user_id'] && $is_auth['auth_mod']) ? (' · ' . profile_url($tor_info) . ' · ' . delta_time($tor_info['checked_time']) . $lang['TOR_BACK'] . '') : '', + 'TOR_STATUS_BY' => ($tor_info['checked_user_id'] && ($is_auth['auth_mod'] || $tor_status_by_for_all)) ? (' · ' . profile_url($tor_info) . ' · ' . delta_time($tor_info['checked_time']) . $lang['TOR_BACK'] . '') : '', 'TOR_STATUS_SELECT' => build_select('sel_status', array_flip($lang['TOR_STATUS_NAME']), TOR_APPROVED), 'TOR_STATUS_REPLY' => $bb_cfg['tor_comment'] && !IS_GUEST && in_array($tor_info['tor_status'], $bb_cfg['tor_reply']) && $userdata['user_id'] == $tor_info['poster_id'] && $t_data['topic_status'] != TOPIC_LOCKED, //end torrent status mod diff --git a/src/Legacy/Atom.php b/src/Legacy/Atom.php index 22b13fee2..45a004490 100644 --- a/src/Legacy/Atom.php +++ b/src/Legacy/Atom.php @@ -221,7 +221,7 @@ class Atom $atom .= " \n"; $atom .= " " . $date . "T$time+00:00\n"; $atom .= " tag:rto.feed," . $date . ":/t/$topic_id\n"; - $atom .= " \n"; + $atom .= " \n"; $atom .= "\n"; } $atom .= ""; diff --git a/styles/templates/default/group_edit.tpl b/styles/templates/default/group_edit.tpl index e1aa44107..3f984c15b 100644 --- a/styles/templates/default/group_edit.tpl +++ b/styles/templates/default/group_edit.tpl @@ -18,75 +18,98 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{L_GROUP_INFORMATION}
{L_GROUP_NAME}:
{L_GROUP_DESCRIPTION}:
-

- -

-

- - -

-
{L_SIGNATURE}:
-

- -

-

- - -

-
{L_GROUP_TYPE}: -

-    -    - -

-
{L_RELEASE_GROUP}: -    - -
- {L_AVATAR}:

-
-

{AVATAR_IMG}


-

-
-
-
{AVATAR_EXPLAIN}
- -
-
- {S_HIDDEN_FIELDS} - - - -
- -
{L_GROUP_INFORMATION}
{L_GROUP_NAME}:
{L_GROUP_DESCRIPTION}: +

+ +

+

+ + +

+
{L_SIGNATURE}: +

+ +

+

+ + +

+
{L_GROUP_TYPE}: +

+    +    + +

+
{L_RELEASE_GROUP}: +    + +
+ {L_AVATAR}:

+
+

{AVATAR_IMG}


+

+
+
+
{AVATAR_EXPLAIN}
+ +
+
+ {S_HIDDEN_FIELDS} + + + +
+ +
diff --git a/styles/templates/default/usercp_bonus.tpl b/styles/templates/default/usercp_bonus.tpl index 3f62f5f7a..7c18438ca 100644 --- a/styles/templates/default/usercp_bonus.tpl +++ b/styles/templates/default/usercp_bonus.tpl @@ -1,4 +1,4 @@ -{PAGE_TITLE} +

{PAGE_TITLE}

diff --git a/styles/templates/default/usercp_viewprofile.tpl b/styles/templates/default/usercp_viewprofile.tpl index 38acc9144..4dcb9034e 100644 --- a/styles/templates/default/usercp_viewprofile.tpl +++ b/styles/templates/default/usercp_viewprofile.tpl @@ -438,7 +438,7 @@ ajax.callback.index_data = function(data) { - +
{L_GENDER}:{GENDER}{GENDER}