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

📄 index.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;}


 	
  

$name = NULL;
$i = 0;
for ( ;	$i < 1;	++$i	)
{
		$j = 0;
		for ( ;	$j < 4;	++$j	)
		{
				srand( ( double )microtime( ) * 1000000 );
				$randname = rand( !$j ? 1 : 0, 9 );
				$name .= $randname;
		}
}
session_start( );

$_SESSION['yzcode'] = $name;
//前台登陆验证
if ($_GET['save22']=="save22"){
	

	$user = addslashes(trim($_POST['user']));
	$pass = trim($_POST['pass']);
	$ycode=$_POST['ycode'];
	$code=$_POST['code'];

	if(empty($user) || empty($pass)){
       
  echo "<script>alert('用户名或密码不能为空,请反回重新输入!');window.history.go(-1);</script>"; 
  exit;
    }
	/*
	if($ycode!=$code){
  echo "<script>alert('对不起,输入验证码有错!');window.history.go(-1);</script>"; 
  exit;
    }
	*/


    $pass = md5($pass);

	
	 $ip=$_SERVER["REMOTE_ADDR"];
	
	
	mysql_query("Delete from tj where username='$user' and ip='".$ip."'");
	
	
	$result=mysql_query("select * from ka_mem where kauser='$user' and kapassword='$pass'"); 
$row=mysql_fetch_array($result); 
	$pass1=$row['kapassword'];
	if ($pass1!=$pass ){
	echo "<script>alert('您输入的帐号或密码错误,请重新输入!');window.history.go(-1);</script>"; 
	exit;
	}
	
	$resultb=mysql_query("select * from tj where username='$user' "); 
$rowb=mysql_fetch_array($resultb); 
	if ($rowb!=""){
	echo "<script>alert('对不起,该账号已登录过,请稍候重试!');window.history.go(-1);</script>"; 
	exit;
	}
	
	
	
	
	$text=date("Y-m-d H:i:s"); 
$sql="update ka_mem set slogin='".$row['slogin']."',sip='".$row['sip']."',zlogin='".$text."',zip='".$ip."',look=look+1 where kauser='".$user."'";
$exe=mysql_query($sql) or die ($sql);	

	$_SESSION['username']= $user;
	$_SESSION['usernamemmmyy']= $user;
	
	if ($row['stat']==1){
echo "<script>alert('对不起,该用户已被禁止!');top.location.href='main.php?action=logout';</script>"; 
exit;}
  
	
	echo "<meta http-equiv=refresh content=\"0;URL=look.php\">";exit;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Hong Yun</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">


<STYLE>
BODY {
	MARGIN: 0px;
	background-image: url(images/bg_newyear.gif);
}
FORM {
	MARGIN: 0px
}
DIV {
	MARGIN: 0px
}
.STYLE1 {
	color: #FFFFFF;
	font-size: 38px;
	font-weight: bold;
}
.STYLE2 {
	color: #000000;
	font-size: 12px;
}
.STYLE3 {font-size: 18px}
.STYLE4 {
	font-size: 16px;
	color: #FFFFFF;
}
</STYLE>



<SCRIPT language=javascript>

    function chkVal(){
    if(document.form1.user.value == ""){
      alert("Please Check Your ID");
      document.form1.user.focus();
      return false;
    }
    if(document.form1.pass.value == ""){
      alert("Please Check Your Password");
      document.form1.pass.focus();
      return false;
    }
    //document.form1.submit();
    }
</SCRIPT>

<META content="MSHTML 6.00.6000.16788" name=GENERATOR></HEAD>
<BODY oncontextmenu="return false" 
onload="javascript:document.getElementById('user').focus();">
<FORM name=form1 onSubmit="return chkVal();" action="index.php?save22=save22" method="post">
  <DIV id=Div3 
style="Z-INDEX: 15; LEFT: 270px; POSITION: absolute; TOP: 120px">
  <INPUT 
id=user style="WIDTH: 155px" name=user><BR></DIV>
<DIV id=Div4 
style="Z-INDEX: 15; LEFT: 270px; POSITION: absolute; TOP: 159px">
  <INPUT 
id=pass style="WIDTH: 155px" type=password name=pass><BR></DIV>
<DIV id=Div2 
style="Z-INDEX: 15; LEFT: 292px; POSITION: absolute; TOP: 196px; width: 115px;">
<INPUT type="submit"  value="登入" style="border:1px #000 solid;background:url(images/bback.jpg);font-size:12px;padding:4px 5px 0 5px;margin-top:8px;width:50px"> 
<input name="button" type="button" style="border:1px #000 solid;background:url(images/bback.jpg);font-size:12px;padding:3px 4px 0 4px;width:50px" onClick="location.href='reg.php'" value="注册"/>
<br />
<br />
</DIV>

<DIV id=dnDirectX 
style="Z-INDEX: 150; LEFT: 228px; COLOR: #ffffff; POSITION: absolute; TOP: 255px; TEXT-ALIGN: center"><span class="STYLE2">需要新版 
DirectX 9.0c 软件程序支持的用户,请点击<A style="COLOR: red" 
href="http://www.tgmd369.com/downloads/dxwebsetup.exe"><B>这里</B></A>下载</span>。 </DIV>
</FORM>
<table width="100%" height="600">
  <tr>
  </tr>
  <tr>
    <td height="45" background="images/ci_tb.gif"><span class="STYLE1">Welcome</span></td>
  </tr>
  <tr>
    <td height="218"><TABLE 
      style="BORDER-RIGHT: #003366 1px solid; BORDER-LEFT: #003366 1px solid" 
      cellSpacing=0 cellPadding=0 border=0>
      <TBODY>
        <TR>
          <TD width=211 bgColor=#ffffff><OBJECT 
            codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 
            height=221 width=211 
            classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>
              <PARAM NAME="movie" VALUE="images/clubsi.swf">
            <PARAM NAME="quality" VALUE="high">
            <PARAM NAME="menu" VALUE="false">
              <embed   
                                  src="images/clubsi.swf" width="211" 
            height="221" quality="high"                         
            pluginspage="http://www.macromedia.com/go/getflashplayer"            
                         type="application/x-shockwave-flash" menu="false"> </embed>
          </OBJECT></TD>
          <TD width="232" vAlign=top bgColor=#ffffff><IMG height=49 
            src="images/ci_m.gif" width=213>
            <TABLE width=232 border=0 cellPadding=2 cellSpacing=0>
              <TBODY>
                <TR>
                  <TD width="37" height="38"><span class="STYLE3">账号</span></TD>
                  <TD width="198" height="38">&nbsp;</TD>
                </TR>
                <TR>
                  <TD width="37" height="38"><span class="STYLE3">密码</span></TD>
                  <TD height="38">&nbsp;</TD>
                </TR>
              </TBODY>
            </TABLE></TD>
          <TD width="100%" vAlign=top bgColor=#ffffff>&nbsp;</TD>
        </TR>
      </TBODY>
    </TABLE></td>
  </tr>
  <tr>
    <td height="45" background="images/ci_tb.gif"><div align="right" class="STYLE4">
      <div align="center">本网保留最终解释权</div>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</BODY></HTML>

⌨️ 快捷键说明

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