From b0b0f5335c032338937bd74abe1d607f9d67c631 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 24 Aug 2011 16:33:27 +0200 Subject: [PATCH] test push --- htdocs/main.inc.php | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 1bdeb9562e6..1f987b41859 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -137,31 +137,6 @@ session_start(); // This include will set: $conf, $db, $langs, $user, $mysoc objects require_once("master.inc.php"); -// Activate error interceptions -/* -function processError($code, $message, $file, $line, $context) -{ - $errmess='ERROR '.$file.' - '.$line.' - '.error_reporting()." - ".$code."
\n"; - //print $errmess; - if (error_reporting() & $code) { - print $errmess; - throw new Exception($message, $code); - } -} -set_error_handler('processError'); -*/ - -// GET and POST converter -/* -foreach($_REQUEST as $key => $value) -{ - // For prevent conflict - $var = '__'.$key; - // Create variable with tested value - $$var = GETPOST($key); -} -*/ - // Activate end of page function register_shutdown_function('dol_shutdown');