logfile = $dirapp . "logfile" ; $conn->init() ; $nav= new breadcrumb('breadcrumb',array(''=>'')); $nav->separator=" » "; require ("../function/additional.php") ; require ("../inc/del_session.php") ; require ("../inc/add_session.php") ; require ("../classes/tsetting.php") ; $GLOBALS['conn'] = $conn ; define ('SMARTY_DIR', "../smarty/libs/"); require_once("../lang/en.php"); Global $lang; require_once(SMARTY_DIR."Smarty.class.php"); $config=new tsetting('conn'); $cfg=$config->get_all_section(); class Smarty_Classified extends Smarty { function Smarty_Classified() { global $cfg; $this->template_dir = "../templates/"; $this->compile_dir = "../templates_c/"; $this->config_dir = "../configs/"; $this->cache_dir = "../cache/"; $this->caching = "0"; if ($cfg['error_reporting']=="NONE"): $this->error_reporting = error_reporting(0) ; ini_set('error_reporting',$this->error_reporting ); ini_set('display_error',1); elseif($cfg['error_reporting']): $this->error_reporting = $cfg['error_reporting'] ; ini_set('error_reporting',$cfg['error_reporting']); ini_set('display_error',1); else: $this->error_reporting = error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING ) ; ini_set('error_reporting',$this->error_reporting ); ini_set('display_error',1); endif; if ($cfg[enable_debug_console]=='N'){ $this->debugging=true; } else{ $this->debugging=false; } } } $smarty = new Smarty_Classified(); $smarty->assign("cfg",$config->get_all_section()); $smarty->assign("lng",$lang); define ('user_view_limit',$cfg[user_view_limit]); global $nav_array,$smarty,$lang,$nav; switch($_REQUEST[target]){ default: require('./action_index.php'); } if (count($nav_array)!=1){ $nav->set($nav_array); $smarty->assign('nav',$nav->trail()); } $smarty->display('indian/template.html'); require('..//inc/bottom.php'); ?>