$template = $init->getTemplate();
//theme selection
if (strpos($_GET['url'], 'EfiHome') !== false || $_GET['url'] == "index") {
    $themepath = 'adminlte2';
} else {
    $themepath = ThemeItem::getTheme();
}
$init->setThemeDynamic($themepath);
//include the functions
foreach ($files2Load as $file) {
    //penambahan mold
    if (strpos($file, 'BPlugin') && strpos($file, 'functions.php')) {
        require_once $file;
    }
    //echo $file;echo "<br>";
}
//set session for photopath and photourl
$_SESSION['photopath'] = _PHOTOPATH;
$_SESSION['photourl'] = _SPPATH . _PHOTOURL;
define('_LANGPATH', _SPPATH);
//coba di load websettingnya
$ef = new Efiwebsetting();
$ef->loadToSession();
//pr($_SESSION);
//echo Efiwebsetting::getWebTitle();
//pr($init);
$template->setTitle(Efiwebsetting::getWebTitle());
$template->setMetaKey(Efiwebsetting::getWebMetaKey());
$template->setMetaDesc(Efiwebsetting::getWebMetaDesc());
//pr($_SESSION);
$init->run();