} if ($group->is_admin($user)) { $list_staff = true; include "groups_members_excel.php"; exit; } else { throw new Exception("No rights to view this.", E_USER_RIGHTS); } break; // Create a new calendar event and display it => event_details.php // Create a new calendar event and display it => event_details.php case isset($path[1]) && $path[1] == "calendar" && isset($path[2]) && $path[2] == "new": if (!$portal_user->is_logged_in()) { throw new Exception("Access denied. Please login.", E_USER_AUTHORIZATION); } $calendar = $group->get_calendar(); $backlink = array("link" => $backlink . "calendar/", "name" => str_replace("%COURSE", $group->get_attribute("OBJ_DESC"), gettext("Calendar of '%COURSE'"))); include "event_details.php"; exit; break; // Display a calendar event => event_details.php // Display a calendar event => event_details.php case isset($path[1]) && $path[1] == "calendar" && isset($path[3]) && $path[3] == "details": if (!$portal_user->is_logged_in()) { throw new Exception("Access denied. Please login.", E_USER_AUTHORIZATION); } $calendar = $group->get_calendar(); $backlink = array("link" => $backlink . "calendar/", "name" => str_replace("%COURSE", $group->get_attribute("OBJ_DESC"), gettext("Calendar of '%COURSE'"))); if (!($event = steam_factory::get_object($GLOBALS["STEAM"]->get_id(), $path[2]))) { include "bad_link.php"; } else {