mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Incorrect case close operators
https://github.com/torrentpier/torrentpier/pull/134 https://github.com/torrentpier/torrentpier/pull/133
This commit is contained in:
parent
686133fe54
commit
ff4fd0510f
2
ajax.php
2
ajax.php
@ -66,7 +66,7 @@ switch ($ajax->action)
|
||||
require(INC_DIR . 'functions_group.php');
|
||||
break;
|
||||
|
||||
case 'sitemap';
|
||||
case 'sitemap':
|
||||
require(CLASS_DIR .'sitemap.php');
|
||||
break;
|
||||
}
|
||||
|
@ -57,9 +57,9 @@ elseif (!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;
|
||||
@ -77,23 +77,23 @@ 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']);
|
||||
delete_torrent($attach_id);
|
||||
$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']);
|
||||
delete_torrent($attach_id);
|
||||
$url = make_url("modcp.php?t={$torrent['topic_id']}&mode=move&sid={$userdata['session_id']}");
|
||||
|
@ -49,7 +49,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']))
|
||||
@ -70,7 +70,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']));
|
||||
|
Loading…
Reference in New Issue
Block a user