mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update change_tor_status.php
This commit is contained in:
parent
dba2e5ba6d
commit
92add64d03
@ -9,6 +9,7 @@ if (!isset($this->request['attach_id'])) $this->ajax_die($lang['EMPTY_ATTACH_ID'
|
||||
$attach_id = (int) $this->request['attach_id'];
|
||||
$mode = (string) $this->request['mode'];
|
||||
|
||||
$comment = '';
|
||||
if ($bb_cfg['tor_comment'])
|
||||
{
|
||||
$comment = (string) $this->request['comment'];
|
||||
@ -101,6 +102,10 @@ switch ($mode)
|
||||
send_pm($tor['checked_user_id'], $subject, $message, $userdata['user_id']);
|
||||
cache_rm_user_sessions($tor['checked_user_id']);
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->ajax_die('Invalid mode');
|
||||
break;
|
||||
}
|
||||
|
||||
$this->response['attach_id'] = $attach_id;
|
||||
$this->response['attach_id'] = $attach_id;
|
||||
|
Loading…
Reference in New Issue
Block a user