payment/weixin_wap/config_panel.php
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
header('Content-Type:text/html;charset=utf-8');
ini_set('session.save_path', '../../config/session/');
session_start();
$config=require("./config.php");
require_once '../../config/functions.php';
if(!@in_array("index.payment",@$_SESSION['monxin']['function'])){exit('noPower');}
if(@$_GET['act']=='submit'){
$_POST=monxin_trim($_POST);
@require "../../plugin/set_magic_quotes_gpc_off/set_magic_quotes_gpc_off.php";
if(@$_POST['provider_name']==''){exit("{'state':'fail','errType':'provider_name','errInfo':'不能为空'}");}
if(@$_POST['for']!='pc' && @$_POST['for']!='phone'){exit("{'state':'fail','errType':'for','errInfo':'不能为空'}");}
if(@$_POST['state']!='opening' && @$_POST['state']!='closed'){exit("{'state':'fail','errType':'state','errInfo':'不能为空'}");}
if(!is_numeric(@$_POST['rate'])){exit("{'state':'fail','errType':'rate','errInfo':'必须是数字'}");}
if(!is_numeric(@$_POST['mchid'])){exit("{'state':'fail','errType':'mchid','errInfo':'必须是数字'}");}
$config['provider_name']=$_POST['provider_name'];
$config['state']=$_POST['state'];
$config['rate']=$_POST['rate'];
$config['appid']=$_POST['appid'];
$config['appsecret']=$_POST['appsecret'];
$config['mchid']=$_POST['mchid'];
$config['key']=$_POST['key'];
$config['for']=$_POST['for'];
if($_FILES['sslcert_path']['tmp_name']!=''){
$sslcert_path=md5(time().get_verification_code(5));
move_uploaded_file($_FILES['sslcert_path']['tmp_name'],'./cert/'.$sslcert_path.'.pem');
if(is_file('./cert/'.$sslcert_path.'.pem')){
@unlink($config['sslcert_path']);
$config['sslcert_path']='./cert/'.$sslcert_path.'.pem';
}
}
if($_FILES['sslkey_path']['tmp_name']!=''){
$sslkey_path=md5(time().get_verification_code(5));
move_uploaded_file($_FILES['sslkey_path']['tmp_name'],'./cert/'.$sslkey_path.'.pem');
if(is_file('./cert/'.$sslkey_path.'.pem')){
@unlink($config['sslkey_path']);
$config['sslkey_path']='./cert/'.$sslkey_path.'.pem';
}
}
if(file_put_contents('./config.php','<?php return '.var_export($config,true).'?>')){
$mb=file_get_contents('./lib/WxPay.Config_template.php');
foreach($config as $k=>$v){
$mb=str_replace('{'.$k.'}',$v,$mb);
}
if(file_put_contents('./lib/WxPay.Config.php',$mb)){
exit("{'state':'success','errType':'exe_success','errInfo':'成功'}");
}else{
exit("{'state':'fail','errType':'exe_fail','errInfo':'失败'}");
}
}else{
exit("{'state':'fail','errType':'exe_fail','errInfo':'失败'}");
}
后面还有 75 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
