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

📄 reg.php

📁
💻 PHP
字号:
<?php

require_once 'conjunction.php';
require_once 'config.php';
if (ka_config("opwww")==1){
echo "<script>alert('对不起,系统维护中!');top.location.href='op.php';</script>"; 
exit;}

if ($_GET['act']=="添加") {
if (empty($_POST['username'])) {
       
  echo "<script>alert('用户名不能为空!');window.history.go(-1);</script>"; 
  exit;
    }
if (empty($_POST['pwd1'])) {
       
  echo "<script>alert('密码不能为空!');window.history.go(-1);</script>"; 
  exit;
    }

	
	
	$result = mysql_query("select count(*) from ka_guan  where kauser='".$_POST['username']."'  order by id desc");   
$num = mysql_result($result,"0");

if($num!=0){
   echo "<script>alert('这一用户名称已被占用,请得新输入!!');window.history.go(-1);</script>"; 
  exit;
}
$result = mysql_query("select count(*) from ka_mem  where kauser='".$_POST['username']."'  order by id desc");   
$num = mysql_result($result,"0");

if($num!=0){
   echo "<script>alert('这一用户名称已被占用,请得新输入!!');window.history.go(-1);</script>"; 
  exit;
}

$result = mysql_query("select count(*) from ka_zi  where kauser='".$_POST['username']."'  order by id desc");   
$num = mysql_result($result,"0");

if($num!=0){
   echo "<script>alert('这一用户名称已被占用,请得新输入!!');window.history.go(-1);</script>"; 
  exit;
}
$pass = md5($_POST['pwd1']);
 $text=date("Y-m-d H:i:s");
 $ip=$_SERVER["REMOTE_ADDR"];
 $dan=ka_config("flash");
$result=mysql_query("select * from ka_guan where kauser='".$dan."'  order by id"); 
$row=mysql_fetch_array($result);
$guan=$row['guan'];
$guanid=$row['guanid'];
$zongid=$row['zongid'];
$zong=$row['zong'];
$danid=$row['id'];
$dan=$row['kauser'];
$dan_zc=$row['sf']/10;
$zong_zc=$row['sj']/10;
$results=mysql_query("select * from ka_guan where id=".$zongid."  order by id"); 
$rows=mysql_fetch_array($results);
$guan_zc=$rows['sj']/10;

$dagu_zc=10-$guan_zc-$dan_zc-$zong_zc;

$sql="INSERT INTO  ka_mem set kapassword='".$pass."',kauser='".$_POST['username']."',jin=1,xm='".$_POST['xm']."',cs=0,ts=0,guan='".$guan."',zong='".$zong."',dan='".$dan."',stat=0,xy=10,guanid='".$guanid."',zongid='".$zongid."',danid='".$danid."',look=0,adddate='".$text."',slogin='".$text."',zlogin='".$text."',sip='".$ip."',zip='".$ip."',abcd='A',dan_zc='".$dan_zc."',guan_zc='".$guan_zc."',zong_zc='".$zong_zc."',dagu_zc='".$dagu_zc."'   ";


	
$exe=mysql_query($sql) or  die("数据库修改出错");

$result=mysql_query("select * from ka_mem where  kauser='".$_POST['username']."'  order by id desc"); 
$row=mysql_fetch_array($result);
$SoftID=$row['id'];


$result = mysql_query("select * from  ka_quota where  userid=".$danid." and flag=0 order by id ");   
$t=0;
while($image = mysql_fetch_array($result)){
$yg=$image['yg'];

$exe=mysql_query("INSERT INTO ka_quota Set yg='".$yg."',ygb=0,ygc=0,ygd=0,xx='".$image['xx']."',xxx='".$image['xxx']."',username='".$_POST['username']."',userid='".$SoftID."',lx='".$image['lx']."',flag=1,guanid='".$guanid."',zongid='".$zongid."',danid='".$danid."',memid='".$SoftID."',ds='".$image['ds']."',abcd='A' ");

}


echo "<script>alert('会员添加成功!');window.location.href='index.php';</script>"; 
exit;

}


 
?>


