📄 view.php
字号:
<?
include_once 'inc/auth.php';
echo '
<html>
<head>
<title>网络会议显示发言内容</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
';
echo '<s';
echo 'cript Language=JavaScript>
window.setTimeout(\'this.location.reload();\',8000);
</script>
</head>
<body bgcolor="#F1FAF5" class="small">
';
$CUR_TIME = date ('Y-m-d H:i:s', time ());
$MSG_FILE = (('msg/'.$MEET_ID).'.msg');
if (!file_exists ($MSG_FILE))
{
$fp = fopen ($MSG_FILE, 'r');
flock ($fp, 2);
fclose ($fp);
}
$SCREEN_HEIGHT = 20;
$LINES = file ($MSG_FILE);
$LINES_COUNT = count ($LINES);
$LINES_START = ($LINES_COUNT - $SCREEN_HEIGHT);
if (($LINES_START < 0))
{
$LINES_START = 0;
}
if ((($FIRST_VIEW != 1) AND (0 < $LINES_COUNT)))
{
$LINES_START = ($LINES_COUNT - 1);
}
echo '
';
echo '<s';
echo 'cript>
';
if (($FIRST_VIEW == 1))
{
echo '//parent.chat_view_area.document.open("text/html", "replace")
parent.chat_view_area.document.open();
parent.chat_view_area.document.writeln("<html>");
parent.chat_view_area.document.writeln("<body bgcolor=\'#F1FAF5\' class=\'small\'>");
';
}
for ($I = $LINES_START; ($I < $LINES_COUNT); ++$I)
{
$STR = substr ($LINES[$I], 0, (strlen ($LINES[$I]) - 2));
$TO_STR = substr ($STR, 0, strpos ($STR, '@+#'));
$TO_ID = '';
$FROM_ID = '';
if (($TO_STR != ''))
{
$TO_STR = strtok ($TO_STR, ',');
$TO_ID = $TO_STR;
$TO_STR = strtok (',');
$FROM_ID = $TO_STR;
$POS = strpos ($STR, '@+#');
$STR = substr ($STR, ($POS + 3));
}
if (((($TO_ID == '') OR ($TO_ID == $LOGIN_USER_ID)) OR ($FROM_ID == $LOGIN_USER_ID)))
{
$OUT_PUT = (('<span>'.$STR).'</span><br>');
$OUT_PUT = str_replace (chr (34), '”', $OUT_PUT);
echo '
parent.chat_view_area.document.writeln("';
echo $OUT_PUT;
echo '");
';
continue;
}
}
echo '
parent.chat_view_area.document.writeln("</body></html>");
parent.chat_view_area.scroll(0,10);
parent.chat_view_area.scroll(0,1000);
window.status="网络会议";
</script>
</body>
</html>';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -