From 0c4ccd34488441ff57b52fe2ef954778115b8d29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20K?= Date: Fri, 24 Jul 2015 23:55:09 +0200 Subject: [PATCH] Add debug Mod --- index.php | 3 +++ kernel/boot/init.php | 3 +++ 2 files changed, 6 insertions(+) mode change 100644 => 100755 index.php mode change 100644 => 100755 kernel/boot/init.php diff --git a/index.php b/index.php old mode 100644 new mode 100755 index add85269..0b46dbdb --- a/index.php +++ b/index.php @@ -30,6 +30,9 @@ define('PATH_BOOT', PATH_ROOT.'kernel'.DS.'boot'.DS); // Init require(PATH_BOOT.'init.php'); +// Debug +if(DEBUG) error_reporting(E_ALL).ini_set('display_errors', 1); + // Admin area if($Url->whereAmI()==='admin') { diff --git a/kernel/boot/init.php b/kernel/boot/init.php old mode 100644 new mode 100755 index 15fc558c..81c93fd7 --- a/kernel/boot/init.php +++ b/kernel/boot/init.php @@ -60,6 +60,9 @@ define('JSON', function_exists('json_encode')); // TRUE if new posts hand-made set published, or FALSE for draft. define('HANDMADE_PUBLISHED', true); +// TRUE if Debug. +define('DEBUG', false); + define('CHARSET', 'UTF-8'); if(MB_STRING)