📄 login.php
字号:
<?php
/**********************************************************************
Dream Fly GuestBook 3.2 for Text (v20050206)
程序设计:浪 者
版权所有:(C)1999-2005 酷虫工作室
演 示:http://xpower.jsphome.com
*************************************************************************/
if(!defined('INDEX_POST')) die('非法操作!<a href=../index.php>返回</a>');
if($submit && $user_name && $user_pass){
// 检查用户名和密码
if( $user_name==$cfg[user_name] AND md5($user_pass)==$cfg[user_pass] ){
setcookie('AdminName',$user_name,time()+24*3600);
setcookie('AdminPass',md5($user_pass),time()+24*3600);
ShowMsg($user_name.',欢迎您的登录,请选择相应操作!',MSG_INF,array('[ <a href=index.php>留言内容管理</a> ]','<a href=index.php?MOD=system>进入控制面板</a>','<a href=index.php?MOD=logout>退出登录</a>'));
}else{
ShowMsg('您的帐号或密码错误!无法进入管理页面。');
JumpUrl('index.php?MOD=login');
}
}else{
echo "<form method=POST action=$PHP_SELF?MOD=$MOD OnSubmit=\"javascript: if(this.user_name.value=='' || this.user_pass.value==''){ alert('您的帐号或密码不能为空!'); return false;} else { return true; }\">";
TitleBar('登录管理');
?>
<table border=0 cellpadding=0 cellspacing=0 width=730 class=TextBox_1>
<tr>
<td width=5 rowspan=6 class=Border_L></td>
<td height=1 colspan=2 class=BgLine width=715></td>
<td width=6 rowspan=6 class=Border_R></td>
</tr>
<tr><td height=18 colspan=2 width=715></td></tr>
<tr>
<td width=358 align=right>斑 竹 账 号: </td>
<td width=358><input type=text class=text name=user_name size=20 style="width: 120"></td>
</tr>
<tr>
<td width=358 align=right>登 录 密 码: </td>
<td><input type=password class=text name=user_pass size=20 style="width: 120"></td>
</tr>
<tr>
<td colspan=2 align=center height=60><input type=submit value=" 进入管理 " class=button name=submit></td>
</tr>
<tr><td height=8 colspan=2></td></tr>
</table>
<?
Hemline();
echo '</form>';
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -