From 803a2407eb50ab5e93841f75c432ddbb8945924e Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 23 Jul 2018 23:19:39 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=90=EB=9F=AC=20=EB=A1=9C=EA=B7=B8=20?= =?UTF-8?q?=EB=B3=B4=EA=B8=B0=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- showErrorLog.php | 73 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 showErrorLog.php diff --git a/showErrorLog.php b/showErrorLog.php new file mode 100644 index 00000000..0b0fc974 --- /dev/null +++ b/showErrorLog.php @@ -0,0 +1,73 @@ +setReadOnly(); + +$allowUpdate = false; + +foreach($session->acl as $eachAcl){ + if(in_array('fullUpdate', $eachAcl)){ + $allowUpdate = true; + break; + } + if(in_array('update', $eachAcl)){ + $allowUpdate = true; + break; + } +} +$allowUpdate |= $session->userGrade >= 5; + +if(!$allowUpdate){ + header('Location:./'); +} + +$fdb = FileDB::db(ROOT.'/d_log/err_log.sqlite3', ROOT.'/f_install/sql/err_log.sql'); + +$err_logs = $fdb->select('err_log', [ + 'date', + 'err', + 'errstr', + 'trace' +], [ + 'ORDER'=>['id'=>'DESC'], + 'LIMIT'=>100 +]); +?> + + + + + + + 에러 로그 + + + + + + + + + + +
+ +
+
+ - +
+
+
+
    + +
  • + +
+
+
+ +
+ + \ No newline at end of file