⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 register.php

📁 劲舞团3.2商城!简单版!宠物 GB转换
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<!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 + -