Убрал send в чат из user::class. Убрал лишние вызовы.
This commit is contained in:
@@ -347,11 +347,13 @@ if (isset($_GET['usemod'])) {
|
||||
}
|
||||
}
|
||||
if (isset($_POST['tologin'], $_POST['message'])) {
|
||||
$u->send(
|
||||
'', 1, $infcity, '', htmlspecialchars($_POST['tologin'], null),
|
||||
'<font color=darkblue>Сообщение телеграфом от </font> <b>' . $u->info['login'] . '</b>: ' . $_POST['message'] . '',
|
||||
-1, 6, 0, 0, 0, 1
|
||||
);
|
||||
$cmsg = new ChatMessage();
|
||||
$cmsg->setRoom(1);
|
||||
$cmsg->setCity($infcity);
|
||||
$cmsg->setTo($_POST['tologin']);
|
||||
$cmsg->setText('<span style="color: darkblue; ">Сообщение телеграфом от </span> <b>' . $u->info['login'] . '</b>: ' . $_POST['message']);
|
||||
$cmsg->setType(6);
|
||||
(new Chat())->sendMsg($cmsg);
|
||||
}
|
||||
?>
|
||||
<table>
|
||||
|
||||
Reference in New Issue
Block a user