爱问知识人 爱问教育 医院库

后台管理登陆一直显示管理员密码错误?

首页

后台管理登陆一直显示管理员密码错误?

后台管理登陆一直显示管理员密码错误?
检查数据库内账号和密码都是正确的,只要一登陆就弹出管理员密码错误?下面将代码放入,请高手指点!
<!-- #include file=" p" -->
<%
 randomize
 verify = int(  * rnd())
 act = saferequest(request.querystring("act"), 0)

 if act = "login" then
  admin_id = saferequest( rm("admin_id"), 0)
  password = saferequest( rm("password"), 0)
  code = saferequest( rm("code"), 1)
  if len(admin_id) < 1 or len(password) < 1 then call msgbox("错误:\n请输入管理员帐号、密码。", "-1")
  if code <> session("tangming_code_0258") then call msgbox("错误:\n输入的验证码不正确。", "-1")
  set rs =  eateobject(" cordset")
  sql = "select [password], [login_time], [login_ip], [verify] from [" & dbmunber & "admin] where [admin_id] = '" & admin_id & "'"
  rs.open sql, conn, 1, 3
  if  cordcount = 0 then call msgbox("错误:\n输入的管理员帐号不正确。", "-1")
  if rs(0) <> md5(password) then call msgbox("错误:\n输入的管理员密码不正确。", "-1")
   okies("tangming_cook_0304")("admin_id") = admin_id
   okies("tangming_cook_0304")("admin_verify") = verify
   okies("tangming_cook_0304")("admin_time") = rs(1)
   okies("tangming_cook_0304")("admin_ip") = rs(2)
  rs(1) = now()
  rs(2) = myip
  rs(3) = verify
  rs.update
   ose
  set rs = nothing
   direct " p"
  response.end
 end if

 if act = "logout" then
  set rs =  eateobject(" cordset")
  sql = "select [verify] from [" & dbmunber & "admin] where [admin_id] = '" & admin_id & "'"
  rs.open sql, conn, 1, 3
  if  cordcount > 0 then
   rs(0) = verify
   rs.update
  end if
   ose
  set rs = nothing
   okies("tangming_cook_0304")("admin_id") = ""
   okies("tangming_cook_0304")("admin_verify") = ""
   okies("tangming_cook_0304")("admin_time") = ""
   okies("tangming_cook_0304")("admin_ip") = ""
   direct " p"
  response.end
 end if
%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " ">

<html xmlns=" " lang="gb2312">

<head>
<title>
管理员登录 <%= ename %>
</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<meta http-equiv="content-language" content="zh-cn" />
<meta http-equiv="x-ua-compatible" content="ie=emulateie7" />
<meta http-equiv="window-target" content="_top" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="keywords" content="<%= ekeywords %>" />
<meta name="description" content="<%= edescription %>" />

<link rel="stylesheet" type="text/css" href="admin.css" />
<script type="text/javascript" src="../function.js"></script>
</head>

<body>

<div id="web_main">
  <div class="login_main" onclick="crecode($('imgcode').src);">
    <form method="post" action=" p?act=login">
      管理员:<input type="text" name="admin_id" class="input" />
密 码:<input type="password" name="password" class="input" />

后台管理登陆一直显示……
提交回答

全部答案

    2011-09-12 00:01:39
  • 你好,不知道你说的登录密码错误是指什么建站系统?比如dedecms或者是wordpress系统?你可以到这个网站上看看有没有你需要的资料  也可以直接 .希望能帮到你

    1***

    2011-09-12 00:01:39

类似问题

换一换
  • 网络软件 相关知识

  • 电脑网络技术
  • 电脑网络

相关推荐

正在加载...
最新问答 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):