$_REQUEST, "_POST" => $_POST, "_GET" => $_GET, "_URI" => !array_key_empty("REQUEST_URI", $_SERVER) ? $_SERVER["REQUEST_URI"] : '' ); // with security module if(function_exists("get_clean_xss")) { foreach($requests['_GET'] as $k=>$v) { if(is_string($v)) { $requests['_GET'][$k] = get_clean_xss($v); } } } return $requests; } } if(!function_exists("redirect_uri")) { function redirect_uri($uri, $permanent=false) { header('Location: ' . $uri, true, $permanent ? 301 : 302); exit(); } } $requests = get_requests();