插件源码(includes/modules/payment/bankcomm.php):
/***交通银行在线支付插件ForEcshop*Author:Reson*Date:2014/03/31*/
if(!defined('IN_ECS')){die('Hackingattempt');}
$payment_lang=ROOT_PATH.'languages/'.$GLOBALS['_CFG']['lang'].'/payment/bankcomm.php';
if(file_exists($payment_lang)){global$_LANG;include_once($payment_lang);}
/*模块的基本信息*/if(isset($set_modules)&&$set_modules==TRUE){$i=isset($modules)count($modules):0;
/*代码*/$modules[$i]['code']=basename(__FILE__,'.php');
/*描述对应的语言项*/$modules[$i]['desc']='bankcomm_desc';
/*是否支持货到付款*/$modules[$i]['is_cod']='0';
/*是否支持在线支付*/$modules[$i]['is_online']='1';
/*支付费用,由配送决定*/$modules[$i]['pay_fee']='0';
/*作者*/$modules[$i]['author']='Reson';
/*版本号*/$modules[$i]['version']='1.0.0.0';
/*配置信息*/$modules[$i]['config']=array();return;}
/***类*/classbankcomm{/***构造函数**@returnvoid*/functionbankcomm(){}
function__construct(){$this->bankcomm();}
htmlentities($param['orderMono'],"ENT_QUOTES","utf-8");//连接字符串$source='';foreach($paramas$key=>$val){if($key!='issBankNo')$source.=$val.'|';}$source=substr($source,0,strlen($source)-1);
>
/***交通银行语言文件*by:Reson*2014/03/31*/
global$_LANG;
$_LANG['bankcomm']='交通银行在线支付';$_LANG['bankcomm_desc']='交通银行在线支付';$_LANG['pay_button']='交通银行支付';