} } else { error('Elluminate Live! Group Error'); } } } $context = get_context_instance(CONTEXT_MODULE, $cm->id); require_capability('mod/elluminate:managepreloads', $context); /// Check to see if groups are being used here $groupmode = groups_get_activity_groupmode($cm); $currentgroup = groups_get_activity_group($cm, true); if (empty($currentgroup)) { $currentgroup = 0; } if (empty($elluminate->meetingid) && $elluminate->groupmode != 0) { elluminate_group_instance_check($elluminate, $cm->id); } $baseurl = $CFG->wwwroot . '/mod/elluminate/preload.php?id=' . $elluminate->id; /// Print the page header $strelluminates = get_string('modulenameplural', 'elluminate'); $strelluminate = get_string('modulename', 'elluminate'); $straddpreload = get_string('addpreload', 'elluminate'); $strdelpreload = get_string('deletewhiteboardpreload', 'elluminate'); $buttontext = update_module_button($cm->id, $course->id, $strelluminate); $navigation = build_navigation(empty($delete) ? $straddpreload : $strdelpreload, $cm); print_header_simple(format_string($elluminate->name), '', $navigation, '', '', true, $buttontext, navmenu($course, $cm)); /// Delete a preload file for this meeting. if (!empty($delete)) { if (!empty($elluminate->meetingid)) { if ($preload = elluminate_list_meeting_preloads($elluminate->meetingid)) { if ($preload->presentationid == $delete) {
require_course_login($course, true, $cm); $modcontext = get_context_instance(CONTEXT_MODULE, $cm->id); $crscontext = get_context_instance(CONTEXT_COURSE, $course->id); require_capability('mod/elluminate:view', $modcontext); require_capability('mod/elluminate:manageparticipants', $modcontext); $usingroles = file_exists($CFG->libdir . '/accesslib.php'); $elluminate->name = stripslashes($elluminate->name); $notice = ''; /// Check to see if groups are being used here $groupmode = groups_get_activity_groupmode($cm); $currentgroup = groups_get_activity_group($cm, true); if (empty($currentgroup)) { $currentgroup = 0; } if (empty($elluminate->meetingid) && $elluminate->groupmode != 0) { elluminate_group_instance_check($elluminate); } /// Process data submission. if (($data = data_submitted($CFG->wwwroot . '/mod/elluminate/participants.php')) && confirm_sesskey()) { /// Delete records for selected participants chosen to be removed. if ($data->submitvalue == "remove") { if (!empty($data->userscur)) { if (!elluminate_del_users($elluminate, $data->userscur, $currentgroup)) { $notice = get_string('couldnotremoveusersfrommeeting', 'elluminate'); } } } /// Add records for selected participants chosen to be added. if ($data->submitvalue == "add") { if (!empty($data->usersavail)) { if (!elluminate_add_users($elluminate, $data->usersavail, $currentgroup)) {