Exemplo n.º 1
0
<script type="text/javascript" src="heartbeat.js"></script>
</head>
<body>
<br />
<?
$step = 1;
switch ($_REQUEST['action'])
{
	case 'create':
		if (trim($_REQUEST['username']))
		{
			/*
			 * This is the URL for to join the meeting as moderator
			 */
			$meetingID = $_REQUEST['username']."'s meeting";
			$joinURL = getJoinURL($_REQUEST['username'], $meetingID, "<br>Welcome to %%CONFNAME%%.<br>");

			/*
			 * We're going to extract the meetingToken to enable others to join as viewers
			 */
			$p = '|meetingToken=[^&]*|';
			preg_match_all($p, $joinURL, $matches);
			if ($matches[0] && $matches[0][0])
			{
				$meetingToken = $matches[0][0];
				$inviteURL = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'].'?action=invite&meetingID='.urlencode($meetingID).'&'.$meetingToken;
				$step = 2;
			}
			else
			 	echo 'Error: Did not find meeting token.';
		}
Exemplo n.º 2
0
<title>Join a Course</title>
</head>
<body>
<br />
<?
if ($_REQUEST['action'] == 'create' && trim($_REQUEST['username']))
{
   /*
	* Got an action=create
	*
	* Request a URL to join a meeting called "Demo Meeting"
	* Pass null for welcome message to use the default message (see defaultWelcomeMessage in bigbluebutton.properties)
	*
	*/

    $joinURL = getJoinURL($_REQUEST['username'], "Demo Meeting", null);
    if (substr($joinURL, 0, 7) == 'http://')
    {
    	?>
<script language="javascript" type="text/javascript">
  window.location.href="<?php 
echo $joinURL;
?>
";
</script>
    	<?
    }
    else
    {
    	?>
Error: getJoinURL() failed
Exemplo n.º 3
0
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Join a Selected Course</title>
</head>
<body>
<br />
<?
if ($_REQUEST['action'] == 'join' && trim($_REQUEST['username']) && trim($_REQUEST['meetingID']))
{
   /*
	* Got an action=join
	*/

    $joinURL = getJoinURL($_REQUEST['username'], $_REQUEST['meetingID'], null);
    if (substr($joinURL, 0, 7) == 'http://')
    {
    	?>
<script language="javascript" type="text/javascript">
  window.location.href="<?php 
echo $joinURL;
?>
";
</script>
    	<?
    }
    else
    {
    	?>
Error: getJoinURL() failed