Реализация ChatMessageDTO.
This commit is contained in:
@@ -33,7 +33,14 @@ if($p['szatoch']==1 || $p['citym1']==1)
|
||||
}
|
||||
mysql_query('UPDATE `items_users` SET `delete` = "0" WHERE `uid` = '.$uu['id'].' AND `delete` = "1357908642"');
|
||||
$rtxt = '[img[items/jail_off.gif]] '.$rang.' "'.$u->info['cast_login'].'" выпустил'.$sx.' из заточение "'.$uu['login'].'".';
|
||||
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->setText($rtxt);
|
||||
$cmsg->setType(6);
|
||||
$cmsg->setTypeTime(1);
|
||||
(new Chat())->sendMsg($cmsg);
|
||||
$rtxt = $rang.' "'.$u->info['login'].'" выпустил'.$sx.' из "<b>заточение</b>" .';
|
||||
mysql_query("INSERT INTO `users_delo` (`uid`,`ip`,`city`,`time`,`text`,`login`,`type`) VALUES ('".$uu['id']."','".$_SERVER['REMOTE_ADDR']."','".$u->info['city']."','".time()."','".$rtxt."','".$u->info['login']."',6)");
|
||||
$uer = 'Вы успешно выпустили из тюрьмы персонажа "'.$uu['login'].'" .';
|
||||
|
||||
Reference in New Issue
Block a user