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

📄 index.php

📁 Dedecms5.3泄密版 Dedecms5.3泄密版
💻 PHP
字号:
<?php
include_once("../include/common.inc.php");
if(Char_Cv("action")=="login"){
  $user=Char_Cv("username");
  $pass=md5(Char_Cv("password"));
  if($db->rows("admin","username='$user' and password='$pass'")==0){
    ero("用户名或密码不正确",1);
  }else{
	//删除3天前的无效订单
    $db->query("update {$tbl}admin set lasttime=thistime,lastip=thisip,thistime=$time,thisip='$onlineip',logincount=logincount+1 where username='$user'");
    $_SESSION["onez_administrator_alexa_username"]=$user;
    header("location:manage.php");
    exit;
  }
}
$title=$language["login"];
?><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>管理员登陆</title>
<link href="../images/admincp/login.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="table">
  <form action="index.php" method="post" name="myform" onsubmit="return checkform()">
  <div class="form">
    <div class="name">用户名</div>
    <div class="value"><?=setinput("text","username","",16,20)?></div>
    <div class="clear"></div>
    <div class="name">密 码</div>
    <div class="value"><?=setinput("password","password","",16,20)?></div>
    <div class="clear"></div>
    <div class="buttonbg">
      <input type="submit" name="submit" class="button" value="登陆">
      <input type="reset" name="reset" class="button" value="取消">
    </div>
  </div>
  <input type="hidden" name="action" value="login">
  </form>
</div>
<script type="text/javascript">
function checkform(){
  if(myform.username.value==""){
    alert("用户名不能为空");
    myform.username.focus()
    return false;
  }
  if(myform.password.value==""){
    alert("密码不能为空");
    myform.password.focus()
    return false;
  }
}
</script>
</body>
</html>

⌨️ 快捷键说明

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