"; header('Content-Type: text/html; charset=UTF-8'); ini_set('mbstring.internal_encoding','UTF-8'); ini_set('mbstring.func_overload',7); header('Content-Type: text/html; charset=UTF-8'); ini_set('default_charset', 'UTF-8'); mb_internal_encoding("UTF-8"); $page_prefix='pages/'; $page_postfix='.inc.php'; // nav $nav = array( 'home', 'testimonies', 'about', 'examples', 'how-to put in', 'get samples', ); // whatcha after? $page='home'; if($_REQUEST['page'] && file_exists($page_prefix.$_REQUEST['page'].$page_postfix)) { $page=$_REQUEST['page']; $page_title=$page; } // get page ob_start(); include($page_prefix.$page.$page_postfix); $page_body=ob_get_contents(); ob_end_clean(); // set page title if($page=='home') $page_title.=' - [ '.$site_slogan.' ]'; else if($page_body) $page_title.=' - '.str_replace('_',' ',$page); // show page in layout include('layout.inc.php'); ?>