| |
|
//The name of your included script ...
$script = "top_menu.php";
//Set to "" if this is your root dir ...
//or the dir name your script is in this
//must be the main dir example "mydir"
$script_dir = "";
$script_loc = dirname($_SERVER['PHP_SELF']);
$script_loc = substr(strrchr($script_loc, "/"), +1);
if ($script_dir == $script_loc){
$script_loc = dirname($_SERVER['SERVER_NAME'])."/$script";
}else{
$script_loc = dirname($_SERVER['SERVER_NAME'])."./$script";
}
//print $script_loc;
?>
|
Sponsors
|
//The name of your included script ...
$script = "menu_right.html";
//Set to "" if this is your root dir ...
//or the dir name your script is in this
//must be the main dir example "mydir"
$script_dir = "";
$script_loc = dirname($_SERVER['PHP_SELF']);
$script_loc = substr(strrchr($script_loc, "/"), +1);
if ($script_dir == $script_loc){
$script_loc = dirname($_SERVER['SERVER_NAME'])."/$script";
}else{
$script_loc = dirname($_SERVER['SERVER_NAME'])."./$script";
}
//print $script_loc;
?>
|
|
|