Example #1
0
include CONFIG_PATH . 'db.config.php';
include_once PLUS_PATH . 'config.php';
include CONFIG_PATH . 'db.safety.php';
$starttime = time();
define('DEF_DATA', $db_config['def']);
unset($_ENV, $HTTP_ENV_VARS, $_REQUEST, $HTTP_POST_VARS, $HTTP_GET_VARS);
$_COOKIE = is_array($_COOKIE) ? $_COOKIE : $HTTP_COOKIE_VARS;
header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
header('Content-Type: text/html; charset=' . $db_config['charset']);
header("Cache-control: private");
@ob_start('ob_gzhandler');
date_default_timezone_set($db_config['timezone']);
include_once LIB_PATH . "mysql.class.php";
include_once LIB_PATH . 'libs/Smarty.class.php';
$phpyun = new smarty();
$phpyun->debugging = false;
$phpyun->caching = false;
$phpyun->force_cache = true;
$phpyun->template_dir = TPL_PATH;
$phpyun->compile_dir = DATA_PATH . '/templates_c/';
$phpyun->left_delimiter = '{yun:}';
$phpyun->right_delimiter = '{/yun}';
$phpyun->get_install();
if (is_file(LIB_PATH . 'webscan360/360safe/360webscan.php')) {
    require_once LIB_PATH . 'webscan360/360safe/360webscan.php';
}
$db = new mysql($db_config['dbhost'], $db_config['dbuser'], $db_config['dbpass'], $db_config['dbname'], ALL_PS, $db_config['charset'], $db_config['def']);
include_once LIB_PATH . 'public.function.php';
include LIB_PATH . 'public.url.php';
include_once LIB_PATH . 'public.domain.php';
include PLUS_PATH . 'seo.cache.php';