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)