X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/d297e7b43dff2c97f05ca2802f150d51c31bfcb3..6b106efb4f8497f1bd9dc334683751508caa176e:/header.inc.php diff --git a/header.inc.php b/header.inc.php index b8971c3..1002aab 100644 --- a/header.inc.php +++ b/header.inc.php @@ -2,9 +2,7 @@ ini_set('display_errors', '1'); ini_set('mysql.trace_mode', '0'); -error_reporting(E_ALL ^ E_NOTICE); - -define('DEBUG', true); +error_reporting(E_ALL & ~E_WARNING & ~E_NOTICE); session_start(); require_once dirname(__FILE__) .'/services/servicefactory.php'; @@ -29,8 +27,8 @@ if (!isset($root)) { $root = $protocol .'://'. $_SERVER['HTTP_HOST'] . $root; } -// Error codes define('GENERAL_MESSAGE', 200); define('GENERAL_ERROR', 202); define('CRITICAL_MESSAGE', 203); define('CRITICAL_ERROR', 204); +define('DEBUG', TRUE);