X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/c7f63c8b9b12efd7b3c10b9f80cda06eaf32068f..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);