Убрал send в чат из user::class. Убрал лишние вызовы.

This commit is contained in:
2023-02-02 17:39:42 +02:00
parent a9dc9af61e
commit 253a8dca63
10 changed files with 622 additions and 586 deletions
+7 -5
View File
@@ -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>