<?php
error_reporting(0);
header("Content-type: text/html; charset=utf-8");
if(isset($_POST['reg'])&&$_POST['reg']==1){
//格式判断开始
if((isset($_POST['number'])&&!$_POST['number']=="")&&(isset($_POST['username'])&&!$_POST['username']=="")&&(isset($_POST['password'])&&!$_POST['password']=="")&&(isset($_POST['cpassword'])&&!$_POST['cpassword']=="")){
$syydz = $_SERVER['HTTP_REFERER'];
$number=md5(md5($_POST['number']));
$username = $_POST['username'];
$password=md5(md5($_POST['password']));
$cpassword=md5(md5($_POST['cpassword']));
$password_num = strlen($_POST['cpassword']);
if(!preg_match("/[^\d-., ]/",$username)){
if(strlen($username)>=5&&strlen($username)<=20){
if($password_num>=8&&$password_num<=30){
if($password==$cpassword){
$numbers_json_name = "vip_numbers.json";
$numbers_json_string = file_get_contents($numbers_json_name);
$numbers_obj = json_decode($numbers_json_string);
$numbers = $numbers_obj->numbers;
$numbers_num = count($numbers);
if($numbers_num!=0){
for($j=0;$j<$numbers_num;$j++){
if($numbers[$j]==$number){
//开始读取数据
$json_name = "vip_zhuanjiao.json";
$json_string = file_get_contents($json_name);
$obj = json_decode($json_string);
$users = $obj->users;
$users_num = count($users);
if($users_num!=0){
for($i=0;$i<$users_num;$i++){
if($users[$i][0]==$username){
echo '<script language="javascript"> alert("注册失败。此账号已被注册占用!\n\n说明:建议使用QQ号/手机号作为登入账号。");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
break;
}else if($i==$users_num-1){
array_splice($numbers,$j,1);
$numbers_obj = array ('numbers'=>$numbers);
$numbers_json_string = json_encode($numbers_obj);
file_put_contents('vip_numbers.json', $numbers_json_string);
$user = array($username,$password,date('Y-m-d H:i:s',time()),$_SERVER["REMOTE_ADDR"]);
$users[] = $user;
$obj = array ('users'=>$users);
$json_string = json_encode($obj);
file_put_contents('vip_zhuanjiao.json', $json_string);
echo '<script language="javascript"> alert("注册成功。请牢记以下信息:↓ ↓ ↓\n账号:'.$username.'\n密码:'.$_POST['cpassword'].'");window.location.href=\'../\';</script>';
}
}
break;
}else{
array_splice($numbers,$j,1);
$numbers_obj = array ('numbers'=>$numbers);
$numbers_json_string = json_encode($numbers_obj);
file_put_contents('vip_numbers.json', $numbers_json_string);
$user = array($username,$password,date('Y-m-d H:i:s',time()),$_SERVER["REMOTE_ADDR"]);
$users[] = $user;
$obj = array ('users'=>$users);
$json_string = json_encode($obj);
file_put_contents('vip_zhuanjiao.json', $json_string);
echo '<script language="javascript"> alert("注册成功。请牢记以下信息:↓ ↓ ↓\n账号:'.$username.'\n密码:'.$_POST['cpassword'].'");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
}
}else if($j==$numbers_num-1){
echo '<script language="javascript"> alert("注册失败。注册码错误!");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
break;
}
}
}else{
echo '<script language="javascript"> alert("注册失败。注册码缺货!\n\n说明:注册码暂时缺货,请联系客服购买。");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
}
}else{
echo '<script language="javascript"> alert("注册失败。密码和确认密码不一致!");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
}
}else{
echo '<script language="javascript"> alert("注册失败。密码不足8位字符!\n\n说明:密码至少8位字符,最多30位字符。");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
}
}else{
echo '<script language="javascript"> alert("注册失败。账号不足5位数字!\n\n说明:账号至少5位数,最多20位数。");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
}
}else{
echo '<script language="javascript"> alert("注册失败。账号包含特殊字符!\n\n说明:禁止使用中文、英文、符号等,只允许使用纯数字");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
}
}else{
echo '<script language="javascript"> alert("注册失败。输入框为空!");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
}
}else if(isset($_POST['login'])&&$_POST['login']==1){
//登录代码
if((isset($_POST['username'])&&!$_POST['username']=="")&&(isset($_POST['password'])&&!$_POST['password']=="")){
$username = $_POST['username'];
$password = md5(md5($_POST['password']));
$password_num = strlen($_POST['password']);
if((strlen($username)>=5&&strlen($username)<=20)&&($password_num>=8&&$password_num<=30)&&(!preg_match("/[^\d-., ]/",$username))){
$json_name = "vip_zhuanjiao.json";
$json_string = file_get_contents($json_name);
$obj = json_decode($json_string);
$users = $obj->users;
$users_num = count($users);
if($users_num!=0){
for($i=0;$i<$users_num;$i++){
if(($users[$i][0]==$username)&&($users[$i][1]==$password)){
if(strlen($_POST['loginbl'])&&$_POST['loginbl']=='on'){
setcookie('vip_username',$username,time()+3600*24*7,'/');
setcookie('vip_password',$password,time()+3600*24*7,'/');
}else{
setcookie('vip_username',$username,0,'/');
setcookie('vip_password',$password,0,'/');
}
if(empty($_COOKIE['cookie_name'])){
echo '<script language="javascript"> alert("登录成功!欢迎回来。");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
}else{
echo '<script language="javascript"> alert("登录失败!浏览器不支持Cookie。");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
}
break;
}else if($i==$users_num-1){
echo '<script language="javascript"> alert("登录失败,密码错误或者账户不存在!");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
}
}
}else{
echo '<script language="javascript"> alert("登录失败,密码错误或者账户不存在!");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
}
}else{
echo '<script language="javascript"> alert("登录失败,密码错误或者账户不存在!");</script>';
echo '<script language="javascript"> window.location.href = "'.$_SERVER['HTTP_REFERER'].'";</script>';
}
}else{
echo '<script language="javascript"> alert("登录失败。输入框为空!");</script>';
echo '<script language="javascript"
没有合适的资源?快使用搜索试试~ 我知道了~
表白网页制作源码.zip
共600个文件
png:166个
js:114个
jpg:96个
需积分: 0 2 下载量 107 浏览量
2024-01-08
08:18:41
上传
评论
收藏 25.24MB ZIP 举报
温馨提示
在线表白也不失为一种浪漫的方式,只要输入一些基本信息,就能自动生成表白页面。 可以设置购买网站会员来使用指定的网页制作模板,从而增加网站收入。 无需数据库即可使用,带有后台管理,可以设置指定域名,同时还能设置会员的激活码。 账号:admin 密码:qqmu.com
资源推荐
资源详情
资源评论
收起资源包目录
表白网页制作源码.zip (600个子文件)
jweixin-2.2 11KB
semantic.min.css 496KB
amazeui.min.css 249KB
amazeui.min.css 249KB
amazeui.min.css 249KB
amazeui.min-124910adsi1111294u26.css 249KB
bootstrap.css 142KB
bootstrap.css 142KB
bootstrap.css 142KB
bootstrap.css 130KB
fonts.css 129KB
bootstrap.min.css 115KB
animate.css 54KB
animate.css 54KB
animate.css 54KB
style.css 48KB
style.css 48KB
style.css 48KB
app-124910adsi1111294u266666ssss.css 40KB
font-awesome.min.css 27KB
font-awesome.min.css 27KB
font-awesome.min.css 27KB
main.css 24KB
style-124910adsi1111294u266666ss.css 20KB
style.css 18KB
prettyPhoto.css 17KB
prettyPhoto.css 17KB
prettyPhoto.css 17KB
style.min.css 15KB
main.css 14KB
base.css 9KB
55c16dda0001113100000000.css 8KB
style.css 8KB
select.css 7KB
select.css 7KB
select.css 7KB
style.css 6KB
55c16d94000109f300000000.css 6KB
style.css 5KB
admin-124910adsi1111294u266666ss.css 5KB
app.css 5KB
style.css 4KB
flexslider.css 4KB
flexslider.css 4KB
flexslider.css 4KB
theme.css 3KB
css.css 3KB
main.css 3KB
result.css 3KB
55c16dab0001286100000000.css 3KB
style-124910adsi1111294u266666ss.css 3KB
theme_public_btn.css 2KB
theme_public_btn.css 2KB
start_intersect.css 2KB
public.css 2KB
main.css 2KB
55c16dc00001fa1a00000000.css 2KB
normalize.css 2KB
style-124910adsi1111294u266666ss.css 2KB
normalize.css 2KB
custom.css 2KB
custom.css 2KB
custom.css 2KB
default-124910adsi1111294u266666.css 2KB
default-124910adsi1111294u266666.css 2KB
responsive.css 1KB
responsive.css 1KB
responsive.css 1KB
default.css 1KB
ae168344b8194b348b667f19ac4d1956.css 1KB
reset.css 1KB
default.css 985B
start_loveformat.css 847B
default.css 789B
3eef8fa1e51b1fb3b1d4afe49d4cfe0e_swiper.min.css 421B
style.css 392B
music.css 118B
music.css 118B
venobox.css 56B
fontawesome-webfont-4.6.3.eot 75KB
fontawesome-webfont_1.eot 69KB
fontawesome-webfont.eot 69KB
fontawesome-webfont_1.eot 69KB
fontawesome-webfont.eot 69KB
7a0bd959fbcd2c47f7b727354201eb29fdf3c45a.eot 35KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.eot 20KB
1.gif 1.34MB
1.gif 538KB
2.gif 90KB
bg.gif 38KB
loader.gif 6KB
loader.gif 6KB
loader.gif 6KB
loader_2.gif 2KB
loader_4.gif 2KB
loader_1.gif 2KB
loader_3.gif 2KB
loader_2.gif 2KB
loader_4.gif 2KB
共 600 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
酷爱码
- 粉丝: 8725
- 资源: 1886
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功