代码拉取完成,页面将自动刷新
同步操作将从 王东祥/HongYuDSC 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?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');
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。