?? register.php
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>藍色勁舞團 - 非官方網站</title>
<style type="text/css">
<!--
.STYLE3 {
color: #00FF00;
font-weight: bold;
}
-->
</style>
</head>
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<STYLE type=text/css>
BODY {
MARGIN: 0px
}
.STYLE2 {
COLOR: #ffffff
}
BODY {
FONT-SIZE: 12px
}
TD {
FONT-SIZE: 12px
}
TH {
FONT-SIZE: 12px
}
A:link {
COLOR: #FFFFff
}
A:visited {
COLOR: #FFFFFF
}
A:hover {
COLOR: #FFFF15
}
A:active {
COLOR: #FFFF15
}
a{TEXT-DECORATION:none}
</STYLE>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="1000" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<tr>
<td><table width="998" height="140" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="265">
<table width="427" height="129" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="427"><img src="images/top.jpg" width="897" height="126"></td>
</tr>
</table> </td>
<td width="717" valign="bottom"> <p><br>
<br>
</p> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="342" valign="top">
<table width="998" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="105" height="334">
<td width="542" valign="top"><table width="792" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="792" height="25"> <table width="787" height="25" border="0" cellpadding="0" cellspacing="2">
<tr>
<td height="20" align="center" bgcolor="#FF62A0"><strong>
<a href="index.php">勁舞首頁</a> | <a href="reg.php" targehtmt="_blank">注冊帳號</a>
| <a href="editpassword.php" targehtmt="_blank">密碼修改</a>
| <a href="RecoverPasswd.php" targehtmt="_blank">密碼找回</a>
| <a href="shop.php" targehtmt="_blank">商城結帳</a> | <a href="item.php" targehtmt="_blank">購買道具</a>
| <a href="pet.php" targehtmt="_blank">寵物領養</a> | <a href="cash.php" targehtmt="_blank">GB兌換MB</a>
| <a href="aubar.php" targehtmt="_blank">網吧合作</a> | <a href="Itemlogin.php" targehtmt="_blank">卡號自救</a>
| <a href="rank.php" targehtmt="_blank">排名</a>
</strong></td>
</tr>
</table>
<font color="#FF0000">友情提示:購買商城物品,請點擊一次即可!無須重復點擊!不然后果不堪設想!</font></td>
</tr>
<tr>
<td height="311" valign="top">
<table width="460" border="0" cellspacing="2" cellpadding="0">
<tr>
<td width="460" height="126" valign="middle"><table width="784" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#F9F9F9">
<tr>
<td><table width="460" border="0" cellpadding="0" cellspacing="5">
<?php
//error_reporting(0);
include_once('include/global.php');
echo '<div align="center">';
/* 檢查提交方式 */
if (strtoupper($_SERVER['REQUEST_METHOD'])!= "POST") {
EndOfPage('提交的數據錯誤');
}
/* 獲得提交數據 */
$account = $_POST['account'];
$nikname = $_POST['nikname'];
$pasword = $_POST['pasword'];
$myemail = $_POST['myemail'];
$gender = $_POST['gender'];
$userpower = $_POST['gender'];
$userp = $_POST['gender'];
$picmama = $_POST['picma'];
$piccard = $_COOKIE['authnum'];
$popcard = $_POST['popcard'];
$username = $_POST['username'];
/* 檢查提交的數據是否為空 */
if ( $account == ''
|| $nikname == ''
|| $pasword == ''
|| $myemail == ''
|| $gender == ''
|| $picmama == ''
|| $username == ''
|| $popcard == '' ) {
EndOfPage('您要使用的帳號或密碼含有非法數據<br />請返回后重新填寫');
}
/* 檢查數據長度 */
if (strlen($account) < 4 || strlen($account) > 12) {
EndOfPage('您要使用的帳號長度不符合規定<br />請返回后重新填寫');
}
if (strlen($nikname) < 2 || strlen($nikname) > 16) {
EndOfPage('您要使用的昵稱長度不符合規定<br />請返回后重新填寫');
}
if (strlen($pasword) < 6 || strlen($account) > 20) {
EndOfPage('您要使用的密碼長度不符合規定<br />請返回后重新填寫');
}
if (strlen($username) < 2 || strlen($username) > 12) {
EndOfPage('您要使用的姓名長度不符合規定<br />請返回后重新填寫');
}
if (strlen($popcard) < 6 || strlen($popcard) > 20) {
EndOfPage('您要使用的身份證號長度不符合規定<br />請返回后重新填寫');
}
/* 檢查帳號密碼數據是否含有非法數據 */
if (!ValidData($account) || !ValidData($pasword)) {
EndOfPage('您要使用的帳號或密碼含有非法數據<br />請返回后重新填寫');
}
/* 檢查昵稱是否含有非法數據 */
if (!ValidNick($nikname) || !ValidNick($username)) {
EndOfPage('您要使用的姓名或昵稱含有非法數據<br />請返回后重新填寫');
}
/* 檢查提交的驗證碼 */
if ( $picmama == $piccard )
{
/* 實例化DB類 操作auditionlogin庫 */
$aulogin = new DB($db_host, $db_user, $db_pwd, $AUlogin_db, $pconnect);
/* 檢查帳號是否被使用 */
$query = "
SELECT userid
FROM member
WHERE userid = '$account'
";
$check = $aulogin->query($query);
$count = $aulogin->num_rows($check);
if ($count >= 1) {
EndOfPage('您要注冊的帳號已經被使用<br />請嘗試更換其它帳號來注冊');
}
/* 檢查昵稱是否被使用 */
$query = "
SELECT usernick
FROM member
WHERE usernick = '$nikname'
";
$check = $aulogin->query($query);
$count = $aulogin->num_rows($check);
if ($count >= 1) {
EndOfPage('您要注冊的昵稱已經被使用<br />請嘗試更換其它昵稱來注冊');
}
/* ============== *\
* 建立新帳號 *
\* ============== */
/* 獲取 9YOU ID */
$new9youid = 1;
$query = "
SELECT Id9you
FROM `member`
ORDER BY Id9you DESC LIMIT 0, 1
";
$check = $aulogin->query($query);
$count = $aulogin->num_rows($check);
if ($count >= 1) {
$result = $aulogin->fetch_array($check);
$new9youid = $result['Id9you'] + 1;
}
$date = date('Y-m-d H:i:s');
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -