Реализация ChatMessageDTO.

This commit is contained in:
2023-01-28 04:24:37 +02:00
parent d9ec810f7f
commit 99b90a198b
105 changed files with 11492 additions and 10578 deletions
+7 -4
View File
@@ -138,10 +138,13 @@ if (!isset($user) || $user['id'] != $u->info['id']) {
$_SERVER['HTTP_X_REAL_IP']
) . '","loto")'
);
mysql_query(
'INSERT INTO `chat` (`text`,`city`,`to`,`type`,`new`,`time`) VALUES ("<font color=#000000>Игрок <b>' . $user['login'] . '</b> выиграл в бесплатной рулетке <b>' . $inf['name'] . '</b>!</font>","capitalcity","","6","1","' . time(
) . '")'
);
$chat = new Chat();
$chatMessageDto = new ChatMessage();
$chatMessageDto->setText("Игрок <b>{$user['login']}</b> выиграл в бесплатной рулетке <b>{$inf['name']}</b>!");
$chatMessageDto->setType(6);
$chat->sendMsg($chatMessageDto);
echo $droplist['id']; //
}
}