<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?=ka_config(1)?>======会员网上注册==<?=ka_config(2)?></title>
<style type="text/css">
<!--
.activegame {	BORDER-RIGHT: 0px; BORDER-TOP: 0px; BACKGROUND-IMAGE: url(images/pics_04-4.gif); BORDER-LEFT: 0px; CURSOR: pointer; COLOR: red; BORDER-BOTTOM: 0px; HEIGHT: 22px
}
.inactive {	BORDER-RIGHT: 0px; BORDER-TOP: 0px; BACKGROUND-IMAGE: url(images/pics_01-1.gif); BORDER-LEFT: 0px; WIDTH: 70px; CURSOR: pointer; BORDER-BOTTOM: 0px; HEIGHT: 10px
}
.inactivegame {	BORDER-RIGHT: 0px; BORDER-TOP: 0px; BACKGROUND-IMAGE: url(images/pics_04-4.gif); BORDER-LEFT: 0px; CURSOR: pointer; COLOR: #582600; BORDER-BOTTOM: 0px; HEIGHT: 22px
}
.top_game {	BORDER-RIGHT: 0px; BORDER-TOP: 0px; BACKGROUND-IMAGE: url(images/pics_03-3.gif); BORDER-LEFT: 0px; WIDTH: 10px; BORDER-BOTTOM: 0px; HEIGHT: 22px
}
.top_game_end {	BORDER-RIGHT: 0px; BORDER-TOP: 0px; BACKGROUND-IMAGE: url(images/pics_03-4.gif); BORDER-LEFT: 0px; WIDTH: 10px; BORDER-BOTTOM: 0px; HEIGHT: 22px
}
.top_game_line {	BACKGROUND-IMAGE: url(images/pics_04-4.gif); WIDTH: 2px; COLOR: #582600; TEXT-ALIGN: center
}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url();
	background-color: #005f92;
}
body,td,th {
	font-size: 12px;
	color: #000000;
}
.STYLE18 {	FONT-WEIGHT: bold; FONT-SIZE: 13px
}
.STYLE9 {	COLOR: #932500
}
.style2 {	FONT-SIZE: 14px
}
.style3 {	COLOR: #ff0000
}
.STYLE20 {COLOR: #932500; font-weight: bold; }
-->
</style>
</head>

<body>
<SCRIPT language=javascript>
function check(form)
{
  
  if(form.username.value=="")
  {
    alert('请输入登入账号');
 	form.username.focus();
	return false;
  }
 if(form.username.value.length>15)
  {
    alert('用户账户只能输入15位数');
 	form.username.focus();
	return false;
  }
  if(form.xm.value=="")
  {
    alert('请输入昵称!');
 	form.xm.focus();
	return false;
  }
   if(form.pwd1.value=="")
  {
    alert('请输入登入密码!');
 	form.pwd1.focus();
	return false;
  }
  if(form.pwd2.value=="")
  {
    alert('请输入确认登入密码!');
 	form.pwd2.focus();
	return false;
  }
  if(form.pwd1.value!=form.pwd2.value)
  {
    alert('两次登入密码不一致!');
	form.pwd1.focus();
	return false;
  }
  
  
}
</SCRIPT>
<FORM name=myform onSubmit="return check(this);" action=?act=添加 method=post>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
  <table width="90%" 
                  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="cccccc">
  <tbody>
    <tr>
      <td height="25" bgcolor="#D4E5F4"><table height="25" cellspacing="0" cellpadding="0" 
                        width="100%" border="0">
        <tbody>
          <tr background="../images/t2.jpg">
            <td width="28" background="注册会员_files/t2.jpg">&nbsp;</td>
            <td width="674" background="注册会员_files/t2.jpg"><span 
                              class="STYLE20" style="COLOR: #FF0000"><span 
                              class="STYLE9" style="COLOR: #FF0000">加入我们:</span></span></td>
            <td width="16">&nbsp;</td>
          </tr>
        </tbody>
      </table></td>
    </tr>
    <tr>
      <td height="71" align="left" valign="top" bgcolor="#FFFFFF"><table height="61" cellspacing="0" cellpadding="0" width="91%" 
                        align="center" border="0">
        <tbody>
          
          <tr>
            <td height="48" style="LINE-HEIGHT: 23px"><p>用户在进行游戏前应核实其所在地区进行联机游戏是否符合当地法律。 <br>
              本网站只向符合法定年龄的用户提供服务,用户须注意其居住地区的法律年龄限制,在不违反年龄限制之下才可使用本网站服务。使用或参与本公司所有游戏之用户,均被视为符合该用户当地之法定年龄,以及该用户完全明白并且同意本协议之内容。 
              本公司将不承担任何用户因违反当地相关法律而引起之任何责任,任何用户在参与本公司所有游戏而触犯当地法律之任何责任,本公司概不负责。</p></td>
          </tr>
        </tbody>
      </table></td>
    </tr>
    <tr>
      <td bgcolor="#D4E5F4"><table height="25" cellspacing="0" cellpadding="0" 
                        width="100%" border="0">
        <tbody>
          <tr>
            <td width="28" background="注册会员_files/t2.jpg">&nbsp;</td>
            <td width="674" background="注册会员_files/t2.jpg"><span 
                              class="STYLE20" style="COLOR: #FF0000"><span 
                              class="STYLE9" style="COLOR: #FF0000">网上注册:</span></span></td>
            <td width="16">&nbsp;</td>
          </tr>
        </tbody>
      </table></td>
    </tr>
    <tr>
      <td height="157" valign="top" bgcolor="#FFFFFF"><table height="260" cellspacing="1" width="673" align="center" 
                        border="0">
        <tbody>
          
          <tr>
            <td height="22"><div align="right"><span class="fbred"></span>&nbsp;&nbsp;登入账号:</div></td>
            <td valign="middle" width="461"><input class="input" 
                              id="username" maxlength="10" name="username" />
                  <span class="style3">*</span> (请输入大于4个字符数字或英文中文)</td>
          </tr>
          <tr>
            <td height="24"><div 
                              align="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;昵称:</div></td>
            <td colspan="2"><div align="left">
              <input class="input" id="xm" 
                              maxlength="15" name="xm" />
              <span 
                              class="style3">*</span> </div></td>
          </tr>
          <tr>
            <td height="22"><div align="right">&nbsp;&nbsp;&nbsp;登入密码:</div></td>
            <td nowrap="nowrap" colspan="2"><div align="left">
              <input class="input" id="pwd1" 
                              style="FONT-SIZE: 11px" type="password" maxlength="15" 
                              size="22" name="pwd1" />
              <span class="style3">*</span> (6-12位数字或字母)</div></td>
          </tr>
          <tr>
            <td height="25"><div 
align="right">&nbsp;&nbsp;&nbsp;确认登入密码:</div></td>
            <td colspan="2"><div align="left">
              <input class="input" id="pwd2" 
                              style="FONT-SIZE: 11px" type="password" maxlength="15" 
                              size="22" name="pwd2" />
              <span class="style3">*</span> </div></td>
          </tr>
          
          <tr>
            <td colspan="3" height="28"><div align="center"></div>
                  <div align="center"><strong><span 
                              class="style3">@</span>&nbsp;请如实填写资料,以便确认您的身份!</strong></div></td>
          </tr>
          <tr>
            <td height="28" colspan="3" align="center"><span class="STYLE18">
              <input type="submit" value=" 注册 " name="Submit4" />
            </span><span class="STYLE18">
            <input type="reset" value=" 重置 " name="Submit22" />
            </span></td>
          </tr>
        </tbody>
      </table></td>
    </tr>
  </tbody>
</table>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
    <tr>
      <td height="25" align="center">Copyright 2008, <?=ka_config(1)?> Powered By <?=ka_config(2)?> </td>
    </tr>
  </table>
</form>
</body>
</html>

⌨️ 快捷键说明

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