|
########################################################################## # CONFIGURATION # ##########################################################################
$domain = "truez.com";
$frame = "yes";
$defaultpage = "index.htm";
########################################################################## # NO EDITING NEEDED BELOW THIS LINE # ##########################################################################
$domain = str_replace("http://","",$domain); $domain = str_replace("www.","",$domain); $host = getenv("HTTP_HOST"); $host = str_replace("www.","",$host); $host = str_replace("$domain","",$host); $host = str_replace(".","",$host); $path = getenv("REQUEST_URI");
if ($host == "") { include("$defaultpage"); }
elseif (file_exists("$root/$host$path")) { if ($frame == "yes") { ?>
exit; } else { header("Location: http://www.$domain/$host$path"); exit; } }
else { include("$defaultpage"); exit; }
?>
|
|
|