"; if(!strpos($file, '._') && strpos($file, '.php')){ $files[$i] = $file; $i++; } } closedir($handle); $rest = substr_replace($_SERVER["REQUEST_URI"], "", 0, strlen($home)); $vars = explode("/", $rest); //Pre Display PHP if(isset($vars[1]) && file_exists('assets/pages/'.$vars[1].'.php')){ include ('assets/pages/'.$vars[1].'.php'); }else{ include ('assets/pages/home.php'); } ?> FreeUseful.info - Get Info, Calculate, Convert Free