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

📄 cardlist.php

📁 劲舞团3.2商城!简单版!宠物 GB转换
💻 PHP
字号:
<?php
//error_reporting(0);
include_once('global.php');

/* 检查提交方式 */
if (strtoupper($_SERVER['REQUEST_METHOD'])!= "POST") {
	ErrorLogin('提交的数据错误,拒绝请求!');
}else {

/* 获得提交数据 */
$account = $_POST['account'];
$pasword = $_POST['pasword'];
$picmama = $_POST['picma'];
$piccard = $_COOKIE['authnum'];
/* 检查提交的数据是否为空 */
if (   $account  == '' 
	|| $pasword  == '' 
  || $picmama  == '' ) {
	ErrorLogin('帐号或密码或验证码含有非法数据<br />请返回后重新填写');
}else {


/* 检查数据长度 */
if (strlen($account) < 4 || strlen($account) > 12) {
	ErrorLogin('您要使用的帐号长度不符合规定<br />请返回后重新填写');
}else {


if (strlen($pasword) < 6 || strlen($pasword) > 20) {
	ErrorLogin('您要使用的密码长度不符合规定<br />请返回后重新填写');
}else {


/* 检查帐号密码数据是否含有非法数据 */
if (!ValidData($account) || !ValidData($pasword)) {
	ErrorLogin('您要使用的帐号或密码含有非法数据<br />请返回后重新填写');
}else {

/* 检查提交的验证码 */
if (   $picmama  == $piccard )
{
	
/* 实例化DB类 操作audition库 */
$db = new DB($db_host, $db_user, $db_pwd, $AU_db, $pconnect);


echo '<form name="register" id="register" method="post" action="cardok.php" onSubmit="return checkdata()">';
echo '<table class="register" border="1" cellspacing="0" cellpadding="1">';


		$query ="
				SELECT UserSN, UserID, Password, UserNick, Exp, Level 
				FROM userinfo 
				WHERE UserID = '$account'
			";
		$check = $db->query($query);
		$count = $db->num_rows($check);
		$wannabuy = 0;
		
		if ($count != 1) {
			ErrorLogin("帐号或密码不合法");
		} else {
			$result = $db->fetch_array($check);
			if ($account != $result['UserID'] || $pasword != $result['Password']) {
				ErrorLogin("帐号或密码不合法");
			} else {
				$usersn = $result['UserSN'];
				
				echo '<input type="hidden" name="usersn" value="'.$usersn.'"></input>';
				echo '<input type="hidden" name="account" value="'.$account.'"></input>';
				echo '<input type="hidden" name="pasword" value="'.$pasword.'"></input>';
				echo '<tr align="center"> 
              <td width="center" colspan="6"><B>人物资料列表</B></td>
              </tr>';
        echo '<tr align="center"> 
              <td width="15%"><font color="#000000"><B>玩家帐号</B></font></td>
              <td width="15%"><B>'.$result['UserID'].'</B></td>
              <td width="15%"><font color="#000000"><B>玩家经验</B></font></td>
              <td width="15%"><B>'.$result['Exp'].'</B></td>
              </tr>';
				echo '<tr align="center"> 
              <td width="15%"><font color="#000000"><B>玩家昵称</B></font></td>
              <td width="15%"><B>'.$result['UserNick'].'</B></td>
              <td width="15%"><font color="#000000"><B>玩家等级</B></font></td>
              <td width="15%"><B>'.$result['Level'].'</B></td>
              </tr>';
        echo '<tr align="center"><td width="center" colspan="6"><img src="getcode.php"></td></tr>';
		mysql_close();
				echo '<tr align="center"><td colspan="6"><font color="#000000">
				                                <br>
                                        <br>
                                        请选择您需要购买的道具</font><font color="#000000">: 
                                        <select name="upower">
                                          <option value="1764">Messenger</option>
                                          <option value="1999">经验翻倍卡</option>
                                          <option value="2000">G币双倍卡</option>
                                          <option value="3043">VIP房间卡</option>
                                        </select>
                                        <input type="submit" class="button" name="submit" id="submit" value="我要购买"></input>
                                        <br><br>
                                        <font color="#FF0000">请选择你要购买的功能道具,然后选择“我要购买”!</font>
                                        <br>
                                        </td>
		         </tr>';

				echo '</table>';
			}
		}
/* 检查提交的验证码 */
}
else {
ErrorLogin('您递交的验证码错误!!!!!!!!<br />请返回后重新填写');
}
/* 检查帐号密码数据是否含有非法数据 */
}
/* 检查ACCOUNT数据长度 */
}
/* 检查PASSWORD数据长度 */
}
/* 检查提交的数据是否为空 */
}
/* 第一个判断 */
}

function EndOfPage($ErrMsg)
{
	ErrorLogin($ErrMsg);
	die(0);
}
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -