You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
|
|
|
|
/* anti ddos *//*
|
|
|
|
if(!isset($_COOKIE['_token__']) || $_COOKIE['_token__'] != md5(date('Y-m-d-H').$_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT'])) {
|
|
|
|
setcookie("_token__",md5(date('Y-m-d-H').$_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT']),time()+1*3600);
|
|
|
|
header("Location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'], true, 301);
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
include '/home/lib/php/anti-ddos.php';
|
|
|
|
|
|
|
|
anti_ddos();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 $
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** 载入配置支持 */
|
|
|
|
if (!defined('__TYPECHO_ROOT_DIR__') && !@include_once 'config.inc.php') {
|
|
|
|
file_exists('./install.php') ? header('Location: install.php') : print('Missing Config File');
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** 初始化组件 */
|
|
|
|
Typecho_Widget::widget('Widget_Init');
|
|
|
|
|
|
|
|
/** 注册一个初始化插件 */
|
|
|
|
Typecho_Plugin::factory('index.php')->begin();
|
|
|
|
|
|
|
|
/** 开始路由分发 */
|
|
|
|
Typecho_Router::dispatch();
|
|
|
|
|
|
|
|
/** 注册一个结束插件 */
|
|
|
|
Typecho_Plugin::factory('index.php')->end();
|