鼠笼管理系统
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.
squirrel_cage/index.php

16 lines
581 B

<?php
if(empty($_SESSION)){session_start();}
7 months ago
header("Content-type: text/html; charset=utf-8");
header("Access-Control-Allow-Origin:*");
# 全局
7 months ago
#windows
define("APPLICATION_PATH", realpath((phpversion() >= "5.3"? __DIR__: dirname(__FILE__)).'/'));
#linux
// 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();