无为WiFi的一批服务器

2023-10-12 18:30
文章标签 服务器 wifi 无为 一批

本文主要是介绍无为WiFi的一批服务器,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

我们在多个地区拥有高速服务器,保证网速给力,刷片无压力

嘿嘿

<?phpinclude("./includes/common.php");
$act=isset($_GET['act'])?daddslashes($_GET['act']):null;
$url=daddslashes($_GET['url']);
$authcode=daddslashes($_GET['authcode']);@header('Content-Type: application/json; charset=UTF-8');if($act=='clone')
{$key=daddslashes($_GET['key']);if(!$key)exit('{"code":-5,"msg":"确保各项不能为空"}');if($key!=md5($password_hash.md5(SYS_KEY).$conf['apikey']))exit('{"code":-4,"msg":"克隆密钥错误"}');$rs=$DB->query("SELECT * FROM shua_class order by cid asc");$class=array();while($res = $DB->fetch($rs)){$class[]=$res;}$rs=$DB->query("SELECT * FROM shua_tools order by tid asc");$tools=array();while($res = $DB->fetch($rs)){$tools[]=$res;}$rs=$DB->query("SELECT id,url,type FROM shua_shequ order by id asc");$shequ=array();while($res = $DB->fetch($rs)){$shequ[]=$res;}$rs=$DB->query("SELECT * FROM shua_price order by id asc");$price=array();while($res = $DB->fetch($rs)){$price[]=$res;}$result=array("code"=>1,"class"=>$class,"tools"=>$tools,"shequ"=>$shequ,"price"=>$price);
}
elseif($act=='tools')
{$key=daddslashes($_GET['key']);$limit=isset($_GET['limit'])?intval($_GET['limit']):50;if(!$key)exit('{"code":-5,"msg":"确保各项不能为空"}');if($key!=$conf['apikey'])exit('{"code":-4,"msg":"API对接密钥错误,请在后台设置密钥"}');$rs=$DB->query("SELECT * FROM shua_tools WHERE active=1 order by tid asc limit $limit");while($res = $DB->fetch($rs)){$data[]=array('tid'=>$res['tid'],'cid'=>$res['cid'],'sort'=>$res['sort'],'name'=>$res['name'],'price'=>$res['price']);}exit(json_encode($data));
}
elseif($act=='orders')
{$tid=intval($_GET['tid']);$key=daddslashes($_GET['key']);$limit=isset($_GET['limit'])?intval($_GET['limit']):50;$format=isset($_GET['format'])?daddslashes($_GET['format']):'json';if(!$key)exit('{"code":-5,"msg":"确保各项不能为空"}');if($key!=$conf['apikey'])exit('{"code":-4,"msg":"API对接密钥错误,请在后台设置密钥"}');if($tid){$tool=$DB->get_row("SELECT * FROM shua_tools WHERE tid='$tid' and active=1 limit 1");if(!$tool)exit('{"code":-5,"msg":"商品ID不存在"}');$sqls=" and tid='$tid'";$value=$tool['value']>0?$tool['value']:1;}$rs=$DB->query("SELECT * FROM shua_orders WHERE status=0{$sqls} order by id asc limit $limit");while($res = $DB->fetch($rs)){$data[]=array('id'=>$res['id'],'tid'=>$res['tid'],'input'=>$res['input'],'input2'=>$res['input2'],'input3'=>$res['input3'],'input4'=>$res['input4'],'input5'=>$res['input5'],'value'=>$res['value'],'status'=>$res['status']);if($_GET['sign']==1)$DB->query("update `shua_orders` set status=1 where `id`='{$res['id']}'");}if($format=='text'){$txt = '';foreach($data as $row){$txt .= $row['input'] . ($row['input2']?'----'.$row['input2']:null) . ($row['input3']?'----'.$row['input3']:null) . ($row['input4']?'----'.$row['input4']:null) . ($row['input5']?'----'.$row['input5']:null) . '----' . $row['value'] . "\r\n";}exit($txt);}else{exit(json_encode($data));}
}
elseif($act=='change')
{$id=intval($_GET['id']);$key=daddslashes($_GET['key']);$status=intval($_GET['zt']); //1:已完成,2:正在处理,3:异常,4:待处理if(!$id || !$key)exit('{"code":-5,"msg":"确保各项不能为空"}');if($key!=$conf['apikey'])exit('{"code":-4,"msg":"API对接密钥错误,请在后台设置密钥"}');$row=$DB->get_row("SELECT * FROM shua_orders WHERE id='$id' limit 1");if($id=$row['id']) {$sql="update `shua_orders` set `status`='$status' where `id`='{$id}' limit 1";if($DB->query($sql)){$result=array("code"=>1,"msg"=>"修改成功","id"=>$id);}else{$result=array("code"=>-2,"msg"=>"修改失败","id"=>$id);}}else{$result=array("code"=>-5,"msg"=>"订单ID不存在");}
}
elseif($act == 'goodslist')
{$result['code'] = 0;if(isset($_POST['user']) && isset($_POST['pass'])){$user = trim(daddslashes($_POST['user']));$pass = trim(daddslashes($_POST['pass']));$userrow = $DB->get_row("SELECT * FROM `shua_site` WHERE `user` = '{$user}' LIMIT 1");if ($userrow && $userrow['user'] == $user && $userrow['pwd'] == $pass && $userrow['status'] == 1) {$islogin2 = 1;$price_obj = new Price($userrow['zid'],$userrow);} elseif ($userrow && $userrow['status'] == 0) {exit('{"code":-1,"message":"该账户已被封禁"}');} else {exit('{"code":-1,"message":"用户名或密码不正确"}');}}$rs=$DB->query("SELECT * FROM `shua_tools` WHERE `active` = 1 ORDER BY `cid` ASC,`sort` ASC");while($res = $DB->fetch($rs)){if($islogin2 == 1){$price_obj->setToolInfo($res['tid'],$res);$price = $price_obj->getToolPrice($res['tid']);}else{$price = 0;}$data[] = array('tid' => $res['tid'] , 'cid' => $res['cid'] , 'name' => $res['name'] , 'shopimg' => $res['shopimg'] , 'close' => $res['close'] , 'price' => $price);}$result['data'] = $data;exit(json_encode($result));
}
elseif($act == 'goodsdetails')
{$result['code'] = 0;$tid = intval($_POST['tid']);if(!$tid)exit('{"code":-1,"message":"商品ID不能为空"}');if(isset($_POST['user']) && isset($_POST['pass'])){$user = trim(daddslashes($_POST['user']));$pass = trim(daddslashes($_POST['pass']));$userrow = $DB->get_row("SELECT * FROM `shua_site` WHERE `user` = '{$user}' LIMIT 1");if ($userrow && $userrow['user'] == $user && $userrow['pwd'] == $pass && $userrow['status'] == 1) {$islogin2 = 1;$price_obj = new Price($userrow['zid'],$userrow);} elseif ($userrow && $userrow['status'] == 0) {exit('{"code":-1,"message":"该账户已被封禁"}');} else {exit('{"code":-1,"message":"用户名或密码不正确"}');}}$tool = $DB->get_row("SELECT * FROM `shua_tools` WHERE `tid` = {$tid} LIMIT 1");if($islogin2 == 1){$price_obj->setToolInfo($tid, $tool);$price = $price_obj->getToolPrice($tid);}else{$price = 0;}if($res['is_curl']==4){$isfaka = 1;}else{$isfaka = 0;}$data = array('tid'=>$tool['tid'],'cid'=>$tool['cid'],'sort'=>$tool['sort'],'name'=>$tool['name'],'value'=>$tool['value'],'price'=>$price,'prices'=>$tool['prices'],'input'=>$tool['input'],'inputs'=>$tool['inputs'],'desc'=>$tool['desc'],'alert'=>$tool['alert'],'shopimg'=>$tool['shopimg'],'repeat'=>$tool['repeat'],'multi'=>$tool['multi'],'min'=>$tool['min'],'max'=>$tool['max'],'close'=>$tool['close'],'isfaka'=>$isfaka);$result['data'] = $data;exit(json_encode($result));
}
elseif($act == 'pay')
{$result['code'] = -1;$tid = intval($_POST['tid']);if(!$tid)exit('{"code":-1,"message":"商品ID不能为空"}');$user = trim(daddslashes($_POST['user']));$pass = trim(daddslashes($_POST['pass']));$input1 = isset($_POST['input1']) ? trim(strip_tags(daddslashes($_POST['input1']))) : exit('{"code":-1,"message":"首个参数值不能为空"}');$input2 = trim(strip_tags(daddslashes($_POST['input2'])));$input3 = trim(strip_tags(daddslashes($_POST['input3'])));$input4 = trim(strip_tags(daddslashes($_POST['input4'])));$input5 = trim(strip_tags(daddslashes($_POST['input5'])));$num = isset($_POST['num']) ? intval($_POST['num']) : 1;$tool = $DB->get_row("SELECT * FROM `shua_tools` WHERE `tid` = {$tid} LIMIT 1");if ($tool && $tool['active'] == 1) {if($tool['close']==1)exit('{"code":-1,"msg":"当前商品维护中,停止下单!"}');$userrow = $DB->get_row("SELECT * FROM `shua_site` WHERE `user` = '{$user}' LIMIT 1");if ($userrow && $userrow['user'] == $user && $userrow['pwd'] == $pass && $userrow['status'] == 1) {$result['code'] = 0;if(in_array($input1,explode("|",$conf['blacklist']))) exit('{"code":-1,"message":"你的下单账号已被拉黑,无法下单!"}');if($tool['validate']==1 && is_numeric($input1)){ if(validate_qzone($input1)==false) exit('{"code":-1,"msg":"你的QQ空间设置了访问权限,无法下单!"}'); }if($tool['multi'] == 0 || $num < 1) $num = 1;$islogin2 = 1;$price_obj = new Price($userrow['zid'],$userrow);$price_obj->setToolInfo($tid,$tool);$price = $price_obj->getToolPrice($tid);$price=$price_obj->getFinalPrice($price, $num);if(!$price)exit('{"code":-1,"msg":"当前商品批发价格优惠设置不正确"}');$need = $price * $num;if($need == 0) exit('{"code":-2,"message":"不支持免费商品对接"}');if ($userrow['rmb'] < $need) exit('{"code":-2,"message":"余额不足,购买此商品还差' . ($need - $userrow['rmb']) . '元"}');$trade_no = date("YmdHis").rand(111,999).'RMB';$input = $input1 . ($input2 ? '|' . $input2 : null) . ($input3 ? '|' . $input3 : null) . ($input4 ? '|' . $inputvalue4 : null) . ($input5 ? '|' . $input5 : null);$sql = "INSERT INTO `shua_pay` (`trade_no`,`type`,`zid`,`input`,`num`,`addtime`,`name`,`money`,`ip`,`status`) VALUES";$sql .= "('{$trade_no}','rmb',{$userrow['zid']},'{$input}',{$num},'{$date}','{$tool['name']}',{$need},NULL,0)";if ($DB->query($sql)) {if ($DB->query("UPDATE `shua_site` SET `rmb` = rmb - {$need} WHERE `zid` = '{$userrow['zid']}'") && $DB->query("UPDATE `shua_pay` SET `status` = 1 WHERE `trade_no` = '{$trade_no}'")) {addPointRecord($userrow['zid'], $need, '消费', '购买 '.$tool['name']);$srow['tid'] = $tid;$srow['num'] = $num;$srow['input'] = $input;$srow['zid'] = $userrow['zid'];$srow['money'] = $need;$srow['trade_no'] = $trade_no;if($orderid = processOrder($srow)){$result['code'] = 0;$result['message'] = 'success';$result['orderid'] = $orderid;$djzt = $DB->get_column("SELECT djzt FROM shua_orders WHERE id = '$orderid' LIMIT 1");if($djzt == 3){$rs=$DB->query("SELECT * FROM shua_faka WHERE tid='$tid' AND orderid='$orderid' ORDER BY kid ASC");$kmdata=array();while($res = $DB->fetch($rs)){if(!empty($res['pw'])){$kmdata[]=array('card'=>$res['km'],'pass'=>$res['pw']);}else{$kmdata[]=array('card'=>$res['km']);}}$result['faka']=true;$result['kmdata']=$kmdata;}} else {$result['message'] = '下单失败 : ' . $DB->error();}} else {$result['message'] = '下单失败 : ' . $DB->error();}} else {$result['message'] = '下单失败 : ' . $DB->error();}} elseif ($userrow && $userrow['status'] == 0) {$result['message'] = '该账户已被封禁';} else {$result['message'] = '用户名或密码不正确';}} else {$result['message'] = '商品ID不存在';}
}
elseif($act == 'search') 
{$result['code'] = -1;$id = intval($_GET['id']);$row = $DB->get_row("SELECT * FROM `shua_orders` WHERE `id` = {$id} LIMIT 1");if ($row){$tool = $DB->get_row("select * from shua_tools where tid='{$row['tid']}' limit 1");$shequ = $DB->get_row("select * from shua_shequ where id='{$tool['shequ']}' limit 1");if($shequ['type']==1){$list = yile_chadan($shequ['url'], $tool['goods_id'], $row['input'], $row['djorder']);}elseif($shequ['type']==0 || $shequ['type']==2){$list = jiuwu_chadan($shequ['url'], $shequ['username'], $shequ['password'], $row['djorder']);}elseif($shequ['type']==3 || $shequ['type']==5){$list = xmsq_chadan($shequ['url'], $tool['goods_id'], $row['input'], $row['djorder']);}elseif($shequ['type']==10){$list = qqbug_chadan($shequ['password'], $row['djorder']);}elseif($shequ['type']==11){$list = jumeng_chadan($shequ['url'], $row['djorder']);}elseif($shequ['type']==20){if(class_exists("ExtendAPI") && method_exists('ExtendAPI','chadan')){$list = ExtendAPI::chadan($shequ['url'], $shequ['username'], $shequ['password'], $row['djorder'], $tool['goods_id'], $row['input']);}else{exit('{"code":-1,"msg":"该对接类型暂不支持查询订单进度"}');}}else{exit('{"code":-1,"msg":"该对接类型暂不支持查询订单进度"}');}if($list['order_state']=='已完成' && $row['status']==2){$DB->query("UPDATE `shua_orders` SET `status`=1 WHERE id='{$id}'");}if(is_array($list)){$result['code'] = 0;$result['message'] = 'success';$result['data'] = $list;}else{$result['message'] = '获取数据失败';}} else {$result['message'] = '订单不存在';}
}
elseif($act=='siteinfo')
{$count1=$DB->count("SELECT count(*) from shua_orders");$count2=$DB->count("SELECT count(*) from shua_orders where status>=1");$count3=$DB->count("SELECT count(*) from shua_site");$result=array('sitename'=>$conf['sitename'],'kfqq'=>$conf['qq']?$conf['qq']:$conf['kfqq'],'anounce'=>$conf['anounce'],'modal'=>$conf['modal'],'bottom'=>$conf['bottom'],'alert'=>$conf['alert'],'gg_search'=>$conf['gg_search'],'gg_panel'=>$conf['gg_panel'],'version'=>VERSION,'build'=>$conf['build'],'orders'=>$count1,'orders1'=>$count2,'sites'=>$count3,'appalert'=>$conf['appalert']);
}
elseif($act=='token')
{$key = isset($_GET['key'])?$_GET['key']:exit('No key');$result=array('token'=>get_app_token($key),'time'=>time());
}
else
{$result=array("code"=>-5,"msg"=>"No Act!");
}echo json_encode($result);
$DB->close();
?>

嘿嘿水一个

这篇关于无为WiFi的一批服务器的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/197644

相关文章

服务器集群同步时间手记

1.时间服务器配置(必须root用户) (1)检查ntp是否安装 [root@node1 桌面]# rpm -qa|grep ntpntp-4.2.6p5-10.el6.centos.x86_64fontpackages-filesystem-1.41-1.1.el6.noarchntpdate-4.2.6p5-10.el6.centos.x86_64 (2)修改ntp配置文件 [r

PTA求一批整数中出现最多的个位数字

作者 徐镜春 单位 浙江大学 给定一批整数,分析每个整数的每一位数字,求出现次数最多的个位数字。例如给定3个整数1234、2345、3456,其中出现最多次数的数字是3和4,均出现了3次。 输入格式: 输入在第1行中给出正整数N(≤1000),在第二行中给出N个不超过整型范围的非负整数,数字间以空格分隔。 输出格式: 在一行中按格式“M: n1 n2 ...”输出,其中M是最大次数,n

Linux服务器Java启动脚本

Linux服务器Java启动脚本 1、初版2、优化版本3、常用脚本仓库 本文章介绍了如何在Linux服务器上执行Java并启动jar包, 通常我们会使用nohup直接启动,但是还是需要手动停止然后再次启动, 那如何更优雅的在服务器上启动jar包呢,让我们一起探讨一下吧。 1、初版 第一个版本是常用的做法,直接使用nohup后台启动jar包, 并将日志输出到当前文件夹n

速盾:直播 cdn 服务器带宽?

在当今数字化时代,直播已经成为了一种非常流行的娱乐和商业活动形式。为了确保直播的流畅性和高质量,直播平台通常会使用 CDN(Content Delivery Network,内容分发网络)服务器来分发直播流。而 CDN 服务器的带宽则是影响直播质量的一个重要因素。下面我们就来探讨一下速盾视角下的直播 CDN 服务器带宽问题。 一、直播对带宽的需求 高清视频流 直播通常需要传输高清视频

一种改进的red5集群方案的应用、基于Red5服务器集群负载均衡调度算法研究

转自: 一种改进的red5集群方案的应用: http://wenku.baidu.com/link?url=jYQ1wNwHVBqJ-5XCYq0PRligp6Y5q6BYXyISUsF56My8DP8dc9CZ4pZvpPz1abxJn8fojMrL0IyfmMHStpvkotqC1RWlRMGnzVL1X4IPOa_  基于Red5服务器集群负载均衡调度算法研究 http://ww

RTMP流媒体服务器 crtmpserver

http://www.oschina.net/p/crtmpserver crtmpserver又称rtmpd是Evostream Media Server(www.evostream.com)的社区版本采用GPLV3授权 其主要作用为一个高性能的RTMP流媒体服务器,可以实现直播与点播功能多终端支持功能,在特定情况下是FMS的良好替代品。 支持RTMP的一堆协议(RT

