示例#1
0
     * LEMON_IS_WIN = TRUE : FALSE
     * PCRE_UNICODE_PROPERTIES = TRUE : FALSE
     * SERVER_UTF8 = TRUE : FALSE
     */
    require RUNTIME_PATH . 'core/Detect.php';
}
/* 引入utf8库 */
require RUNTIME_PATH . 'core/utf8.php';
/* 执行清理 */
require RUNTIME_PATH . 'core/Cleanup.php';
/* 引入事件系统 */
require RUNTIME_PATH . 'core/Event.php';
/* 引入Lemon */
require RUNTIME_PATH . 'core/Lemon.php';
// Prepare the environment
Lemon::setup();
!defined('APP_INIT') && is_file(APP_PATH . 'core/Init.php') && (include APP_PATH . 'core/Init.php');
!defined('APP_INIT') && define('APP_INIT', 1);
// End runtime_loading
DEBUG == 1 && Benchmark::stop(SYSTEM_BENCHMARK . '_runtime_loading');
if (RUNTIME_UI == 'WEB') {
    // Start system_initialization
    DEBUG == 1 && Benchmark::start(SYSTEM_BENCHMARK . '_system_initialization');
    // Prepare the system
    Event::run('system.ready');
    // Determine routing
    Event::run('system.routing');
    // End system_initialization
    DEBUG == 1 && Benchmark::stop(SYSTEM_BENCHMARK . '_system_initialization');
    // Make the magic happen!
    Event::run('system.execute');