📄 logout.asp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--#include file="config.asp" -->
<html>
<head>
<title>LOGGED OUT</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<p align="center"><img src="../images/logo.gif" width="194" height="59"></p>
<%
varUserID = session.contents("UserID")
varRoomID = session.contents("RoomID")
'response.write varUserID & varRoomID & "D"
varDate = now()
'need the date as hh:mm
varTime = FormatDateTime(varDate, 4)
if varUserID then
call writeDB("INSERT INTO MESSAGES(UserID, RoomID, Message, Style, Colour, [Time]) VALUES(" & varUserID & ", '" & varRoomID & "', 'Has Logged Off', 'i', 'red', '" & varTime & "');")
'update the users so that we have a last active state.
call writeDB("UPDATE USERS SET RoomID=0, [Time]='" & varDate & "', LastPost = '" & varDate & "', Active=0 WHERE UserID = " & varUserID & ";")
response.write "<p align='center'>你已经退出聊天室,欢迎再来. "
else
%>
<script language="JavaScript">
<!--
close()
//-->
</script>
<%
end if
%>
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -