$pos = strpos($_GET['page'], '://');
if (isset($_GET['page']) && $pos === false && file_exists($_GET['page'].'.php')) {
include ('./'.$_GET['page'].'.php');
}
if ($_GET['page'] == "") {
include("home.php");
}
if (!file_exists($_GET['page'].'.php')) {
if ($_GET['page'] != "") {
include("error404.php");
}
}
?>