Test: convert all POST or GET to variable ( $__var )

This commit is contained in:
Regis Houssin 2011-05-14 06:16:08 +00:00
parent ed118e7009
commit 36c0dbadcd

View File

@ -152,6 +152,17 @@ function processError($code, $message, $file, $line, $context)
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');