get_all_config(); require(PATH_BASE.'libraries/templates.php'); global $tmpl; $tmpl = new Templates(); /* Phiên bản mobile */ if(IS_MOBILE) $tmpl->tmpl_name = 'mobile'; ob_start(); loadMainContent($module); $main_content = ob_get_contents(); ob_end_clean(); if ($print){ require(PATH_BASE.'templates/'.$tmpl->tmpl_name.'/print.php'); die; } ob_start(); require(PATH_BASE.'templates/'.$tmpl->tmpl_name.'/index.php'); $all_website_content = ob_get_contents(); ob_end_clean(); ob_start(); $tmpl->loadHeader(); echo $all_website_content; if(USE_BENMARCH){ echo '