📄 manage.php
字号:
<?php
include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title></title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
$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, "\n[系统消息] - 聊天室已经关闭 " );
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, "\n[系统消息] - 聊天室恢复开放 " );
fclose( $fp );
}
$query = "update CHATROOM set STOP='0' where CHAT_ID={$CHAT_ID}";
}
exequery( $connection, $query );
header( "location: index.php" );
echo "\r\n</body>\r\n</html>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -