test
function all () { global $HTTP_GET_VARS, $HTTP_POST_VARS; $args = func_get_args(); while (list(,$key) = each ($args)) { if (isset($HTTP_GET_VARS[$key])) $value = $HTTP_GET_VARS[$key]; if (isset($HTTP_POST_VARS[$key])) $value = $HTTP_POST_VARS[$key]; if (isset($value)) { if (!ini_get ('magic_quotes_gpc')) { if (!is_array($value)) $value = addslashes($value); else $value = ary($value); } $GLOBALS[$key] = $value; unset($value); } } } function ary ($a) { while (list($k,$v) = each($a)) { if (!is_array($v)) $a[$k] = addslashes($v); else $a[$k] = ary($v); } reset ($a); return ($a); }