find.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
session_start();
require('conn.php');
require('functions.php');
if($_SESSION['login']==1){
_location("ucenter.php",301);
exit;
}
function tpl_send_sms($apikey, $tpl_id, $tpl_value, $mobile){
$url="http://yunpian.com/v1/sms/tpl_send.json";
$encoded_tpl_value = urlencode("$tpl_value"); //tpl_value需整体转义
$post_string="apikey=$apikey&tpl_id=$tpl_id&tpl_value=$encoded_tpl_value&mobile=$mobile";
return sock_post($url, $post_string);
}
function send_sms($apikey, $text, $mobile){
$url="http://yunpian.com/v1/sms/send.json";
$encoded_text = urlencode("$text");
$post_string="apikey=$apikey&text=$encoded_text&mobile=$mobile";
return sock_post($url, $post_string);
}
function sock_post($url,$query){
$data = "";
$info=parse_url($url);
$fp=fsockopen($info["host"],80,$errno,$errstr,30);
if(!$fp){
return $data;
}
$head="POST ".$info['path']." HTTP/1.0\r\n";
$head.="Host: ".$info['host']."\r\n";
$head.="Referer: http://".$info['host'].$info['path']."\r\n";
$head.="Content-type: application/x-www-form-urlencoded\r\n";
$head.="Content-Length: ".strlen(trim($query))."\r\n";
$head.="\r\n";
$head.=trim($query);
$write=fputs($fp,$head);
$header = "";
while ($str = trim(fgets($fp,4096))) {
$header.=$str;
}
while (!feof($fp)) {
$data .= fgets($fp,4096);
}
return $data;
}
//密码找回
if($_POST){
$phone=guolv(trim($_POST['phone']));
$code=guolv(trim($_POST['code']));
if(is_phone($phone)==false){
echo "<script>alert('请输入正确的手机号');location.href='find.php'</script>";
exit;
}
if($code!==$_SESSION['code']){
echo "<script>alert('验证码错误,请重新输入');location.href='find.php'</script>";
exit;
}
后面还有 62 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
