//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();
Beispiel #2
0
<?php

//定义一个常量,用于其他文件的判断
//入口文件常量
define('ACCESS', md5('granted'));
//加载初始化类Application.class.php
include_once 'Core/Init.php';
//调用系统初始化方法
//调用Init类的静态方法
Init::run();
//echo 'here';