Update change_tor_status.php

This commit is contained in:
Roman Kelesidis 2024-01-03 19:19:53 +07:00
parent dba2e5ba6d
commit 92add64d03

View File

@ -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;