📄 download.asp
字号:
<%@LANGUAGE="VBSCRIPT"%>
<% If Session("MM_Username") <> "admin" Then Response.Write("<script Language=Javascript>alert('你不是管理员,不能使用此模块的管理系统。');location.href = 'javascript:history.go(-1)';</script>") end if %>
<%
' *** Logout the current user.
MM_Logout = CStr(Request.ServerVariables("URL")) & "?MM_Logoutnow=1"
If (CStr(Request("MM_Logoutnow")) = "1") Then
Session.Contents.Remove("MM_Username")
Session.Contents.Remove("MM_UserAuthorization")
MM_logoutRedirectPage = "exit.asp"
' redirect with URL parameters (remove the "MM_Logoutnow" query param).
if (MM_logoutRedirectPage = "") Then MM_logoutRedirectPage = CStr(Request.ServerVariables("URL"))
If (InStr(1, UC_redirectPage, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
MM_newQS = "?"
For Each Item In Request.QueryString
If (Item <> "MM_Logoutnow") Then
If (Len(MM_newQS) > 1) Then MM_newQS = MM_newQS & "&"
MM_newQS = MM_newQS & Item & "=" & Server.URLencode(Request.QueryString(Item))
End If
Next
if (Len(MM_newQS) > 1) Then MM_logoutRedirectPage = MM_logoutRedirectPage & MM_newQS
End If
Response.Redirect(MM_logoutRedirectPage)
End If
%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="../superlogin.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<HTML>
<HEAD>
<TITLE>管理中心</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
color: #000000;
}
a {
font-size: 12px;
color: #0033FF;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #0033FF;
}
a:hover {
text-decoration: underline;
color: #000000;
}
a:active {
text-decoration: none;
color: #000000;
}
-->
</style>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<!-- ImageReady Slices (未标题-2) -->
<div align="center">
<TABLE WIDTH=773 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<IMG SRC="images/index_01.gif" WIDTH=304 HEIGHT=100 ALT=""></TD>
<TD>
<IMG SRC="images/index_02.gif" WIDTH=26 HEIGHT=100 ALT=""></TD>
<TD>
<IMG SRC="images/index_03.gif" WIDTH=303 HEIGHT=100 ALT=""></TD>
<TD>
<IMG SRC="images/index_04.gif" WIDTH=140 HEIGHT=100 ALT=""></TD>
</TR>
</TABLE>
<table width="773" border="1">
<tr align="center" valign="bottom">
<td scope="col"><div align="center"><a href="user.asp">用户管理</a></div></td>
<td scope="col"><div align="center"><a href="sp.asp">商品管理</a></div></td>
<td scope="col"><div align="center"><a href="qa.asp">提问管理</a></div></td>
<td scope="col"><div align="center"><a href="jh.asp">精华管理</a></div></td>
<td scope="col"><div align="center"><a href="download.asp">下载管理</a></div></td>
<td scope="col"><div align="center"><a href="gb.asp">留言管理</a></div></td>
<td scope="col"><div align="center"><a href="../wz/admin" target="_blank">发布新闻</a></div></td>
<td scope="col"><div align="center"><a href="ok.asp">退出系统</a></div></td>
</tr>
</table>
<table width="773" border="0">
<tr>
<td height="47" scope="col"><div align="center"><% If Session("MM_Username") = "admin" Then Response.Write("<a href="&"../adddownload.asp target="&"_blank"&""&">"&"进入下载管理"&"</a>") end if %></div></td>
</tr>
<tr>
<td height="51"><div align="center">
<!--#include file="myzb.asp" -->
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_myzb_STRING
Recordset1.Source = "select * from usero where dengluming='"&Session("MM_Username")&"'and mb='1'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
if Recordset1.eof then
response.Write("<a href="&"http://www.bdqilu.net target="&"_blank"&""&">"&"淄博日丰电脑商行制作"&"</a>")
else
while not Recordset1.eof
response.write("<script Language=Javascript>alert('你是普通用户,不能使用此系统。');location.href = 'javascript:history.go(-1)';</script>")
Recordset1.movenext
wend
end if
%>
</div></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</div>
</BODY>
</HTML>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -