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.
11 lines
425 B
11 lines
425 B
<?php
|
|
if(empty($_SESSION)){session_start();}
|
|
header("Content-type: text/html; charset=utf-8");
|
|
# 全局
|
|
define("APPLICATION_PATH", realpath((phpversion() >= "5.3"? __DIR__: dirname(__FILE__)).'/../'));
|
|
date_default_timezone_set("Asia/Shanghai");
|
|
# 域名前缀(cdn)
|
|
function host(){return '';}
|
|
# 加载配置文件
|
|
$app = new Yaf_Application(APPLICATION_PATH . "/conf/application.ini", 'common');
|
|
$app->bootstrap()->run();
|
|
|