dev-moderation #66
@ -22,11 +22,11 @@ if ($uu['info_delete'] <= time()) {
|
||||
|
||||
(new \Moderation\Moderation($uu['id']))->undepersonalize();
|
||||
|
||||
$uer = "Персонаж {$uu['login']} больше не под подозрением.";
|
||||
|
||||
$cmsg = new ChatMessage();
|
||||
$cmsg->setRoom($u->info['room']);
|
||||
$cmsg->setText("[img[items/uncui.gif]] Персонаж {$uu['login']} больше не под подозрением.");
|
||||
$cmsg->setText("[img[items/uncui.gif]] $uer");
|
||||
$cmsg->setType(6);
|
||||
$cmsg->setTypeTime(1);
|
||||
(new Chat())->sendMsg($cmsg);
|
||||
|
||||
$uer = 'Вы успешно сняли заклятие обезличивания с персонажа "' . $uu['login'] . '".<br>';
|
||||
|
@ -20,12 +20,12 @@ $time->modify("+ {$_POST['time']} day");
|
||||
(new \Moderation\Moderation($uu['id']))->prison($time);
|
||||
\Core\Db::sql('delete from dungeon_zv where uid = ?', [$uu['id']]); // Удаляем заявки в пещеры.
|
||||
|
||||
$rtxt = "Персонаж {$uu['login']} был отправлен в тюрьму до {$time->format('d M Y H:i')}.";
|
||||
$uer = "Персонаж {$uu['login']} был отправлен в тюрьму до {$time->format('d M Y H:i')}.";
|
||||
unset($time);
|
||||
|
||||
$cmsg = new ChatMessage();
|
||||
$cmsg->setRoom($u->info['room']);
|
||||
$cmsg->setText("[img[items/jail.gif]] $rtxt");
|
||||
$cmsg->setText("[img[items/jail.gif]] $uer");
|
||||
$cmsg->setType(6);
|
||||
$cmsg->setTypeTime(1);
|
||||
(new Chat())->sendMsg($cmsg);
|
||||
|
||||
$uer = $rtxt;
|
||||
|
@ -30,13 +30,11 @@ if (!empty($uu['battle'])) {
|
||||
\Core\Db::sql('update users left join stats on users.id = stats.id set battle = default, regHP = unix_timestamp(), team = 0, battle_yron = 0, battle_exp = 0 where users.id = ?', [$uu['id']]);
|
||||
}
|
||||
|
||||
$rtxt = "Персонаж {$uu['login']} заблокирован.";
|
||||
$uer = "Персонаж {$uu['login']} заблокирован.";
|
||||
|
||||
$cmsg = new ChatMessage();
|
||||
$cmsg->setRoom($u->info['room']);
|
||||
$cmsg->setText("[img[items/pal_button6.gif]] $rtxt");
|
||||
$cmsg->setText("[img[items/pal_button6.gif]] $uer");
|
||||
$cmsg->setType(6);
|
||||
$cmsg->setTypeTime(1);
|
||||
(new Chat())->sendMsg($cmsg);
|
||||
|
||||
$uer = $rtxt;
|
||||
|
@ -24,14 +24,12 @@ $time = new DateTime();
|
||||
$time->modify("+ {$_POST['time']} day");
|
||||
(new \Moderation\Moderation($uu['id']))->depersonalize($time);
|
||||
|
||||
$rtxt = "Персонаж {$uu['login']} под подозрением до {$time->format('d M Y H:i')}.";
|
||||
$uer = "Персонаж {$uu['login']} под подозрением до {$time->format('d M Y H:i')}.";
|
||||
unset($time);
|
||||
|
||||
$cmsg = new ChatMessage();
|
||||
$cmsg->setRoom($u->info['room']);
|
||||
$cmsg->setText("[img[items/cui.gif]] $rtxt");
|
||||
$cmsg->setText("[img[items/cui.gif]] $uer");
|
||||
$cmsg->setType(6);
|
||||
$cmsg->setTypeTime(1);
|
||||
(new Chat())->sendMsg($cmsg);
|
||||
|
||||
$uer = $rtxt;
|
||||
|
Loading…
Reference in New Issue
Block a user