document.location.href='{$base_path}index.php'\n";
header("location: ".e_HTTP."index.php");
exit;
}
require_once(HEADERF);
$errFrom = $_SERVER['HTTP_REFERER'];
$errTo = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$base_path = e_HTTP;
switch(e_QUERY) {
case 401:
header("HTTP/1.1 401 Unauthorized");
$text = "
".LAN_ERROR_1."
".LAN_ERROR_2."
".LAN_ERROR_3."
";
break;
case 403:
header("HTTP/1.1 403 Forbidden");
$text = " ".LAN_ERROR_4."
".LAN_ERROR_5."
".LAN_ERROR_6."
";
break;
case 404:
header("HTTP/1.1 404 Not Found");
$text = " ".LAN_ERROR_7."
".LAN_ERROR_21."
".LAN_ERROR_23."{$errTo}".LAN_ERROR_24."
";
if (strlen($errFrom)) $text .= LAN_ERROR_9." ( {$errFrom} ) -- ".LAN_ERROR_19."
";
$text .= "
".LAN_ERROR_20."
";
$text .= "".LAN_ERROR_22."";
break;
case 500:
header("HTTP/1.1 500 Internal Server Error");
$text = " ".LAN_ERROR_10."
".LAN_ERROR_11."
".LAN_ERROR_12."
";
break;
$text = "".LAN_ERROR_13." (".$_SERVER['QUERY_STRING'].")
".LAN_ERROR_14."
".LAN_ERROR_15."
";
default:
$text = LAN_ERROR_34." e_QUERY = '".e_QUERY."'
".LAN_ERROR_20."";
break;
}
$ns->tablerender(PAGE_NAME, $text);
require_once(FOOTERF);
?>