コード例 #1
0
ファイル: index.php プロジェクト: keverage/adminserv
// INCLUDES
session_start();
require_once 'config/adminserv.cfg.php';
require_once 'config/servers.cfg.php';
require_once 'config/extension.cfg.php';
require_once 'config/adminlevel.cfg.php';
require_once AdminServConfig::$PATH_RESOURCES . 'core/adminserv.php';
// LOAD TIMER
if (ADMINSERV_TIMER) {
    AdminServ::startTimer();
}
// INITIALIZE
AdminServ::checkPHPVersion('5.3.0');
define('PATH_ROOT', basename(__DIR__) . '/');
$_SESSION['adminserv']['path'] = AdminServConfig::MULTI_ADMINSERV ? PATH_ROOT : null;
AdminServ::getClass();
// GLOBALS
AdminServEvent::getArgs();
// THEME
define('USER_THEME', AdminServUI::theme($args['theme']));
// LANG
define('USER_LANG', AdminServUI::lang($args['lang']));
// VÉRIFICATION DES DROITS
$checkRightsList = array('./config/adminserv.cfg.php' => 666, './config/servers.cfg.php' => 666, './config/adminlevel.cfg.php' => 666);
if (in_array(true, AdminServConfig::$LOGS)) {
    if (!Utils::isWinServer()) {
        $checkRightsList['./logs/'] = 777;
    }
}
AdminServ::checkRights($checkRightsList);
// LOGOUT