//error_reporting(E_ALL ^ E_NOTICE); error_reporting(E_ALL); if(isset($_GET['url']) && !empty($_GET['url'])){ $elements=explode('/', $_GET['url']); $page=$elements[0]; array_shift($elements); if($elements){ $sub=$elements[0]; array_shift($elements); if($elements){ $sub2=$elements[0]; } } } else { $page="home"; } include('conf/defines.php'); include('conf/func.php'); include('common/head.php'); if (!isset($sub)){ $title=$pagedata[$page]['title']; $body_id=$pagedata[$page]['body_id']; } else { $title=$pagedata[$page][$sub]['title']; $body_id=''; } ?>