errors show
This commit is contained in:
parent
6227042134
commit
2a2507e0c4
6
main.php
6
main.php
@ -18,7 +18,11 @@ try {
|
||||
db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $user['id']);
|
||||
} catch (\Krugozor\Database\Mysql\Exception $e) {
|
||||
echo "<div style='background-color: #ffaaaa;'>Ошибка: " . $e->getMessage() . "<br> В файле: " . $e->getFile() . " (" . $e->getLine() . ")</div>";
|
||||
echo $e->getTrace();
|
||||
|
||||
foreach($e->getTrace() as $result) {
|
||||
echo $result['type'], '<br>';
|
||||
}
|
||||
|
||||
}
|
||||
if ($user['battle'] != 0) {
|
||||
header('location: fbattle.php');
|
||||
|
Loading…
Reference in New Issue
Block a user