Ejemplo n.º 1
0
            break;
        case 'end':
            $bbb->end_meeting($_GET['id']);
            $message = Display::return_message(get_lang('MeetingClosed') . '<br />' . get_lang('MeetingClosedComment'), 'success', false);
            break;
        case 'publish':
            //$result = $bbb->publish_meeting($_GET['id']);
            break;
        case 'unpublish':
            //$result = $bbb->unpublish_meeting($_GET['id']);
            break;
        default:
            break;
    }
}
$meetings = $bbb->get_course_meetings();
if (!empty($meetings)) {
    $meetings = array_reverse($meetings);
}
$users_online = $bbb->get_users_online_in_current_room();
$status = $bbb->is_server_running();
$meeting_exists = $bbb->meeting_exists(api_get_course_id());
$show_join_button = false;
if ($meeting_exists || $teacher) {
    $show_join_button = true;
}
$tpl->assign('allow_to_edit', $teacher);
$tpl->assign('meetings', $meetings);
$conference_url = api_get_path(WEB_PLUGIN_PATH) . 'bbb/start.php?launch=1&' . api_get_cidreq();
$tpl->assign('conference_url', $conference_url);
$tpl->assign('users_online', $users_online);