📄 manage.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="5">
';
$connection = openconnection ();
if ($OPERATION == 1)
{
$MSG_FILE = '../../chatroom/chat/msg/' . $CHAT_ID . '.msg';
$STOP_FILE = '../../chatroom/chat/msg/' . $CHAT_ID . '.stp';
$fp = fopen ($MSG_FILE, 'a+');
fputs ($fp, '
[系统消息] - 聊天室已经关闭 ');
fclose ($fp);
$fp = fopen ($STOP_FILE, 'w');
fclose ($fp);
$query = 'update CHATROOM set STOP=\'1\' where CHAT_ID=' . $CHAT_ID;
}
else
{
$STOP_FILE = '../../chatroom/chat/msg/' . $CHAT_ID . '.stp';
if (file_exists ($STOP_FILE))
{
unlink ($STOP_FILE);
$MSG_FILE = '../../chatroom/chat/msg/' . $CHAT_ID . '.msg';
$fp = fopen ($MSG_FILE, 'a+');
fputs ($fp, '
[系统消息] - 聊天室恢复开放 ');
fclose ($fp);
}
$query = 'update CHATROOM set STOP=\'0\' where CHAT_ID=' . $CHAT_ID;
}
exequery ($connection, $query);
header ('location: index.php');
echo '
</body>
</html>
';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -