Error reporting

This commit is contained in:
Igor Barkov (iwork) 2020-07-03 17:57:40 +03:00
parent 7655a344a3
commit 93d2fbae64

10
inf.php
View File

@ -68,10 +68,12 @@ if (empty($user->id)): ?>
<hr> <hr>
<!-- Нижняя часть --> <!-- Нижняя часть -->
<?php <?php
$effect = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = ?i ', $user->id, 5)->fetch_assoc(); try {
if ($effect['time'] && !private_access($uid)) { $effect = db::c()->query('SELECT `time` FROM `effects` WHERE `owner` = ?i AND `type` = ?i ', $user->id, 5)->fetch_assoc();
die('<h3>Персонаж обезличен!</h3>'); if ($effect['time'] && !private_access($uid)) {
} die('<h3>Персонаж обезличен!</h3>');
}
} catch (Exception $e) {echo "<span class='error'>Не подтянулась таблица с эффектами. Не работает обезличка!</span>";}
if (!empty($user->realname)) { if (!empty($user->realname)) {
echo "Имя: " . $user->realname . "<br>"; echo "Имя: " . $user->realname . "<br>";
} }