diff options
author | Andrew Dolgov <[email protected]> | 2010-11-10 13:14:44 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-10 13:14:44 +0300 |
commit | fb0742394a2097a506a777f0bc7c285c07eb6a72 (patch) | |
tree | 64fbbffc9392e65ed272727890b04e99e4680454 /backend.php | |
parent | 55a5137307bf99d9868a775d4197cbe25dbf25d5 (diff) |
remove error_reporting() hacks; set default error reporting level in functions.php
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/backend.php b/backend.php index 34f9c3b25..8b1454ad7 100644 --- a/backend.php +++ b/backend.php @@ -1,6 +1,4 @@ <?php - error_reporting(E_ERROR | E_WARNING | E_PARSE); - /* remove ill effects of magic quotes */ if (get_magic_quotes_gpc()) { @@ -16,23 +14,13 @@ $_REQUEST = array_map('stripslashes_deep', $_REQUEST); } + require_once "functions.php"; require_once "sessions.php"; require_once "modules/backend-rpc.php"; - -/* if ($_REQUEST["debug"]) { - define('DEFAULT_ERROR_LEVEL', E_ALL); - } else { - define('DEFAULT_ERROR_LEVEL', E_ERROR | E_WARNING | E_PARSE); - } - - error_reporting(DEFAULT_ERROR_LEVEL); */ - require_once "sanity_check.php"; require_once "config.php"; - require_once "db.php"; require_once "db-prefs.php"; - require_once "functions.php"; no_cache_incantation(); |