1 Star 0 Fork 7

脉脉不得语/HongYuDSC

forked from 王东祥/HongYuDSC 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
respond.php 1.89 KB
一键复制 编辑 原始数据 按行查看 历史
鸿宇科技 提交于 2018-03-02 02:43 . Initial commit
<?php
//zend by QQ:1527200768 鸿宇科技 禁止倒卖 一经发现停止任何服务
define('IN_ECS', true);
require dirname(__FILE__) . '/includes/init.php';
require ROOT_PATH . 'includes/lib_payment.php';
require ROOT_PATH . 'includes/lib_order.php';
$pay_code = (!empty($_REQUEST['code']) ? trim($_REQUEST['code']) : '');
if (empty($pay_code) && !empty($_REQUEST['v_pmode']) && !empty($_REQUEST['v_pstring'])) {
$pay_code = 'cappay';
}
if (empty($pay_code) && ($_REQUEST['ext1'] == 'shenzhou') && ($_REQUEST['ext2'] == 'ecshop')) {
$pay_code = 'shenzhou';
}
if (empty($pay_code)) {
$msg = $_LANG['pay_not_exist'];
}
else {
if (strpos($pay_code, '?') !== false) {
$arr1 = explode('?', $pay_code);
$arr2 = explode('=', $arr1[1]);
$_REQUEST['code'] = $arr1[0];
$_REQUEST[$arr2[0]] = $arr2[1];
$_GET['code'] = $arr1[0];
$_GET[$arr2[0]] = $arr2[1];
$pay_code = $arr1[0];
}
$sql = 'SELECT COUNT(*) FROM ' . $ecs->table('payment') . ' WHERE pay_code = \'' . $pay_code . '\' AND enabled = 1';
if ($db->getOne($sql) == 0) {
$msg = $_LANG['pay_disabled'];
}
else {
$plugin_file = 'includes/modules/payment/' . $pay_code . '.php';
if (file_exists($plugin_file)) {
include_once $plugin_file;
$payment = new $pay_code();
$msg = (@$payment->respond() ? $_LANG['pay_success'] : $_LANG['pay_fail']);
}
else {
$msg = $_LANG['pay_not_exist'];
}
}
}
assign_template();
$position = assign_ur_here();
$smarty->assign('page_title', $position['title']);
$smarty->assign('ur_here', $position['ur_here']);
$smarty->assign('page_title', $position['title']);
$smarty->assign('ur_here', $position['ur_here']);
$smarty->assign('helps', get_shop_help());
if (defined('THEME_EXTENSION')) {
$categories_pro = get_category_tree_leve_one();
$smarty->assign('categories_pro', $categories_pro);
}
$smarty->assign('message', $msg);
$smarty->assign('shop_url', $ecs->url());
$smarty->display('respond.dwt');
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/inferjay/HongYuDSC.git
[email protected]:inferjay/HongYuDSC.git
inferjay
HongYuDSC
HongYuDSC
master

搜索帮助