From c3591977b8c5ab79b6d46b0481edeb6fe7d05cde Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Sat, 2 Dec 2023 01:50:52 +0200 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=BD=D1=83=D0=B6=D0=BD=D0=B0?= =?UTF-8?q?=D1=8F=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D0=B0?= =?UTF-8?q?=D1=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules_data/moder/unusedeletinfo.php | 6 +++--- modules_data/moder/use_carcer.php | 8 ++++---- modules_data/moder/useban.php | 6 ++---- modules_data/moder/usedeletinfo.php | 6 ++---- 4 files changed, 11 insertions(+), 15 deletions(-) diff --git a/modules_data/moder/unusedeletinfo.php b/modules_data/moder/unusedeletinfo.php index 84f65c63..24e1de75 100644 --- a/modules_data/moder/unusedeletinfo.php +++ b/modules_data/moder/unusedeletinfo.php @@ -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'] . '".
'; diff --git a/modules_data/moder/use_carcer.php b/modules_data/moder/use_carcer.php index cdf96578..9cd5504c 100644 --- a/modules_data/moder/use_carcer.php +++ b/modules_data/moder/use_carcer.php @@ -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; diff --git a/modules_data/moder/useban.php b/modules_data/moder/useban.php index 52f810b2..22312fba 100644 --- a/modules_data/moder/useban.php +++ b/modules_data/moder/useban.php @@ -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; diff --git a/modules_data/moder/usedeletinfo.php b/modules_data/moder/usedeletinfo.php index 10b58d32..8be98f15 100644 --- a/modules_data/moder/usedeletinfo.php +++ b/modules_data/moder/usedeletinfo.php @@ -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;