//                                                                       //
// NOTICE OF COPYRIGHT                                                   //
//                                                                       //
//                                                                       //
// Copyright (C) 2010 Dual Code Inc. (www.dualcode.com)                  //
//                                                                       //
// This program is free software; you can redistribute it and/or modify  //
// it under the terms of the GNU General Public License version 2 as     //
// published by the Free Software Foundation.                            //
//                                                                       //
// This program is distributed in the hope that it will be useful,       //
// but WITHOUT ANY WARRANTY; without even the implied warranty of        //
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
// GNU General Public License for more details:                          //
//                                                                       //
// http://www.gnu.org/licenses/old-licenses/gpl-2.0.html                 //
//                                                                       //
///////////////////////////////////////////////////////////////////////////
require_once '../../config.php';
require_once 'lib.php';
$ip = $CFG->wc_serverhost;
$securitySalt = $CFG->wc_securitysalt;
$provider = $CFG->wc_provider;
$accountid = $CFG->wc_accountid;
$accountpwd = $CFG->wc_accountpwd;
$myMeetingID = $_REQUEST['meetingID'];
if ($provider == "self") {
    echo wc_isMeetingRunning($ip, $securitySalt, $myMeetingID);
} else {
    echo dc_isMeetingRunning($accountid, $accountpwd, $myMeetingID);
}
Esempio n. 2
0
            print_simple_box_start('center');
            echo "<center>";
            echo get_string('joinmeeting_instructions_mod', 'bigbluebutton') . '<br /><br />';
            echo "<a " . $newWindowStr . " href='" . $joinURL . "'>" . get_string('joinmeeting_asguest', 'bigbluebutton') . "</a>";
            echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
            echo "<a " . $newWindowStr . " href='" . $joinURLasMod . "'>" . get_string('joinmeeting_asmoderator', 'bigbluebutton') . "</a><br /><br />";
            echo "</center>";
            print_simple_box_end();
        } else {
            if (has_capability('mod/bigbluebutton:isattendee', $context)) {
                print_simple_box_start('center');
                echo "<center>";
                if ($provider == "self") {
                    $isRunning = wc_isMeetingRunning($ip, $securitySalt, $meetingid);
                } else {
                    $isRunning = dc_isMeetingRunning($accountid, $accountpwd, $meetingid);
                }
                if ($isRunning == "false") {
                    echo get_string('notrunning', 'bigbluebutton') . '<br /><br />';
                    echo "<img src='polling.gif' border='0' /><br><br>";
                    //echo "(<a ".$newWindowStr." href='".$joinURL."'>".get_string('autorefresh', 'bigbluebutton')."</a>)";
                    echo "(" . get_string('autorefresh', 'bigbluebutton') . ")";
                    ?>
      <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
      <script type="text/javascript" src="heartbeat.js"></script>
      <script type="text/javascript">
      $(document).ready(function(){
		$.jheartbeat.set({
		   url: "<?php 
                    echo $CFG->wwwroot;
                    ?>