1234567891011121314151617181920212223242526272829303132 |
- <?php
- // +----------------------------------------------------------------------
- // | ThinkPHP [ WE CAN DO IT JUST THINK ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2006-2015 http://thinkphp.cn All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
- // +----------------------------------------------------------------------
- // | Author: liu21st <liu21st@gmail.com>
- // +----------------------------------------------------------------------
- // [ 应用入口文件 ]
- //跨域请求设置
- header('Access-Control-Allow-Origin:*');
- header('Access-Control-Allow-Credentials:true');
- header('Access-Control-Allow-Methods:*');
- header('Access-Control-Allow-Headers:Origin,X-Requested-With, Content-Type, Accept, x-access-sign, x-access-time, uid,Access-Control-Allow-Credentials,Access-Token,access-token,token,access-control-allow-origin,Token,Access-Control-Allow-Origin,Content-Type,Referer,User-Agent');
- // 定义应用目录
- define('APP_PATH', __DIR__ . '/../application/');
- // 定义上传目录
- define('UPLOAD_PATH', __DIR__ . '/../public');
- // 定义应用缓存目录
- define('RUNTIME_PATH', __DIR__ . '/../runtime/');
- // 开启调试模式
- define('APP_DEBUG', true);
- // 加载框架引导文件
- require __DIR__ . '/../thinkphp/start.php';
|