1 Star 1 Fork 0

berthome / ApiManager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
berthome 提交于 2015-10-19 19:18 . add project
<?php
include './MinPHP/run/init.php';
$act = $_GET['act'];
$act = empty($act) ? 'index' : $_GET['act'];
$menu = '';
switch($act){
//接口分类
case 'cate':
$menu = ' - 分类管理';
$file = './MinPHP/run/cate.php';
break;
//登录退出
case 'login':
$menu = ' - 登录';
$file = './MinPHP/run/login.php';
break;
//首页
case 'index':
$menu = ' - 欢迎';
$file ='./MinPHP/run/hello.php';
break;
//接口详细页
case 'api':
$sql = "select cname from cate where aid='{$_GET['tag']}' and isdel=0";
$menu = find($sql);
$menu = ' - ' . $menu['cname'];
$file ='./MinPHP/run/info.php';
break;
//接口排序页
case 'sort':
$sql = "select cname from cate where aid='{$_GET['tag']}' and isdel=0";
$menu = find($sql);
$menu = ' - ' . "<a href='".U(array('act'=>'api','tag'=>$_GET['tag']))."'>{$menu['cname']}</a>";
$file ='./MinPHP/run/sort.php';
break;
//导出静态文件
case 'export':
die(include('./MinPHP/run/export.php'));
break;
//ajax请求
case 'ajax':
die(include('./MinPHP/run/ajax.php'));
break;
default :
$menu = ' - 欢迎';
$file = './MinPHP/run/hello.php';
break;
}
include './MinPHP/run/main.php';
PHP
1
https://gitee.com/berthome/ApiManager.git
git@gitee.com:berthome/ApiManager.git
berthome
ApiManager
ApiManager
master

搜索帮助