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

📄 admin.asp

📁 网站整站
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/set.asp"-->
<!--#include file="inc/adminfunction.asp"-->
<!--#include file="inc/md5.asp"-->
<%
if request("action")="login" then
server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
if mid(server_v1,8,len(server_v2))<>server_v2 then
YC("<script>alert('你提交的路径有误,禁止从站点外部提交数据请不要乱改参数!');this.location.href='c:\';</script>") 
response.end
end if
checkgetcode()
adminname=trim(RBD(request("adminname")))
adminpass=MD5(trim(RBD(request("adminpass"))))
sql="select * from YC_admin where admin_name='"&adminname&"' and admin_pass='"&adminpass&"'"
set rs=conn.execute(sql)
if rs.eof and rs.bof then
call addlog("后台登陆失败!(输入的用户名和密码不正确!)")
YC("<script>alert('您输入的用户名和密码不正确!');this.location.href='admin.asp';</script>")
Response.End
else
if rs("admin_lock")=1 then
call addlog("后台登陆失败!(此帐户已经锁定!)")
YC("<script>alert('您的帐户已经锁定,请和超级管理员联系!');this.location.href='admin.asp';</script>")
Response.End
end if
session("superlogin")=yecaocookies
session("supername")=rs("admin_name")
session("superuser")=rs("admin_user")
session("superadmin")=rs("admin_admin")
session("supertype")=rs("admin_type")
'设置管理员管理超时的时间,以分钟来算!
session.timeout=cint(request.form("timeout"))
call addlog("管理员["&rs("admin_name")&"]登陆后台成功!")
rs.close
set rs=nothing

YC("<script>top.location.href='admin.asp';</script>")
end if
elseif request("action")="adminout" then
session("superlogin")=""
session("supername")=""
session("superuser")=""
session("superadmin")=""
session("supertype")=""
YC("<script>top.location.href='admin.asp';</script>")
end if
if superlogin=yecaocookies then
if request("action")="" then%>
<HTML>
<HEAD>
<title>网站后台管理系统</title>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
</HEAD>
<FRAMESET name=btmframe framespacing='0' frameborder='no' border='0' cols=180,8,*>
<FRAME name=left src="admin.asp?action=left">
<FRAME src="admin.asp?action=center" noResize style="cursor:hand;border-left:1px solid #ffffff;border-right:1px solid #000000;">
<FRAME   name=admin src="admin.asp?action=right">
</FRAMESET>
</HTML>
<%elseif request("action")="left" then%>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>野草网站管理系统→后台管理</title>
<script src='inc/adminjs.js'></script>
<link rel="STYLESHEET" type="text/css" href="img/admin.css">
</head>
<body topmargin="0" leftmargin="0"  scroll=no >
<table width="100%" align=center border="0" cellpadding="0" cellspacing="0" rules='none' class='3d'>
<tr  class="titleleft" height="22">
<td><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;控制面板(<a href="admin.asp?action=help" target="admin"><font color="#ffffff">帮助</font></a>)</b></td></tr>
<tr class="left"  height="20"><td style="line-height:150%;">
&nbsp;<font face='wingdings'>v</font>&nbsp;管理员:<b><%=supername%></b><br>
&nbsp;<font face='wingdings'>v</font>&nbsp;权&emsp;限:<b><%
if supertype=0 then
YC("普通管理员")
elseif supertype=1 then
YC("<font color=""red"">超级管理员</font>")
else
YC("非法管理员")
end if%></b><br>
</td></tr></table>
<%
set doc = Server.CreateObject("Microsoft.XMLDOM")
doc.async=false
doc.load (server.mappath("inc/adminmenu.xml"))
set rootNode = doc.DocumentElement
i = 0
for each child in rootNode.childNodes
set c1 = rootNode.childnodes.item(i)
%>
  <base target="admin"> 
