<?php
error_reporting(E_ALL); //E_ALL
 
function cache_shutdown_error() {
 
    $_error = error_get_last();
 
    if ($_error && in_array($_error['type'], array( 4, 16, 64, 256, 4096, E_ALL))) {
 
        echo '<font color=red>Coding Error：</font></br>';
        echo '致命错误:' . $_error['message'] . '</br>';
        echo '文件:' . $_error['file'] . '</br>';
        echo '在第' . $_error['line'] . '行</br>';
    }
}
 
register_shutdown_function("cache_shutdown_error");
// Version
define('VERSION', '2.2.0.0');

// Configuration
if (is_file('config.php')) {
 require_once('config.php');
}

// Install
if (!defined('DIR_APPLICATION')) {
 header('Location: install/index.php');
 exit;
}

// VirtualQMOD
require_once('./vqmod/vqmod.php');
VQMod::bootup();

// VQMODDED Startup
require_once(VQMod::modCheck(DIR_SYSTEM . 'startup.php'));

$application_config = 'catalog';

// Application
require_once(VQMod::modCheck(DIR_SYSTEM . 'framework.php'));