Changed the error re-direct URL to the same as $site_url in case a user tries to access a sub-directory that does no exist.

3-00
Kjartan Mannes 2001-03-27 13:13:42 +00:00
parent cb5bbdee20
commit 2629c4bd82
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ function error_flood() {
}
function error_httpd() {
global $REDIRECT_STATUS, $REDIRECT_URL, $HTTP_REFERER, $HTTP_USER_AGENT;
global $REDIRECT_STATUS, $REDIRECT_URL, $HTTP_REFERER, $HTTP_USER_AGENT, $site_url;
switch($REDIRECT_STATUS) {
case 500:
@ -35,7 +35,7 @@ function error_httpd() {
print "<H1>Oops, an error occured!</H1>\n";
print "<B>Processed output:</B><BR>\n";
print " * $message<BR>\n";
print " * Return to the <A HREF=\"\">main page</A>.\n";
print " * Return to the <A HREF=\"$site_url\">main page</A>.\n";
print "</PRE>\n";
}