manage.php

来自「泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5」· PHP 代码 · 共 34 行

PHP
34
字号
<?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 + =
减小字号Ctrl + -
显示快捷键?