<table width="100%" align=center border="0" cellpadding="0" cellspacing="0" rules='none' class='3d'><tr class="titleleft"  height="22" id=menuTitle<%=i%> onclick="showmenu_item(<%=i%>)"><td><b>&nbsp;<img src=img/admin.gif border=0 width=15 height=15 align=absMiddle>&nbsp;<%=c1.getAttributeNode("title").nodeValue%></b></td></tr>
<tr  class="left"  style="display:none;"  height="50" id='menu_item<%=i%>'>
<td  style="padding:4px;" align="center">
<%
	j=0
	for each childNodes in rootNode.childnodes.item(i).childNodes
	set c2 = c1.childnodes.item(j)
	if inStr(c2.getAttributeNode("url").nodeValue,"|") >0 then
		td = "<a href='"&split(c2.getAttributeNode("url").nodeValue,"|")(0)&"' target='admin'>"&split(c2.getAttributeNode("name").nodeValue,"|")(0)&"</a>┊"&"<a href='"&split(c2.getAttributeNode("url").nodeValue,"|")(1)&"' target='admin'>"&split(c2.getAttributeNode("name").nodeValue,"|")(1)&"</a>"
	else
		td = "<a href='"&c2.getAttributeNode("url").nodeValue&"' target='admin'>"&c2.getAttributeNode("name").nodeValue&"</a>"
	end if
	%>
<div class="menu" onmouseover=this.className='overmenu' onmouseout=this.className='menu'>
&nbsp;<font face="Wingdings">v</font>&nbsp;<%=td%>&nbsp;<font face="Wingdings">v</font>&nbsp;</div>

   <%j = j+1
	next%> 
	</td></tr>
</table>
</base>
<%
i = i+1
next
%>
<SCRIPT language=javascript1.2>
function showmenu_item(sid)
{
which=eval('menu_item'+sid);
if (which.style.display == 'none')
{
var j = 0
while(j<<%=i%>){
eval('menu_item'+j+'.style.display=\'none\';');
j++;
}
eval('menu_item'+sid+'.style.display=\'\';');
}else{
eval('menu_item'+sid+'.style.display=\'none\';');
}
}
</SCRIPT>
<table width="100%" align=center border="0" cellpadding="0" cellspacing="0" rules='none' class='3d'><tr class="titleleft"  height="22"><td><b>&nbsp;<img src=img/admin_copy.gif border=0 width=15 height=15 align=absMiddle>&nbsp;版权所有</b></td></tr>
<tr class="left" height="36"><td style="line-height:150%;">
&nbsp;<font face='wingdings'>v</font>&nbsp;程序设计:野草<br>
&nbsp;<font face='wingdings'>v</font>&nbsp;美工设计:野草<br>
&nbsp;<font face='wingdings'>v</font>&nbsp;官方网站:<a href="http://www.yecaoweb.com" target="_blank">野草设计</a>	<br>
&nbsp;<font face='wingdings'>v</font>&nbsp;当前版本:<%=Version%>
</td></tr></table>
<table width="100%" align=center border="0" cellpadding="0" cellspacing="0" rules='none' class='3d'>
<tr  height="300" class="left" ><td style="line-height:150%;">
</td></tr></table>
</body></html>
<%elseif request("action")="center" then%>
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<link rel="STYLESHEET" type="text/css" href="img/admin.css">
<SCRIPT>
<!--
var leftorright='left';
function changeSize(){
top.btmframe.cols=(top.btmframe.cols=="180,8,*")?"0,8,*":"180,8,*";
if(leftorright=='left'){
leftorright='right';
}
else
{
leftorright='left';
}
}
document.oncontextmenu="return false";
document.onselectstart="return false";
if (self == top)
location="index.asp";
//-->
</SCRIPT></HEAD>
<BODY style="margin:0;padding:0;cursor:hand;" onmouseOver="this.style.background='#cccccc'"onmouseOut="this.style.background='#cfcfce'" bgcolor=cfcfce scroll=no onclick=changeSize()>

</BODY></HTML>
<%elseif request("action")="right" then%>
<html>
<head>
<link rel="STYLESHEET" type="text/css" href="img/admin.css">
<script src='inc/adminjs.js'></script>
</head>
<body scroll="no">
<table  width="100%" height="100%"  align=center  border="0" cellpadding="0" cellspacing="0" rules='none'><tr class="title"  height="22"><td><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;<font color="#ffffff">欢迎您!您的超时时间为 <%=session.timeout%> 分钟!</font></td></tr>
<tr class="bg" height="100"><td STYLE="BACKGROUND:#444444;PADDING:0PX"><img src=img/adminwelcome.gif border=0></td></tr>
<tr><td class="hr"  height="1" nowrap></td></tr><TR>
<TD class="bg" height="80" nowrap><br>
<center><button style=height:30 class=button onclick="document.all.dll.style.display=(document.all.dll.style.display =='none')?'':'none'">组件支持情况</button>&nbsp;<button style=height:30 class=button onclick="document.all.host.style.display=(document.all.host.style.display =='none')?'':'none'">主机环境情况</button>&nbsp;<button style=height:30 class=button onclick="location.href='admin_set.asp';">快速设置网站</button>&nbsp;<button style=height:30 class=button onclick="location.href='admin_link.asp';">审核友情连接</button>&nbsp;<button style=height:30 class=button onclick="location.href='admin.asp?action=help';">查看站长帮助</button>

</center><br>
</tr>
<tr><td class="hr"  height="1" nowrap></td></tr>
<tr class="bg">
<td style=line-height:180%;padding-left:10px>
程序开发:野草工作室<br>
产品名称:野草网站管理系统&emsp;[<font color=red><%=Edition%></font>]<br>
产品负责:程序/美工/数据库设计:<font color="red">野草</font><br>
当前版本:YCMS <%=Version%><br>
联系电话:0898-69286952 <br>
交流 Q Q:94440079 <br>
电子信箱:yecaomail@163.com <br>
官方网站:<a href="http://www.yecaoweb.com" target="_blank">http://www.yecaoweb.com</a><br>
</tr><TR>
<tr><td class="hr" height="1" nowrap></td></tr>
<tr class="bg"><td height="25" nowrap style="line-height:150%;text-align:right;padding-right:30px;">
Power By YCMS&nbsp;Copyright (c) YecaoWeb.Com. All Rights Reserved </TD></TR></table>
<table width="95%" align=center border="0" cellpadding="0" cellspacing="0" rules='none' class='3d'  id=host style="position:absolute;left:50;top:50;width:550;height:300;display:none;">
<tr>
<td style="cursor:move" colspan="2" height="22" class=title onmousedown=MDown(host)><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;主机环境变量</b> <img onclick="document.all.host.style.display=(document.all.host.style.display =='none')?'':'none'" style="position:absolute;right:2;top:5;cursor:hand" border="0" src="img/adminclose.gif" align=absMiddle></td>
</tr>
<tr class="bg"><td height="25" align="center" width="57%">项目</td><td align="center">&nbsp;值</td></tr>
<tr class="bg">
<td height="25" width="57%">&nbsp;服务器的域名</td>
<td  height="25">&nbsp;<%=Request.ServerVariables("server_name")%> </td>
</tr>
<tr class="bg">
<td height="25" width="57%">&nbsp;服务器的IP地址</td>
<td  height="25">&nbsp;<%=Request.ServerVariables("LOCAL_ADDR")%> </td>
</tr>
<tr class="bg">
<td height="25" width="57%">&nbsp;服务器操作系统</td>
<td  height="25">&nbsp;<%=Request.ServerVariables("OS")%> </td>
</tr>
<tr class="bg">
<td height="25" width="57%">&nbsp;服务器解译引擎</td>
<td  height="25">&nbsp;<%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %> </td>
</tr>
<tr class="bg">
<td height="25" width="57%">&nbsp;服务器软件的名称及版本</td>
<td  height="25">&nbsp;<%=Request.ServerVariables("SERVER_SOFTWARE")%> </td>
</tr>

⌨️ 快捷键说明

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