📄 aubarok.php
字号:
<?php
//error_reporting(0);
include_once('global.php');
?>
<?php
if (isset($_POST['account']) && isset($_POST['pasword']) && isset($_POST['usersn'])) {
$au = new DB($db_host, $db_user, $db_pwd, $AU_db, $pconnect);
unset($db_host, $db_user, $db_pwd, $AUlogin_db, $AU_db, $pconnect);
$account = $_POST['account'];
$pasword = $_POST['pasword'];
$usersn = $_POST['usersn'];
if (!(ValidData($account) && ValidData($pasword))) {
ErrorPurchase("帐号或密码不合法");
} else {
$query ="
SELECT UserSN, UserID, UserGender, Password
FROM audition.userinfo
WHERE UserID = '$account'
";
$check = $au->query($query);
$count = $au->num_rows($check);
if ($count != 1) {
ErrorPurchase("帐号或密码不合法");
} else {
$result = $au->fetch_array($check);
if ($account != $result['UserID'] || $pasword != $result['Password'] || $usersn != $result['UserSN']) {
ErrorPurchase("帐号或密码不合法");
} else {
/* 检查是否已经申请过网吧合作 */
$upower = $_POST['upower'];
$query = "
SELECT IPAddr
FROM audition.join_pc_ip
WHERE IPAddr = '$upower'
";
$check = $au->query($query);
$count = $au->num_rows($check);
if ($count >= 1) {
EndOfPage('您的IP已经申请过经验翻倍,并且已经被审核通过!<br />');
}
// 插入网吧申请合作IP
$upower = $_POST['upower'];
$query ="
INSERT INTO `join_pc_ip`
(`IPAddr`, `OpenDate`, `CloseDate`, `Period`, `MaxCount`, `ExpRate`, `MoneyRate`)
VALUES
('$upower', now(), '2090-01-01 00:00:00', $aubarday, 1, '$exprate', '$moneyrate')
";
$result = $au->query($query);
$query ="
SELECT UserSN, UserID, Password, UserNick, Exp, Level
FROM audition.userinfo
WHERE UserSN = '$usersn'
";
$check = $au->query($query);
$result = $au->fetch_array($check);
mysql_close();
echo '<table border="1" cellspacing="0" cellpadding="1">';
echo '<tr align="center"> <td width="center" colspan="4"><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 colspan="4"><BR><b>经验翻倍申请成功!您的申请已被审核通过!请重新登陆游戏。</b></td></tr>';
echo '<tr align="center"><td colspan="4"><a href="#" onclick="javascript:window.close()">关闭窗口</a></td></tr>';
echo '</table>';
}
}
}
}
function EndOfPage($ErrMsg)
{
ErrorAubar($ErrMsg);
die(0);
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -