alert('注冊已關閉,請使用QQ登錄!');history.go(-1)"; exit(); if($_GET[dz]=='reg')//用戶注冊 { if(strlen($_POST[username]) < 4) { echo ""; } elseif(!preg_match("/^[\x{4e00}-\x{9fa5}A-Za-z0-9_]+$/u",$_POST[username]))//UTF-8漢字字母數字下劃線 { echo ""; } elseif(strlen($_POST[username]) > 15) { echo ""; } elseif(strlen($_POST[password]) < 4) { echo ""; } elseif($_POST[password]!=$_POST[password1]) { echo ""; } elseif(!preg_match("/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/",$_POST[reg_mail]))//驗證Email地址 { echo ""; } else { $result=mysql_query("select * from v4_vp_user where username = '$_POST[username]'"); $username = $_POST['username']; $password = $_POST['password']; $reg_mail = $_POST['reg_mail']; $reg_qq = $_POST['reg_qq']; $reg_date = $_SERVER['REQUEST_TIME']; $reg_ip = $_SERVER["REMOTE_ADDR"] ? $_SERVER["REMOTE_ADDR"] : '127.0.0.1'; $logser = "insert into v4_vp_user(username,password,reg_mail,reg_qq,reg_date,reg_ip) values ('$username','$password','$reg_mail','$reg_qq','$reg_date','$reg_ip')"; if(mysql_num_rows($result) < "1"){ if(mysql_query($logser)){ $_SESSION['s_username']=$username; $_SESSION['s_userid']=mysql_insert_id(); $_SESSION['s_qxid']=0; echo ""; }else{ echo ""; } }else{ echo ""; } } } else { $font_red=" *"; echo "

會員注冊

用戶名: $font_red
密碼: $font_red
確認密碼: $font_red
郵箱: $font_red
QQ:
    $font_red 號為必填
"; ?>

注冊說明


1.會員頭像是根據QQ號碼和郵箱地址獲取的.
2.用戶名注冊后不可更改,請仔細填寫!
3.會員注冊成功一個月未上傳歌曲會被刪除.
4.注冊后請一定要上傳多幾首好聽的歌曲哦.


alert('非法用戶名');history.go(-1)"; exit(); } $sql="select * from v4_vp_user where username='".$_POST[username]."' and password='".$_POST[password]."'"; [email protected]_query($sql,$conn); if([email protected]_num_rows($result)){ [email protected]_fetch_array($result); $_SESSION['s_username']=$rows[username]; $_SESSION['s_userid']=$rows[ID]; $_SESSION['s_qxid']=$rows[qxid]; echo ""; }else{ echo ""; } exit(); } elseif($_GET[q]=='backpass')//找回密碼 { $pattern="1234567890ABCKEFGHIJKLMNOPQRSTUVWXYZ"; for($i=0;$i<6;$i++) { $key .= $pattern{mt_rand(0,36)}; //生成php隨機數 } if($_GET[dz]==back) { if($_POST[username]=="" && $_POST[reg_mail]=="") { echo ""; } else { $sql="select * from v4_vp_user where username='".$_POST[username]."' and reg_mail='".$_POST[reg_mail]."'"; [email protected]_query($sql,$conn); if(@mysql_num_rows($result)==1) { $sql="update v4_vp_user set password='".$key."' where username='".$_POST[username]."' and reg_mail='".$_POST[reg_mail]."'"; if(@mysql_query($sql,$conn)==true) { echo "尊敬的用戶 ".$_POST[username]."
您的密碼己修改為 ".$key."
請拿出紙和筆記下吧~!"; } } else { echo ""; } } } else { echo "

會員找回密碼

您的用戶名:
您注冊時的郵箱:
   
"; ?>

 

請稍后,如長時間未跳轉,請點擊此處登錄

alert('非法用戶名');history.go(-1)"; exit(); }elseif(isset($_COOKIE['openId'])){ $openId = $_COOKIE[openId]; }else{ echo ""; exit(); } if($_GET[dz]=='reg'){ if(!preg_match("/^[\x{4e00}-\x{9fa5}A-Za-z0-9_]+$/u",$_POST['username'])){ echo ""; exit(); }elseif(!preg_match("/^[1-9][0-9]{4,9}$/",$_POST['reg_qq'])){ echo ""; exit(); }else{ $reg_qq = $_POST['reg_qq']; $username = $_POST['username']; } $wIdresult=mysql_query("select * from v4_vp_user where username = '$username'"); if(mysql_fetch_array($wIdresult)){ echo ""; exit(); }else{ $password = rand(100000,999999); //生成隨機密碼 $reg_mail = "防止密碼丟失,請填寫郵箱地址"; $reg_date = $_SERVER[REQUEST_TIME]; $reg_ip = $_SERVER["REMOTE_ADDR"] ? $_SERVER["REMOTE_ADDR"] : '127.0.0.1'; $logser = "insert into v4_vp_user(username,password,reg_mail,reg_qq,reg_date,reg_ip,openId) values ('$username','$password','$reg_mail','$reg_qq','$reg_date','$reg_ip','$openId')"; if($reguser = mysql_query($logser)){ $_SESSION['s_username']=$username; $_SESSION['s_userid']=mysql_insert_id(); $_SESSION['s_qxid']=0; echo ""; mysql_close($reguser); }else{ echo ""; } } exit(); }else{ $sql="select * from v4_vp_user where username='".$_POST['username']."' and password='".$_POST['password']."'"; [email protected]_query($sql,$conn); if([email protected]_num_rows($result)){ [email protected]_fetch_array($result); mysql_query("update v4_vp_user set openId='$openId' where ID='$rows[ID]'"); $_SESSION['s_username']=$rows[username]; $_SESSION['s_userid']=$rows[ID]; $_SESSION['s_qxid']=$rows[qxid]; echo ""; }else{ echo ""; } } //登錄頁面 }else{ if(isset($_COOKIE['openId'])){ $openquery=mysql_query("select * from `v4_vp_user` where openId='$_COOKIE[openId]'"); if(mysql_num_rows($openquery)==1){ [email protected]_fetch_array($openquery); $_SESSION['s_username']=$rows[username]; setcookie("__qc_wId", NULL); setcookie("__qc__k", NULL); $_SESSION['s_userid']=$rows[ID]; $_SESSION['s_qxid']=$rows[qxid]; echo ""; }else{ echo "

 

恭喜您,QQ登錄成功,請根據下方提示操作!

 

綁定已有帳號

帳號:
密碼:

快速注冊帳號

帳號:
Q Q:

排球比分网即时比分188 "; ?>
會員登錄

登錄帳號:

登錄密碼:

忘記密碼了?
沒有帳號?  請注冊!

注:如果你不是上傳歌曲請勿QQ登陸本站
1.會員頭像是根據QQ號碼或郵箱地址獲取的.
2.第一次使用QQ帳號登錄,請修改帳號資料.
3.注冊成功7天沒有上傳歌曲,帳號將被停用.