📄 vmeet.php
字号:
<?
include_once("inc/auth.php");
include_once("inc/utility_all.php");
if($VMEET=="")
exit;
if($TYPE!="PUBLIC")
{
//检查短信记录
$REMIND_URL="1:vmeet/vmeet.php?VMEET=$VMEET&VT=$VT&VCK=$VCK";
$query = "SELECT * from SMS,SMS_BODY where SMS.BODY_ID=SMS_BODY.BODY_ID and FROM_ID=TO_ID and REMIND_URL='$REMIND_URL'";
$cursor= exequery($connection,$query);
if(!$ROW=mysql_fetch_array($cursor))
{
Message("","未找到指定的视频会议,可能已被会议主持人删除");
Button_Back();
exit;
}
//检查KEY
$VCK_TMP=md5(keyed_str($VT,"TD_VMEET"));
$VCK_TMP=substr($VCK,0,4).substr($VCK,-4);
if($VCK_TMP!=$VCK||$VCK=="")
exit;
//进入会议
$APPINSTANCE=substr($VMEET,0,-8).$VCK;
$USER_NAME=$LOGIN_USER_NAME;
if($SMS_ID=="")
$ROLE=3;//普通用户
else
$ROLE=2;//管理员
}
else
{
//进入会议
$APPINSTANCE="PUBLIC_".$VMEET;
$USER_NAME=$LOGIN_USER_NAME;
$query = "SELECT * from NETMEETING where MEET_ID='$VMEET'";
$cursor= exequery($connection,$query);
if($ROW=mysql_fetch_array($cursor))
{
$FROM_ID=$ROW["FROM_ID"];
$TO_ID=$ROW["TO_ID"];
if(!find_id($TO_ID,$LOGIN_USER_ID) && $FROM_ID!=$LOGIN_USER_ID)
{
Message("","无权限进入会议");
exit;
}
if($FROM_ID==$LOGIN_USER_ID)
$ROLE=2;//管理员
else
$ROLE=3;//普通用户
}
else
{
Message("","无权限进入会议");
exit;
}
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的视频会议</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script>
if (window.Event)
document.captureEvents(Event.MOUSEUP);
function nocontextmenu()
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
function norightclick(e)
{
if (window.Event)
{
if (e.which == 2 || e.which == 3)
return false;
}
else
if (event.button == 2 || event.button == 3)
{
event.cancelBubble = true
event.returnValue = false;
return false;
}
}
document.oncontextmenu = nocontextmenu; // for IE5+
document.onmousedown = norightclick; // for all others
function add_user()
{
url="add_user.php?SMS_ID=<?=$SMS_ID?>";
window.open(url,"add_user","height=230,width=600,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}
</script>
</head>
<BODY class="bodycolor" topmargin=0 leftmargin=0>
<table width="100%" height="100%">
<tr>
<td width="95%" height="100%">
<?
$MEDIA_SERVER="rtmp://".strtok($HTTP_HOST,":");
$SCRIPT_TYPE="php";
$connStr="userName={$USER_NAME}&password={$PASSWORD}&mediaServer={$MEDIA_SERVER}&role={$ROLE}&roomID={$APPINSTANCE}&scriptType={$SCRIPT_TYPE}";
?>
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("此页需要 AC_RunActiveContent.js");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '100%',
'height', '100%',
'src', 'preloader?<?php echo $connStr ?>',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'preloader',
'bgcolor', '#ffffff',
'name', 'preloader',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'preloader?<?php echo $connStr ?>',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="preloader" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="preloader.swf?<?php echo $connStr ?>" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="preloader.swf?<?php echo $connStr ?>" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="preloader" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</td>
<td>
<?
if($SMS_ID!="")
{
?>
<input type="button" value="邀请" class="SmallButton" onclick="add_user()" title="邀请更多人参会"><br><br>
<?
}
?>
<input type="button" value="刷新" class="SmallButton" onclick="location='vmeet.php?VMEET=<?=$VMEET?>&VT=<?=$VT?>&VCK=<?=$VCK?>'"><br><br>
<input type="button" value="关闭" class="SmallButton" onclick="window.close()">
</td>
</tr>
</table>
</BODY>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -