oauth/wx/config_panel.php
(开头部分) 4KB这里只显示每个文件的开头 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.oauth",@$_SESSION['monxin']['function'])){exit('noPower');}
if(@$_GET['act']=='submit'){
$_GET=monxin_trim($_GET);
if(!is_numeric(@$_GET['sequence'])){exit("{'state':'fail','errType':'sequence','errInfo':'必须是数字'}");}
$r=scandir('../');
foreach($r as $v){
if(is_dir('../'.$v) && $v!='.' && $v!='..' && $v!='wx'){
$c=require('../'.$v.'/config.php');
if($c['sequence']==$_GET['sequence']){exit("{'state':'fail','errType':'sequence','errInfo':'排序已存在,请不要重复'}");}
}
}
@require "../../plugin/set_magic_quotes_gpc_off/set_magic_quotes_gpc_off.php";
if(@$_GET['name']==''){exit("{'state':'fail','errType':'name','errInfo':'不能为空'}");}
if(@$_GET['state']!='opening' && @$_GET['state']!='closed'){exit("{'state':'fail','errType':'state','errInfo':'不能为空'}");}
if(@$_GET['wid']==''){exit("{'state':'fail','errType':'wid','errInfo':'不能为空'}");}
if(@$_GET['appid']==''){exit("{'state':'fail','errType':'appid','errInfo':'不能为空'}");}
if(@$_GET['appsecret']==''){exit("{'state':'fail','errType':'appsecret','errInfo':'不能为空'}");}
$config['name']=$_GET['name'];
$config['state']=$_GET['state'];
$config['sequence']=$_GET['sequence'];
$config['wid']=$_GET['wid'];
$config['appid']=$_GET['appid'];
$config['appsecret']=$_GET['appsecret'];
if(file_put_contents('./config.php','<?php return '.var_export($config,true).'?>')){
exit("{'state':'success','errType':'exe_success','errInfo':'成功'}");
}else{
exit("{'state':'fail','errType':'exe_fail','errInfo':'失败'}");
}
}
?>
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<script src="../../public/jquery.js"></script>
<script src="../../public/sys_head.js"></script>
<script src="../../public/top_ajax_form.js"></script>
<script>
$(document).ready(function(){
});
function exe_check(){
//表单输入值检测... 如果非法则返回 false
$(".input span").html('');
$("#submit_state").html("<img src='../../templates/index/default/pc/img/monxin.gif'>");
后面还有 38 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
