Incorrect case close operands

This commit is contained in:
Yuriy Pikhtarev 2017-01-30 22:36:51 +03:00
commit 19dffe09b4
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
5 changed files with 19 additions and 13 deletions

View file

@ -81,7 +81,7 @@ switch ($ajax->action) {
require(INC_DIR . 'functions_group.php'); require(INC_DIR . 'functions_group.php');
break; break;
case 'sitemap'; case 'sitemap':
require(CLASS_DIR . 'sitemap.php'); require(CLASS_DIR . 'sitemap.php');
break; break;
} }

View file

@ -34,7 +34,9 @@ return [
'hostname' => '127.0.0.1', 'hostname' => '127.0.0.1',
'database' => 'tp_220', 'database' => 'tp_220',
'username' => 'user', 'username' => 'user',
'password' => function() { return 'pass'; }, 'password' => function () {
return 'pass';
},
'charset' => 'utf8' 'charset' => 'utf8'
], ],

View file

@ -45,9 +45,9 @@ $type = (string)$this->request['type'];
$title = $url = ''; $title = $url = '';
switch ($type) { switch ($type) {
case 'set_gold'; case 'set_gold':
case 'set_silver'; case 'set_silver':
case 'unset_silver_gold'; case 'unset_silver_gold':
if ($type == 'set_silver') { if ($type == 'set_silver') {
$tor_type = TOR_TYPE_SILVER; $tor_type = TOR_TYPE_SILVER;
} elseif ($type == 'set_gold') { } elseif ($type == 'set_gold') {
@ -60,17 +60,17 @@ switch ($type) {
$title = $lang['CHANGE_TOR_TYPE']; $title = $lang['CHANGE_TOR_TYPE'];
break; break;
case 'reg'; case 'reg':
tracker_register($topic_id); tracker_register($topic_id);
$url = (TOPIC_URL . $topic_id); $url = (TOPIC_URL . $topic_id);
break; break;
case 'unreg'; case 'unreg':
tracker_unregister($topic_id); tracker_unregister($topic_id);
$url = (TOPIC_URL . $topic_id); $url = (TOPIC_URL . $topic_id);
break; break;
case 'del_torrent'; case 'del_torrent':
if (empty($this->request['confirmed'])) { if (empty($this->request['confirmed'])) {
$this->prompt_for_confirm($lang['DEL_TORRENT']); $this->prompt_for_confirm($lang['DEL_TORRENT']);
} }
@ -78,7 +78,7 @@ switch ($type) {
$url = make_url(TOPIC_URL . $topic_id); $url = make_url(TOPIC_URL . $topic_id);
break; break;
case 'del_torrent_move_topic'; case 'del_torrent_move_topic':
if (empty($this->request['confirmed'])) { if (empty($this->request['confirmed'])) {
$this->prompt_for_confirm($lang['DEL_MOVE_TORRENT']); $this->prompt_for_confirm($lang['DEL_MOVE_TORRENT']);
} }

View file

@ -74,7 +74,7 @@ if (!defined('WORD_LIST_OBTAINED')) {
} }
switch ($this->request['type']) { 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 ($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'])) { if (empty($this->request['confirmed'])) {
$this->prompt_for_confirm($lang['CONFIRM_DELETE']); $this->prompt_for_confirm($lang['CONFIRM_DELETE']);
@ -91,7 +91,7 @@ switch ($this->request['type']) {
} }
break; break;
case 'reply'; case 'reply':
if (bf($userdata['user_opt'], 'user_opt', 'dis_post')) { if (bf($userdata['user_opt'], 'user_opt', 'dis_post')) {
$this->ajax_die(strip_tags($lang['RULES_REPLY_CANNOT'])); $this->ajax_die(strip_tags($lang['RULES_REPLY_CANNOT']));
} elseif (!$is_auth['auth_reply']) { } elseif (!$is_auth['auth_reply']) {

View file

@ -29,8 +29,12 @@ if (!defined('BB_ROOT')) {
class emailer class emailer
{ {
public $msg, $subject, $extra_headers; public $msg;
public $addresses, $reply_to, $from; public $subject;
public $extra_headers;
public $addresses;
public $reply_to;
public $from;
public $use_smtp; public $use_smtp;
public $tpl_msg = array(); public $tpl_msg = array();