📄 livesupport.php
字号:
<?php
include_once('inc/common.php');
$id = 'flashchat';
$params = array();
$open = false;
if($GLOBALS['fc_config']['liveSupportMode']) {
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}connections WHERE userid IS NOT NULL");
if($rs = $stmt->process()) {
while($rec = $rs->next()) {
if(ChatServer::userInRole($rec['userid'], ROLE_ADMIN)) {
$open = true;
break;
}
}
}
}
?>
<html>
<head>
<title>Live Support Sample</title>
<script type="text/javascript" src="js.php"></script>
</head>
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" scroll="no" <?php if($open) { ?>onLoad="setFocus()" onUnload="doLogout()"<?php } ?>>
<?php if($open) { ?>
<center><?php echo flashTag($id, 'preloader.swf', '100%', '100%', $params)?></center>
<?php } else { ?>
<center>Sorry, we are closed</center>
<?php } ?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -