mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Incorrect case close operands
This commit is contained in:
parent
2e092c7bd4
commit
a978ae260a
7 changed files with 22 additions and 19 deletions
|
@ -75,9 +75,9 @@ if ($torrent['poster_id'] == $userdata['user_id'] && !IS_AM) {
|
|||
|
||||
$title = $url = '';
|
||||
switch ($type) {
|
||||
case 'set_gold';
|
||||
case 'set_silver';
|
||||
case 'unset_silver_gold';
|
||||
case 'set_gold':
|
||||
case 'set_silver':
|
||||
case 'unset_silver_gold':
|
||||
if ($type == 'set_silver') {
|
||||
$tor_type = TOR_TYPE_SILVER;
|
||||
} elseif ($type == 'set_gold') {
|
||||
|
@ -90,17 +90,17 @@ switch ($type) {
|
|||
$url = make_url(TOPIC_URL . $torrent['topic_id']);
|
||||
break;
|
||||
|
||||
case 'reg';
|
||||
case 'reg':
|
||||
tracker_register($attach_id);
|
||||
$url = (TOPIC_URL . $torrent['topic_id']);
|
||||
break;
|
||||
|
||||
case 'unreg';
|
||||
case 'unreg':
|
||||
tracker_unregister($attach_id);
|
||||
$url = (TOPIC_URL . $torrent['topic_id']);
|
||||
break;
|
||||
|
||||
case 'del_torrent';
|
||||
case 'del_torrent':
|
||||
if (empty($this->request['confirmed'])) {
|
||||
$this->prompt_for_confirm($lang['DEL_TORRENT']);
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ switch ($type) {
|
|||
$url = make_url(TOPIC_URL . $torrent['topic_id']);
|
||||
break;
|
||||
|
||||
case 'del_torrent_move_topic';
|
||||
case 'del_torrent_move_topic':
|
||||
if (empty($this->request['confirmed'])) {
|
||||
$this->prompt_for_confirm($lang['DEL_MOVE_TORRENT']);
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ if (!defined('WORD_LIST_OBTAINED')) {
|
|||
}
|
||||
|
||||
switch ($this->request['type']) {
|
||||
case 'delete';
|
||||
case 'delete':
|
||||
if ($post['post_id'] != $post['topic_first_post_id'] && $is_auth['auth_delete'] && ($is_auth['auth_mod'] || ($userdata['user_id'] == $post['poster_id'] && $post['topic_last_post_id'] == $post['post_id'] && $post['post_time'] + 3600 * 3 > TIMENOW))) {
|
||||
if (empty($this->request['confirmed'])) {
|
||||
$this->prompt_for_confirm($lang['CONFIRM_DELETE']);
|
||||
|
@ -88,7 +88,7 @@ switch ($this->request['type']) {
|
|||
}
|
||||
break;
|
||||
|
||||
case 'reply';
|
||||
case 'reply':
|
||||
if (bf($userdata['user_opt'], 'user_opt', 'dis_post')) {
|
||||
$this->ajax_die(strip_tags($lang['RULES_REPLY_CANNOT']));
|
||||
} elseif (!$is_auth['auth_reply']) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue