0) { $REQUEST_URI=$SCRIPT_NAME."?"; reset($get); $i=0; while (list($key,$val)=each($get)){ if ($i>0) $REQUEST_URI.="&"; $REQUEST_URI.="$key=".URLEncode($val); $i++; } }else{ $REQUEST_URI=$SCRIPT_NAME; } $_SERVER['REQUEST_URI'] = $REQUEST_URI; } $SCRIPT_NAME=substr($SCRIPT_NAME,strrpos($SCRIPT_NAME,"/")+1); if (strpos($REQUEST_URI,"?")){ $REQUEST_URI=$SCRIPT_NAME.substr($REQUEST_URI,strpos($REQUEST_URI,"?")); }else{ $REQUEST_URI=$SCRIPT_NAME; } } function php_generic_environment(){ require_once("lib/register_global.php"); register_global($_SERVER); sanitize_uri(); } ?>