'; $page = substr($_SERVER['PHP_SELF'],strpos('/')+1); $page = rtrim($page,'.php'); //echo $page; switch ($page) { case 'dashboard': ?>