start(1); /* * Debug container! */ $debug = 'Debug container:
'; } #END; /* * CACHE */ $cache = new cache(); $cache->cacheDir = CACHE; global $cache; /* * SESSION */ $session = new session(); /* * MySQL Connect */ $mysql = new mysql($config['mysql_user'], $config['mysql_pass'], $config['mysql_db'], $config['mysql_host']); global $mysql; /* * Smarty Settings */ $_layoutFile = 'index'; $_templateFile = ''; define('SMARTY_DIR', ENGINE_PATH . "classes/Smarty/"); include_once(SMARTY_DIR . "Smarty.class.php"); $smarty = new Smarty(); $smarty->compile_dir = CACHE . "/templates_cache/"; $smarty->compile_check = true; $smarty->debugging = false; abr('domain', DOMAIN); abr("root_path", ROOT_PATH); abr("data_server", $config['data_server']); $smarty->register_function('createEditor', 'createTextAreaEditor'); global $smarty; #END; /* * Read flash message in $_SESSION */ if ($message = getRefreshMessage()) { addErrorMessage($message['title'], $message['text'], $message['type']); } /* * Set the default paging variables * LIMIT = 10 */ if (!defined('LIMIT')) { define('LIMIT', 10, true); } if (isset($_GET['p']) && is_numeric($_GET['p']) && $_GET['p'] > 1) { define('PAGE', intval($_GET['p'])); define('START', (PAGE - 1) * LIMIT); } else { define('PAGE', 1); define('START', 0); } #END; define('adminURL', 'admin'); include_once ENGINE_PATH . '/system/core.url.php'; include_once ENGINE_PATH . '/system/core.languages.php'; ?>