X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/c20b44263a89d8bf1a78bfa632daaae3cb4f1da2..1685ba1f8af80489da4f092a0adcced47a60e9fa:/header.inc.php diff --git a/header.inc.php b/header.inc.php index 751e4e8..d3c6ed8 100644 --- a/header.inc.php +++ b/header.inc.php @@ -1,34 +1,40 @@ \ No newline at end of file +define('CRITICAL_ERROR', 204); + +if (defined('SCUTTLE_DEBUG') && SCUTTLE_DEBUG) { + ini_set('display_errors', '1'); + ini_set('mysql.trace_mode', '1'); + error_reporting(E_ALL); +} +else { + ini_set('display_errors', '0'); + ini_set('mysql.trace_mode', '0'); + error_reporting(E_ALL); +} \ No newline at end of file