- fixed "AdNewz.com" vs "ADNEWS.COM" glitch reported by Peter Beckman
parent
02e344403a
commit
8af189197e
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
function conf_init() {
|
function conf_init() {
|
||||||
global $HTTP_HOST, $REQUEST_URI;
|
global $HTTP_HOST, $REQUEST_URI;
|
||||||
$file = strtr($HTTP_HOST ."". substr($REQUEST_URI, 0, strrpos($REQUEST_URI, "/")), "/:", "..");
|
$file = strtolower(strtr($HTTP_HOST ."". substr($REQUEST_URI, 0, strrpos($REQUEST_URI, "/")), "/:", ".."));
|
||||||
while ($file && !file_exists("includes/$file.conf")) {
|
while ($file && !file_exists("includes/$file.conf")) {
|
||||||
$file = substr($file, 0, strrpos($file, "."));
|
$file = substr($file, 0, strrpos($file, "."));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue