|
|
|
@ -10,8 +10,6 @@ require_once __DIR__.'/config.php'; |
|
|
|
|
|
|
|
|
|
$plugin = ZoomPlugin::create(); |
|
|
|
|
$tool_name = $plugin->get_lang('ZoomVideoConferences'); |
|
|
|
|
$tpl = new Template($plugin->get_lang('ZoomVideoConferences')); |
|
|
|
|
|
|
|
|
|
$meetingId = isset($_REQUEST['meetingId']) ? (int) $_REQUEST['meetingId'] : 0; |
|
|
|
|
if (empty($meetingId)) { |
|
|
|
|
api_not_allowed(true); |
|
|
|
@ -27,8 +25,31 @@ if (null === $meeting) { |
|
|
|
|
if (!$plugin->userIsConferenceManager($meeting)) { |
|
|
|
|
api_not_allowed(true); |
|
|
|
|
} |
|
|
|
|
$returnURL = 'meetings.php'; |
|
|
|
|
$urlExtra = ''; |
|
|
|
|
if ($meeting->isCourseMeeting()) { |
|
|
|
|
api_protect_course_script(true); |
|
|
|
|
$urlExtra = api_get_cidreq(); |
|
|
|
|
$returnURL = 'start.php?'.$urlExtra; |
|
|
|
|
if (api_is_in_group()) { |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
'url' => api_get_path(WEB_CODE_PATH).'group/group.php?'.api_get_cidreq(), |
|
|
|
|
'name' => get_lang('Groups'), |
|
|
|
|
]; |
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
'url' => api_get_path(WEB_CODE_PATH).'group/group_space.php?'.api_get_cidreq(), |
|
|
|
|
'name' => get_lang('GroupSpace').' '.$meeting->getGroup()->getName(), |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$interbreadcrumb[] = [ |
|
|
|
|
'url' => $returnURL, |
|
|
|
|
'name' => $plugin->get_lang('ZoomVideoConferences'), |
|
|
|
|
]; |
|
|
|
|
$tpl = new Template($meeting->getMeetingId()); |
|
|
|
|
$tpl->assign('actions', $plugin->getToolbar()); |
|
|
|
|
$tpl->assign('meeting', $meeting); |
|
|
|
|
$tpl->assign('url_extra', $urlExtra); |
|
|
|
|
$tpl->assign('content', $tpl->fetch('zoom/view/activity.tpl')); |
|
|
|
|
$tpl->display_one_col_template(); |
|
|
|
|