1 Star 0 Fork 44

gift / yuncart

forked from web3d / yuncart 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
api.php 643 Bytes
一键复制 编辑 原始数据 按行查看 历史
web3d 提交于 2017-03-18 19:40 . chg dir style
<?php
define("IN_CART", true);
define("SITEPATH", dirname(__FILE__));
$stage = "api";
require SITEPATH . "/init.php";
//获取model,action
$model = isset($_REQUEST['model']) ? trim($_REQUEST["model"]) : 'front';
$action = isset($_REQUEST['action']) ? trim($_REQUEST["action"]) : 'index';
if (!in_array($model, array("etao"))) {
$model = "etao";
$action = "index";
}
//执行程序
if (file_exists(STAGEPATH . "/{$model}.class.php")) {
$classname = ucfirst($model);
$class = new $classname($model, $action);
if (method_exists($class, $action)) {
$class->$action();
}
exit();
}
PHP
1
https://gitee.com/zjq528/yuncart.git
git@gitee.com:zjq528/yuncart.git
zjq528
yuncart
yuncart
master

搜索帮助