mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
Incorrect case close operands
This commit is contained in:
parent
b87e2000ca
commit
19dffe09b4
5 changed files with 19 additions and 13 deletions
2
ajax.php
2
ajax.php
|
@ -81,7 +81,7 @@ switch ($ajax->action) {
|
|||
require(INC_DIR . 'functions_group.php');
|
||||
break;
|
||||
|
||||
case 'sitemap';
|
||||
case 'sitemap':
|
||||
require(CLASS_DIR . 'sitemap.php');
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -34,7 +34,9 @@ return [
|
|||
'hostname' => '127.0.0.1',
|
||||
'database' => 'tp_220',
|
||||
'username' => 'user',
|
||||
'password' => function() { return 'pass'; },
|
||||
'password' => function () {
|
||||
return 'pass';
|
||||
},
|
||||
'charset' => 'utf8'
|
||||
],
|
||||
|
||||
|
|
|
@ -45,9 +45,9 @@ $type = (string)$this->request['type'];
|
|||
$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') {
|
||||
|
@ -60,17 +60,17 @@ switch ($type) {
|
|||
$title = $lang['CHANGE_TOR_TYPE'];
|
||||
break;
|
||||
|
||||
case 'reg';
|
||||
case 'reg':
|
||||
tracker_register($topic_id);
|
||||
$url = (TOPIC_URL . $topic_id);
|
||||
break;
|
||||
|
||||
case 'unreg';
|
||||
case 'unreg':
|
||||
tracker_unregister($topic_id);
|
||||
$url = (TOPIC_URL . $topic_id);
|
||||
break;
|
||||
|
||||
case 'del_torrent';
|
||||
case 'del_torrent':
|
||||
if (empty($this->request['confirmed'])) {
|
||||
$this->prompt_for_confirm($lang['DEL_TORRENT']);
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ switch ($type) {
|
|||
$url = make_url(TOPIC_URL . $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']);
|
||||
}
|
||||
|
|
|
@ -74,7 +74,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']);
|
||||
|
@ -91,7 +91,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']) {
|
||||
|
|
|
@ -29,8 +29,12 @@ if (!defined('BB_ROOT')) {
|
|||
|
||||
class emailer
|
||||
{
|
||||
public $msg, $subject, $extra_headers;
|
||||
public $addresses, $reply_to, $from;
|
||||
public $msg;
|
||||
public $subject;
|
||||
public $extra_headers;
|
||||
public $addresses;
|
||||
public $reply_to;
|
||||
public $from;
|
||||
public $use_smtp;
|
||||
|
||||
public $tpl_msg = array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue