test
文章来源: 2004-11-10 08:45:27

##########################################################################
# 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"
) {
?>


); ?>" src="http://www.echo("$domain/$host$path"); ?>"
scrolling="auto"noresize>
    exit;
    }
    else {
    
header("Location: http://www.$domain/$host$path"
);
    exit;
    }
}

else {
include(
"$defaultpage"
);
exit;
}

?>