80 Star 153 Fork 81

蔡培超 / ThinkOX

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
api.php 550 Bytes
一键复制 编辑 原始数据 按行查看 历史
想天皮克斯 提交于 2014-07-24 16:22 . 修正api
<?php
/**
* Created by PhpStorm.
* User: caipeichao
* Date: 1/14/14
* Time: 8:12 PM
*/
/**
* 调试开关
* 项目正式部署后请设置为false
*/
define ( 'APP_DEBUG', true );
//从URL获取SESSION编号
ini_set("session.use_cookies",0);
ini_set("session.use_trans_sid",1);
if($_REQUEST['session_id']) {
session_id($_REQUEST['session_id']);
session_start();
}
//调用Application/Api应用
$_GET['m'] = 'App';
define ( 'APP_PATH', './Application/' );
define ( 'RUNTIME_PATH', './Runtime/' );
require './ThinkPHP/ThinkPHP.php';
PHP
1
https://gitee.com/caipeichao/ThinkOX.git
git@gitee.com:caipeichao/ThinkOX.git
caipeichao
ThinkOX
ThinkOX
master

搜索帮助