function ssr($arg) { if (is_array($arg)) { foreach ($arg as $key => $arg_bit) { $arg[$key] = ssr($arg_bit); } } else { $arg = stripslashes($arg); } return $arg; }
function GetVar($name) { if (is_array($name)) { foreach ($name as $var) { GetVar($var); } } else { if (!isset($_REQUEST[$name])) { return false; } if (get_magic_quotes_gpc()) { $_REQUEST[$name] = ssr($_REQUEST[$name]); } $GLOBALS[$name] = $_REQUEST[$name]; return $GLOBALS[$name]; } }