the code is:
<?php
$p = $_GET['p'];
if ( !empty($p) && file_exists('./' . $p . '.php') && stristr( $p, '.' ) == False )
{
// pages = directory where you store your pages
$file = './' . $p . '.php';
}
else
{
// 1.php = defult page
$file = './index.php';
}
include $file;
?>
if there is something wrong with this please let me know















