log.asp

来自「聊天室源码呵呵你好用~~~~~~2.0版本」· ASP 代码 · 共 73 行

ASP
73
字号
<%@ LANGUAGE=VBScript%>
<%Response.Expires=0
if Session("a_c_user_name")=""  then
 Response.write "<b>[操作失败]</b><p>您尚未登录(或已经超时退出),不能进行此操作!"
 Response.end
end if
'if Session("a_c_user_level")<9 then
' Response.Write "<b>[操作失败]</b><p>您没有查看聊务公开记录的权限。至少要9级权限才能查看!如果您有问题请在留言簿给“稻香居士”“私人留言”。"
' Response.End
'end if
Server.ScriptTimeout=600
dim input()
logfile=server.mappath("logdata.asp")
Set fs = CreateObject("Scripting.FileSystemObject")
Set thisfile = fs.OpenTextFile(logfile,1,False)
counter = 0
do while not thisfile.AtEndOfStream
 thisline = thisfile.readline
 Redim preserve input(counter)
 input(counter) = thisline
 counter = counter + 1
loop
thisfile.Close
if Session("a_c_user_level")<10 then
 for i=1 to counter-1
  input(i)=left(input(i),Instr(input(i),"(")-1)&right(input(i),len(input(i))-Instr(input(i),")"))
 next
end if%><html>
<head>
<title>聊务公开</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javaScript">
function load()
{var name=navigator.appName
var vers=navigator.appVersion
if(name=="Netscape")
{window.location.reload()
}else
{history.go(0)
}}</script>
<style type='text/css'>
<!--
.p9 {line-height: 150%; font-size: 9pt;}
.p12 {line-height: 150%; font-size: 12pt;}
body {line-height: 150%;font-size : 12pt;}
A  {text-decoration: none;}
A:Hover  {text-decoration : none;}
a:visited {  color: #0000FF}
-->
</style>
</head>
<body bgcolor="FFFFFF">
<h1 align="center"><font color="0099FF">【聊务公开】</font></h1>
<hr noshade size="1" color=009900>
<form method="post" action="" name="">
<div align="center"> 
<input type="button" value="刷新" onClick=load() style="font-size:12pt" name="button">
</div>
</form>
<p><b>[说明]</b></p>
<blockquote>
<p><span class="p9">版主(或高级权限的用户)的所有操作均被记录在此处,请广大聊友监督,如果你发现某些版主滥用职权,无端执行清屏或踢人等操作,请给站长留言,进行检举。站长查实后,将依据情况对那些版主进行降级,直至禁用、删除其帐号。<br>
注:本公开栏最多只保留最近的 500 条操作记录。记录最后括号中注明的人数指版主执行此项操作时,聊天室中共有多少人。</span></p>
</blockquote>
<p><b>[版主操作记录]</b></p>
<span class="p9"><font color="FF0000"><%for i=1 to counter-1
if int(i/2)=i/2 then Response.Write "<font color=FF6600>" else Response.Write "<font color=0066FF>"
Response.Write "第 " & i & " 条 " & input(i) & "<p></font>"
next%></font></span>
<hr noshade size="1" color=009900>
<div align="center" class="p9"><script src="use.asp"></script> <script src="sn.asp"></script><br><script src="copyright.asp"></script></div>
</body>
</html>

⌨️ 快捷键说明

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