Пример #1
0
require 'includes/misc/func_lib.php';
require 'includes/misc/compress.php';
require 'includes/classes/account.php';
require 'includes/classes/server.php';
require 'includes/classes/website.php';
require 'includes/classes/shop.php';
require 'includes/classes/character.php';
require 'includes/classes/cache.php';
require 'includes/classes/plugins.php';
/******* LOAD PLUGINS ***********/
plugins::globalInit();
plugins::init('classes');
plugins::init('javascript');
plugins::init('modules');
plugins::init('styles');
plugins::init('pages');
//Load configs.
if ($GLOBALS['enablePlugins'] == true) {
    if ($_SESSION['loaded_plugins'] != NULL) {
        foreach ($_SESSION['loaded_plugins'] as $folderName) {
            if (file_exists('plugins/' . $folderName . '/config.php')) {
                include_once 'plugins/' . $folderName . '/config.php';
            }
        }
    }
}
$account = new account();
$account->getRemember();
//Remember thingy.
//This is to prevent the error "Undefined index: p"
if (!isset($_GET['p'])) {