cvs: phpweb /error index.php

From: Date: Mon, 02 Apr 2001 22:11:25 +0000
Subject: cvs: phpweb /error index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-4622@lists.php.net to get a copy of this message
ssb Mon Apr 2 15:11:25 2001 EDT Modified files: /phpweb/error index.php Log: On no.php.net, /manual/foo.php redirected to /manual/no/foo.php, which doesn't exist. Check for the existence of $DOCUMENT_ROOT/manual/$lang, and fall back to English if there is no such directory. Index: phpweb/error/index.php diff -u phpweb/error/index.php:1.21 phpweb/error/index.php:1.22 --- phpweb/error/index.php:1.21 Wed Mar 7 16:18:05 2001 +++ phpweb/error/index.php Mon Apr 2 15:11:24 2001 @@ -6,7 +6,9 @@ } $lang = $MIRRORS[$MYSITE][6]; - +if (!is_dir("$DOCUMENT_ROOT/manual/$lang")) { + $lang = "en"; // fall back to English +} # handle .php3 files that were renamed to .php if (preg_match("/(.*\.php)3$/", $REQUEST_URI, $array)) { if($SERVER_PORT!=80) {

« previous php.mirrors (#4622) next »