= time()) { $uer = 'Персонаж уже обезличен'; return; } $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')}."; unset($time); $cmsg = new ChatMessage(); $cmsg->setRoom($u->info['room']); $cmsg->setText("[img[items/cui.gif]] $rtxt"); $cmsg->setType(6); $cmsg->setTypeTime(1); (new Chat())->sendMsg($cmsg); $uer = $rtxt;