- common.inc:

+ applied Julian's conf_init() patch
3-00
Dries Buytaert 2001-08-03 20:14:52 +00:00
parent cd48b94ad9
commit 6e15c4b55f
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
function conf_init() {
global $HTTP_HOST, $REQUEST_URI;
$file = strtolower(strtr($HTTP_HOST ."". substr($REQUEST_URI, 0, strrpos($REQUEST_URI, "/")), "/:", ".."));
while ($file && !file_exists("includes/$file.php")) $file = substr($file, 0, strrpos($file, "."));
while ($file && !file_exists("includes/$file.php")) $file = substr($file, strpos($file, ".") + 1);
return $file ? $file : "conf";
}