function load_db_connection() { global $Sql, $Errorh; import('core/errors'); $Errorh = new Errors(); import('db/mysql'); $Sql = new Sql(); $Sql->auto_connect(); }
require_once PATH_TO_ROOT . '/kernel/constant.php'; require_once PATH_TO_ROOT . '/kernel/framework/functions.inc.php'; import('core/errors'); import('io/template'); import('db/mysql'); import('core/cache'); import('members/session'); import('members/user'); import('members/groups'); import('members/authorizations'); import('core/breadcrumb'); import('content/parser/content_formatting_factory'); $Errorh = new Errors(); $Template = new Template(); $Sql = new Sql(); $Sql->auto_connect(); $Cache = new Cache(); $Bread_crumb = new BreadCrumb(); $CONFIG = array(); $Cache->load('config'); $Cache->load('groups'); $Cache->load('member'); $Cache->load('modules'); $Cache->load('themes'); $Cache->load('langs'); define('DIR', $CONFIG['server_path']); define('HOST', $CONFIG['server_name']); define('TPL_PATH_TO_ROOT', !empty($CONFIG['server_path']) ? $CONFIG['server_path'] : ''); $Session = new Session(); if ($CONFIG['ob_gzhandler'] == 1) { ob_start('ob_gzhandler');