Add debug Mod

This commit is contained in:
Frédéric K 2015-07-24 23:55:09 +02:00
parent 96ce07dfbb
commit 0c4ccd3448
2 changed files with 6 additions and 0 deletions

3
index.php Normal file → Executable file
View File

@ -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')
{

3
kernel/boot/init.php Normal file → Executable file
View File

@ -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)