后台在空间上不显示
我在本机上测试全OK父路径都开了但就是上传了文件到空间后
能运行空间主页但一打开管理页面出现输入密码时
我把账号和密码全输进去结果出现500内部服务器错误
我主目录下的CONN是
<%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_conndb_STRING
MM_conndb_STRING = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&server.mappath("data/db1.mdb")
%>
admin_login.asp文件在主目录ADMIN下面
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Connections/conndb.asp" -->
<!--#include file="../admin/md5.asp" -->
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString <> "" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername = CStr(Request.Form("username"))
If MM_valUsername <> "" Then
Dim MM_fldUserAuthorization
Dim MM_redirectLoginSuccess
Dim MM_redirectLoginFailed
Dim MM_loginSQL
Dim MM_rsUser
Dim MM_rsUser_cmd
MM_fldUserAuthorization = ""
MM_redirectLoginSuccess = "admin.asp"
MM_redirectLoginFailed = "admin_login.asp"
MM_loginSQL = "SELECT username, ppass"
If MM_fldUserAuthorization <> "" Then MM_loginSQL = MM_loginSQL & "," & MM_fldUserAuthorization
MM_loginSQL = MM_loginSQL & " FROM config WHERE username = ? AND ppass = ?"
Set MM_rsUser_cmd = Server.CreateObject (")
MM_rsUser_cmd.ActiveConnection = MM_conndb_STRING
MM_rsUser_ = MM_loginSQL
MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param1", 200, 1, 50, MM_valUsername) ' adVarChar
MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param2", 200, 1, 50, md5(Request.Form("ppass"))) ' adVarChar
MM_rsUser_cmd.Prepared = true
Set MM_rsUser = MM_rsUser_cmd.Execute
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And false Then
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
End If
MM_rsUser.Close
session("ppass")=request.Form("ppass")
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>管理员登录</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
.STYLE4 {color: #FFFFFF}
-->
</style>
</head>
<body>
<p align="center" class="STYLE4">◇</p>
<p align="center" class="STYLE4">◇</p>
<p align="center" class="STYLE4">◇</p>
<p align="center" class="STYLE4">◇</p>
<div align="center">
<form id="form1" name="form1" method="POST" action="<%=MM_LoginAction%>">
<table id="Table_01" width="548" height="253" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="images/login_01.gif" width="167" height="65" alt=""></td>
<td>
<img src="images/login_02.gif" width="102" height="65" alt=""></td>
<td>
<img src="images/login_03.gif" width="93" height="65" alt=""></td>
<td>
<img src="images/login_04.gif" width="186" height="65" alt=""></td>
</tr>
<tr>
<td>
<img src="images/login_05.gif" width="167" height="45" alt=""></td>
<td>
<img src="images/login_06.gif" width="102" height="45" alt=""></td>
<td>
<img src="images/login_07.gif" width="93" height="45" alt=""></td>
<td>
<img src="images/login_08.gif" width="186" height="45" alt=""></td>
</tr>
<tr>
<td>
<img src="images/login_09.gif" width="167" height="29" alt=""></td>
<td align="left" background="images/login_10.gif"><input name="username" type="text" id="username" size="10" style="font-size: 9pt; color: #FF0000" maxlength="8" /></td>
<td>
<img src="images/login_11.gif" width="93" height="29" alt=""></td>
<td align="left" background="images/login_12.gif"><input name="ppass" type="password" id="ppass" size="10" /></td>
</tr>
<tr>
<td>
<img src="images/login_13.gif" width="167" height="40" alt=""></td>
<td>
<img src="images/login_14.gif" width="102" height="40" alt=""></td>
<td>
<img src="images/login_15.gif" width="93" height="40" alt=""></td>
<td>
<img src="images/login_16.gif" width="186" height="40" alt=""></td>
</tr>
<tr>
<td>
<img src="images/login_17.gif" alt="" width="167" height="74" border="0"></td>
<td>
<img src="images/login_18.gif" alt="" width="102" height="74" border="0"></td>
<td><img src="images/login_19.gif" alt="" width="93" height="74" border="0" /></td>
<td><input type="image" name="button" src="images/login_20.gif" width="186" height="74" /></td>
</tr>
</table>
</form>
</div>
</body>
</html>
能显示出来但输入密码就出错了
我在本机上密码都是对的上传了几次也打不开
密码是MD5加密的