|
|
$dir = "/home/users/web/b406/pow.drewhoe/htdocs/bio/fullbio/";
$startpage = "/home/users/web/b406/pow.drewhoe/htdocs/fullbio.php";
$main = "/home/users/web/b406/pow.drewhoe/htdocs/php/index.htm";
$extension = "html";
if(isset($_GET['p'])){
$page = "$_GET[p]";
$dot = ".";
$check = file_exists("$dir" . "$page" . "$dot" . "$extension");
if($check){
include("$dir" . "$page" . "$dot" . "$extension");
}else{
include("$main");
}
}
?>
|