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