Реализация ChatMessageDTO.
This commit is contained in:
11
main.php
11
main.php
@@ -236,10 +236,13 @@ if (isset($_GET['atak_user']) && $u->info['battle'] == 0 && $_GET['atak_user'] !
|
||||
}
|
||||
|
||||
if ($goodt > 0) {
|
||||
mysql_query(
|
||||
"INSERT INTO `chat` (`new`,`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (1,'" . $u->info['city'] . "','" . $u->info['room'] . "','','','" . $rtxt . "','" . time(
|
||||
) . "','6','0','1')"
|
||||
);
|
||||
$chatDto = new ChatMessage();
|
||||
$chatDto->setCity($u->info['city']);
|
||||
$chatDto->setRoom($u->info['room']);
|
||||
$chatDto->setText($rtxt);
|
||||
$chatDto->setType(6);
|
||||
$chatDto->setTypeTime(1);
|
||||
(new Chat())->sendMsg($chatDto);
|
||||
}
|
||||
unset($goodt);
|
||||
header('location: main.php');
|
||||
|
||||
Reference in New Issue
Block a user