X-Git-Url: https://projects.mako.cc/source/scuttle/blobdiff_plain/bce919af7b49bbd06223f79b8c37a53a3d263ff0..e03e075e4bc21843ae223caf0c149b289e9636c9:/header.inc.php diff --git a/header.inc.php b/header.inc.php index de56c84..d3c6ed8 100644 --- a/header.inc.php +++ b/header.inc.php @@ -1,35 +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