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