2013-07-17 13:13:57 +08:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Typecho Blog Platform
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2008 Typecho team (http://www.typecho.org)
|
|
|
|
* @license GNU General Public License 2.0
|
|
|
|
* @version $Id: index.php 1153 2009-07-02 10:53:22Z magike.net $
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** 载入配置支持 */
|
2014-04-22 22:42:35 +08:00
|
|
|
if (!defined('__TYPECHO_ROOT_DIR__') && !@include_once 'config.inc.php') {
|
2013-07-17 13:13:57 +08:00
|
|
|
file_exists('./install.php') ? header('Location: install.php') : print('Missing Config File');
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** 初始化组件 */
|
2021-09-01 17:08:57 +08:00
|
|
|
\Widget\Init::alloc();
|
2013-07-17 13:13:57 +08:00
|
|
|
|
|
|
|
/** 注册一个初始化插件 */
|
2025-01-07 19:42:15 +08:00
|
|
|
\Typecho\Plugin::factory('index.php')->call('begin');
|
2013-07-17 13:13:57 +08:00
|
|
|
|
|
|
|
/** 开始路由分发 */
|
2021-08-24 14:19:14 +08:00
|
|
|
\Typecho\Router::dispatch();
|
2013-07-17 13:13:57 +08:00
|
|
|
|
|
|
|
/** 注册一个结束插件 */
|
2025-01-07 19:42:15 +08:00
|
|
|
\Typecho\Plugin::factory('index.php')->call('end');
|