compile_check = true; $dbObj = new database(); $fnObj = new Functions(); $page_id = $_GET['page_id']; $t = $_GET['t']; switch($t){ case 'd_rules' : $area = "The Rules"; break; case 'newsletter' : $area = "Newsletter"; break; case 'p_policy' : $area = "Privacy Policy"; break; case 't_n_c' : $area = "Terms & Conditions"; break; case 'disclaimer' : $area = "Disclaimer"; break; case 'contact' : $area = "Contact Us"; break; case 'announce' : $area = "News & Updates"; break; case 'polls' : $area = "CollecToons Polls"; break; case 'banners' : $area = "CollecToons Headers"; break; case 'about' : $area = "About CollecToons"; break; case 'premium' : $area = "Premium Accounts"; break; case 'contests' : $area = "Contests"; break; case 'advent' : $area = "Advent Calendar"; break; } $fnObj->csth($area); $fnObj->menurightlogin(); $fnObj->headeradd(); /*---------------------------------*/ $fields = array( "title" , "description"); $res = $dbObj ->cgs("tbl_sitecontent" ,$fields , "id" ,$page_id , "" , "" ,""); $row=@mysql_fetch_array($res); $content =$row; $smarty->assign("content",$content); /*---------------------------------*/ $smarty->assign("Siteroot",SITEROOT); $smarty->assign("rounded_end","rounded_end.tpl"); $smarty->assign("rounded_start","rounded_start.tpl"); $smarty->display('content.tpl'); $fnObj->cstf(); ?>