conf['web_close']){ flush(); include ("webclose.php"); exit(); } //load tpl box $vnT->skin_box = new XiTemplate(DIR_SKIN . DS . $vnT->conf['skin'] . DS . 'box.tpl'); $vnT->skin_box->assign("DIR_IMAGE", $vnT->dir_images); $vnT->skin_box->assign("DIR_STYLE", $vnT->dir_style); $vnT->skin_box->assign("LANG", $vnT->lang); //Cache ------------------------------------------- $vnT->Cache->mod_no_cache = array( "contact" ,"search","advertise","member","community","test"); if($vnT->user['mem_id']>0){ $vnT->Cache->act_no_cache = array( "jobseeker|detail", "jobseeker|search","jobseeker|print" ,"jobseeker|rss" ,"employer|detail","employer|search","employer|print" ); }else{ $vnT->Cache->act_no_cache = array( "jobseeker|search","jobseeker|print" ,"jobseeker|rss" ,"employer|search","employer|print" ); } $vnT->Cache->box_no_cache = array( "box_statistics","header_member" ,"box_member"); $vnT->Cache->begin_cache(); //------------------------------------------------- //Template $Template = new XiTemplate(DIR_SKIN . DS. $vnT->conf['skin'] .DS. 'global.tpl'); //$Template = new XiTemplate($vnT->content_skin); $vnT->skin =& $Template ; $Template->assign("DIR_IMAGE", $vnT->dir_images); $Template->assign("DIR_STYLE", $vnT->dir_style); $Template->assign("DIR_JS", $vnT->dir_js); $Template->assign("LANG", $vnT->lang); $Template->assign("INPUT", $input); // main $input['act'] = ($input['act']) ? $input['act'] : $input['mod']; $fileactname = "modules/{$input['mod']}/{$input['act']}.php"; //echo $fileactname ; if (file_exists($fileactname)) include $fileactname; else { flush(); include ("404.php"); exit(); } // end main //check popup if( empty($_SESSION["show_popup"]) && $vnT->user['mem_id']>0 && $vnT->user['mem_group']==2) { $vnT->html->addScriptDeclaration(" $(document).ready(function () {show_popupAnnounce ('".$vnT->user['mem_type']."'); });"); $_SESSION["show_popup"] = 1; } $data['mem_id'] = (int)$vnT->user['mem_id']; $data['header_member'] = $vnT->lib->header_member(); $data['banner'] = $vnT->lib->get_banners("top"); if($input['mod']=="community") { $data['menutop'] = $vnT->lib->box_menutop_community(); }else{ $data['menutop'] = $vnT->lib->box_menutop(); $data['logo_employer'] = $vnT->lib->get_logo_employer(); } //$data['box_search'] = $vnT->lib->box_search(); if($input['mod']!="main" && $input['mod']!="community") { $data['middle_banner']= $vnT->lib->get_banner_slide("middle"); } $data['info_footer'] = $vnT->func->load_SiteDoc("info_footer"); //$data['banner_footer'] = $vnT->lib->get_banner_footer(); $data['communitySidebar'] = $vnT->lib->communitySidebar(); $data['menu_footer'] = $vnT->lib->menu_footer(); $data['box_footer'] = $vnT->lib->box_footer(); $data['footer_key'] = $vnT->lib->footer_key(); $data['scroll_left'] = $vnT->lib->get_scroll_left(); $data['scroll_right'] = $vnT->lib->get_scroll_right(); $Template->assign("CONF", $vnT->conf); $Template->assign("EXT_HEAD", $vnT->html->fetchHead()); $Template->assign("data", $data); $Template->assign("PAGE_CONTENT", $vnT->output); $Template->parse("body"); if ($vnT->Cache->turn_on) { //Set cache php $vnT->Cache->end_cache(); } else { $Template->out("body"); } $vntdebug_end=microtime(); // text Debug /*if ($_GET['debug']==1) { $time_start = $DB->micro_time($vntdebug_start); $time_stop = $DB->micro_time($vntdebug_end); echo $DB->debug_log(); echo "
"; echo "Exec time: ".bcsub($time_stop, $time_start, 6)." s"; } */ $vnT->DB->close(); ?>

No comments:

Powered by Blogger.
Khám phá thêm + Cho Dien Tu + Mua Hang Online Uy Tin + Mua Hang Online + Nguoi Noi Tieng + Nguoi Dep Viet Nam + Idol Viet Nam + Nghe Si Viet + Tin Tuc Sao Viet + Thuong Hieu Ca Nhan + Nguoi Noi Tieng Phim + Kiem Tien Tren Mang + Han Duc Hai + Dang Rao Vat + Trang Rao Vat