1 Star 0 Fork 0

TomasXjp / redis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 848 Bytes
一键复制 编辑 原始数据 按行查看 历史
xjp 提交于 2018-04-02 18:32 . commit
<?php
/*------------------------------------------------------
* 系统入口文件
* 访问模式:
* http://ip/index.php?app=app&c=order&a=buypub
*
*------------------------------------------------------
*/
date_default_timezone_set('Asia/Shanghai');
include 'Common/bootstrop.php';
$app = isset($_GET['app']) ? $_GET['app'] : 'app';
$controller = isset($_GET['c']) ? $_GET['c'] : 'goods';
$action = isset($_GET['a']) ? $_GET['a'] : 'goodsLits';
$file = SEC_ROOT_PATH. '/' .$app. '/' .$controller.'.php';
if(is_file($file)){
defined('APP') or define('APP',$app);
defined('CONTROLLER') or define('CONTROLLER',$controller);
defined('ACTION') or define('ACTION',$action);
include $file;
$appClass = new $controller();
$appClass->$action();
}else{
throw new Exception("应用错误", 1);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/TomasXjp/redis.git
git@gitee.com:TomasXjp/redis.git
TomasXjp
redis
redis
master

搜索帮助

Bbcd6f05 5694891 0cc6727d 5694891