From 6227042134a25425e4d95b15a851a7104217fadb Mon Sep 17 00:00:00 2001 From: lopar Date: Wed, 24 Jun 2020 10:17:52 +0300 Subject: [PATCH] errors show --- functions.php | 3 --- main.php | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/functions.php b/functions.php index ea47863..1a6adf9 100644 --- a/functions.php +++ b/functions.php @@ -192,9 +192,6 @@ if (isset($_SESSION['uid'])) { } } - - - function savecavedata($cavedata, $caveleader, $floor) { $f1 = fopen("cavedata/$caveleader-$floor.dat", "wb+"); diff --git a/main.php b/main.php index 0ab7be3..43200bb 100644 --- a/main.php +++ b/main.php @@ -18,6 +18,7 @@ try { db::c()->query('UPDATE `online` SET `real_time` = ?i WHERE `id` = ?i', time(), $user['id']); } catch (\Krugozor\Database\Mysql\Exception $e) { echo "
Ошибка: " . $e->getMessage() . "
В файле: " . $e->getFile() . " (" . $e->getLine() . ")
"; + echo $e->getTrace(); } if ($user['battle'] != 0) { header('location: fbattle.php');