respond.php,respond.php

news/2024/7/4 8:38:57

//WEBSC商城资源

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('status', $_REQUEST['status']);

$smarty->assign('shop_url', $ecs->url());

$smarty->display('respond.dwt');

?>

一键复制

编辑

Web IDE

原始数据

按行查看

历史


http://www.niftyadmin.cn/n/529815.html

相关文章

javascript检测flash版本

今天要做一个根据用户安装的是什么flash版本&#xff0c;为其播放哪断视频&#xff0c;所以搜了先用javaScrip检测出来版本后&#xff0c;再将其参数发给flash&#xff0c; <SCRIPT typetext/javascript><!--var i_flash;var v_flash;// Netscape if (navigator.plugi…

php 静态方法调用成员,PHP静态方法在成员变量中使用命名空间调用

是不是可以在PHP中做这样的事情&#xff1f;我想在一个成员变量中有一个名称空间,并且总是能够调用该类的每个静态方法,就像我在下面所做的那样.当然我的代码不起作用,但我只是想知道这是否可行,并且我接近解决方案,或者如果这完全不可能并且必须始终使用语法&#xff1a;\Stri…

注入(Injection)

注入(Injection)是: Java EE提供了注入机制&#xff0c;使您的对象能够获取对资源和其他依赖项的引用&#xff0c;而无需直接实例化它们。通过使用将字段标记为注入点的注释之一来装饰字段或方法&#xff0c;可以在类中声明所需的资源和其他依赖项。然后容器在运行时提供所需的…

javaScript 测试下载速度

<script>function init(){var timer1new Date().getTime();var imgnew Image();img.src"http://www.netfront.net/speedtest/images/photo" parseInt(Math.round(Math.random()*5)1) ".bmp?" Math.random();img.οnlοadfunction(){sizeimg.file…

CMDB学习之六 --客户端请求测试,服务端api优化

客户端使用agent 请求测试&#xff0c;agent使用的POST 请求&#xff0c;使用requests模块 本地采集&#xff0c;汇报服务端 #!/usr/bin/env python # -*- coding:utf-8 -*- from .base import BaseHandler from ..plugins import get_server_info import requests import json…

FLEX杂谈——flex就业现状与学习标准分析

写下这个标题大家一定以为我是只FLEX老鸟,不然不敢这么高声说话,而且是在JAVAEYE里.我知道JE里高手很多.有很多人都对FLEX有秀深的见底,写此文是为了回答一些朋友对我的提问. 有很多想转行的开发者都问我这样几个问题:现在招FLEX的公司多吗?搞FLEX开发工资高吗?怎么样才算是F…

php的 提示无效字符,PHP无效字符错误

运行此代码时出现此错误&#xff1a;致命错误&#xff1a;test.php中带有消息’无效字符错误’的未捕获异常’DOMException’&#xff1a;29堆栈跟踪&#xff1a;#0 test.php(29)&#xff1a;DOMDocument-> createElement(‘1OhmStable’,’a’)#1 { main}在第29行的test.ph…

学习笔记66—兴趣阅读之哲学(佛学)

摘要: 题记&#xff1a;不阅读的人只能过一种人生&#xff0c;参与阅读的人能过成百上千的人生。&#xff08;PS&#xff1a;每读完一本书&#xff0c;一定要写读后感&#xff01;&#xff01;&#xff01;&#xff09;转载于:https://www.cnblogs.com/hechangchun/p/10495554.…