📄 login.php
字号:
<? include("conn.php");?>
<?
session_start();
session_register("jypxlogin");
include("include/setup.php");
$userid1=trim($_POST[userid]);
$psw=$_POST[psw];
$tourl=trim($_GET[tourl]);
if($userid1!=""){
$qr=mysql_query("select * from myuser where userid='".$userid1."' limit 1");
$rs=mysql_fetch_array($qr);
$Have=$rs[id];
$IfLogin="3";
if($Have>0){
$usertype=$rs[usertype];
$userid1=$rs[userid];
$psw1=$rs[psw];
if($psw==$psw1){
$IfLogin="1";
$_SESSION[jypxlogin]=$userid1;
setcookie("usertype",$usertype,time()+7200,"/");
setcookie("userid",$userid1,time()+7200,"/");
header("Location:index.htm");
die();
}
else{
$IfLogin="2";
}
}
}
?>
<? include("head.php");?>
<script language="JavaScript">
function submitForm(obj)
{
var title=obj.title.value;
var Sort=obj.Sort.value;
obj.action="searchzhai.php?sort="+Sort+"&title="+escape(title);
return true;
}
</script>
<div align="center">
<form name="form1" method="post" action="login.php?tourl=<? echo $tourl;?>">
<table width="770" border="0" cellpadding="0" cellspacing="6" bgcolor="#FFFFFF">
<?
if($IfLogin=="2"){
?>
<tr align="center" class="Notice">
<td colspan="2">密码错误...
</td>
</tr>
<?
}
if($IfLogin=="3"){
?>
<tr align="center" class="Notice">
<td colspan="2">无此用户...
</td>
</tr>
<?
}
?>
<tr>
<td width="43%" align="right">用户名:</td>
<td width="57%"><input name="userid" type="text" id="userid" maxlength="30" value="<? echo $userid1;?>"></td>
</tr>
<tr>
<td align="right">密码: </td>
<td><input name="psw" type="password" id="psw"></td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="Submit" value="登录妹妹网摘">
</td>
</tr>
<tr>
<td></td>
<td class="grayscript">忘记密码请与<a href=http://wpa.qq.com/msgrd?V=1&Uin=22499225 title=点这里用QQ直接与管理员交谈>管理员</a>联系<br>或联系EMail:<a href=mailto:info#mmei8.com title=为防止垃圾邮件骚扰请将地址中的#替换为@后来信>info#mmei8.com</a><br>(为防止垃圾邮件骚扰请将地址中的#替换为@后来信)</td>
</tr>
<tr align="center" class="Notice">
<td colspan="2" height="30"><a href="http://mmei8.com/reg.php"><b>点击此处可以免费注册一个账号</b></a>
</td>
</tr>
<tr align="center" class="Notice">
<td colspan="2" height="30"> </td>
</tr>
</table>
</form>
</div>
<? include("bottom.php");?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -