Ненужная переменная.

This commit is contained in:
Ivor Barhansky 2023-12-02 01:50:52 +02:00
parent 6bc3b5bc29
commit cc6b7e6c98
4 changed files with 11 additions and 15 deletions

View File

@ -22,11 +22,11 @@ if ($uu['info_delete'] <= time()) {
(new \Moderation\Moderation($uu['id']))->undepersonalize(); (new \Moderation\Moderation($uu['id']))->undepersonalize();
$uer = "Персонаж {$uu['login']} больше не под подозрением.";
$cmsg = new ChatMessage(); $cmsg = new ChatMessage();
$cmsg->setRoom($u->info['room']); $cmsg->setRoom($u->info['room']);
$cmsg->setText("[img[items/uncui.gif]] Персонаж {$uu['login']} больше не под подозрением."); $cmsg->setText("[img[items/uncui.gif]] $uer");
$cmsg->setType(6); $cmsg->setType(6);
$cmsg->setTypeTime(1); $cmsg->setTypeTime(1);
(new Chat())->sendMsg($cmsg); (new Chat())->sendMsg($cmsg);
$uer = 'Вы успешно сняли заклятие обезличивания с персонажа "' . $uu['login'] . '".<br>';

View File

@ -20,12 +20,12 @@ $time->modify("+ {$_POST['time']} day");
(new \Moderation\Moderation($uu['id']))->prison($time); (new \Moderation\Moderation($uu['id']))->prison($time);
\Core\Db::sql('delete from dungeon_zv where uid = ?', [$uu['id']]); // Удаляем заявки в пещеры. \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 = new ChatMessage();
$cmsg->setRoom($u->info['room']); $cmsg->setRoom($u->info['room']);
$cmsg->setText("[img[items/jail.gif]] $rtxt"); $cmsg->setText("[img[items/jail.gif]] $uer");
$cmsg->setType(6); $cmsg->setType(6);
$cmsg->setTypeTime(1); $cmsg->setTypeTime(1);
(new Chat())->sendMsg($cmsg); (new Chat())->sendMsg($cmsg);
$uer = $rtxt;

View File

@ -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']]); \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 = new ChatMessage();
$cmsg->setRoom($u->info['room']); $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->setType(6);
$cmsg->setTypeTime(1); $cmsg->setTypeTime(1);
(new Chat())->sendMsg($cmsg); (new Chat())->sendMsg($cmsg);
$uer = $rtxt;

View File

@ -24,14 +24,12 @@ $time = new DateTime();
$time->modify("+ {$_POST['time']} day"); $time->modify("+ {$_POST['time']} day");
(new \Moderation\Moderation($uu['id']))->depersonalize($time); (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); unset($time);
$cmsg = new ChatMessage(); $cmsg = new ChatMessage();
$cmsg->setRoom($u->info['room']); $cmsg->setRoom($u->info['room']);
$cmsg->setText("[img[items/cui.gif]] $rtxt"); $cmsg->setText("[img[items/cui.gif]] $uer");
$cmsg->setType(6); $cmsg->setType(6);
$cmsg->setTypeTime(1); $cmsg->setTypeTime(1);
(new Chat())->sendMsg($cmsg); (new Chat())->sendMsg($cmsg);
$uer = $rtxt;