📄 stop.php
字号:
<?
include_once("inc/auth.php");
?>
<html>
<head>
<title>停止聊天室</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="8">
<?
if($LOGIN_USER_PRIV!="1")
{
message("提示","非法操作");
exit;
}
$MSG_FILE="msg/".$CHAT_ID.".msg";
$STOP_FILE="msg/".$CHAT_ID.".stp";
$fp = fopen($MSG_FILE,"a+");
flock ($fp,2);
fwrite($fp,"\n[系统消息] - 聊天室已经关闭 ");
fclose($fp);
$fp = fopen($STOP_FILE,"w");
fclose($fp);
$query="update CHATROOM set STOP='1' where CHAT_ID='$CHAT_ID'";
exequery($connection,$query);
?>
<center>
<input type="button" value="离开聊天室" class="SmallButton" onclick="parent.location='../'">
</center>
<script>
parent.chat_view.location.reload();
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -