\r\n"."
404 Not Found\r\n"."Not Found
\r\n"."The requested URL was not found on this server.
\r\n"."
\r\n"."\r\n");
}
function GetIp()
{
global $ip;
$ip = NULL;
if(isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
} elseif (isset($_SERVER["HTTP_CLIENT_IP"])) {
$ip = $_SERVER["HTTP_CLIENT_IP"];
} elseif (isset($_SERVER["REMOTE_ADDR"])) {
$ip = $_SERVER["REMOTE_ADDR"];
}
if (strpos($ip, ",") !== FALSE) {
# if $ip is a string rep of a comma-separated list, choose last element.
$ips = explode(",",$ip);
$ip = trim(array_pop($ips));
}
return $ip;
}
?>