Реализация ChatMessageDTO.
This commit is contained in:
@@ -73,10 +73,13 @@ if (isset($_GET['nightatack'])) {
|
||||
$rtxt = '[img[items/pal_button8.gif]] "' . $u->info['login'] . '" совершил' . $sx . ' нападение на персонажа "' . $ua['login'] . '".';
|
||||
}
|
||||
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')"
|
||||
);
|
||||
$cmsg = new ChatMessage();
|
||||
$cmsg->setCity($u->info['city']);
|
||||
$cmsg->setRoom($u->info['room']);
|
||||
$cmsg->setType(6);
|
||||
$cmsg->setTypeTime(1);
|
||||
$cmsg->setText($rtxt);
|
||||
(new Chat())->sendMsg($cmsg);
|
||||
}
|
||||
unset($goodt);
|
||||
header('location: main.php');
|
||||
|
||||
Reference in New Issue
Block a user