- Enforce minimum elapsed time on registration form
[scuttle] / header.inc.php
index b8971c366991bdb2f73323c163c37b2d66e7eddf..1002aab5c2f640d274a51a93fc695df332d0ada8 100644 (file)
@@ -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);

Benjamin Mako Hill || Want to submit a patch?