企业安全之WiFi篇

很多的公司都没有安全团队,只有运维来负责整个公司的安全,从而安全问题也大打折扣。我最近一直在给各个公司做安全检测,就把自己的心得写下来,有什么不足之处还望补充。 0×01  无线安全 很多的公司都有不怎么注重公司的无线电安全,有钱的公司买设备,没钱的公司搞人力。但是人的技术在好,没有设备的辅助,人力在牛逼也没有个卵用。一个好的路由器、交换机、IDS就像你装备了 无尽、狂徒、杀人书一

[环境配置]ubuntu20.04安装后wifi有图标但是搜不到热点解决方法

最近刚入手一台主机,暗影精灵8plus电竞主机,安装ubuntu后wifi怎么都搜不到热点,前后重装系统6次才算解决问题。这个心酸历程只有搞技术人才明白。下面介绍我解决过程。 首先主机到手后是个windows10系统,我用无线网连接了一下,可以正常上网,说明主机有无限网卡且正常。然后我就直接开始安装Ubuntu20.04了,安装成功后发现wifi有图标但是搜不到热点,我想是不是无线网卡驱动有没有

云原生之高性能web服务器学习(持续更新中)

高性能web服务器 1 Web服务器的基础介绍1.1 Web服务介绍1.1.1 Apache介绍1.1.2 Nginx-高性能的 Web 服务端 2 Nginx架构与安装2.1 Nginx概述2.1.1 Nginx 功能介绍2.1.2 基础特性2.1.3 Web 服务相关的功能 2.2 Nginx 架构和进程2.2.1 架构2.2.2 Ngnix进程结构 2.3 Nginx 模块介绍2.4

阿里云服务器ces

允许公网通过 HTTP、HTTPS 等服务访问实例 https://help.aliyun.com/document_detail/25475.html?spm=5176.2020520101.0.0.3ca96b0b3KGTPq#allowHttp