$params['category_filter'] = $cal_category_filter; /////////////////////////////////////////////////////////////////////////////// // Main Program // /////////////////////////////////////////////////////////////////////////////// if ($popup) { /////////////////////////////////////////////////////////////////////////////// // External calls (main menu not displayed) // /////////////////////////////////////////////////////////////////////////////// if ($action == 'calendar') { // display_head($l_calendar); // display_end(); } elseif ($action == 'ics_export') { dis_calendar_export_handle($params); } exit(); } if ($action == 'search') { /////////////////////////////////////////////////////////////////////////////// include_once('obminclude/lib/Solr/Service.php'); $display['detail'] .= dis_calendar_search_result($params, $current_view); } elseif ($action == 'index') { /////////////////////////////////////////////////////////////////////////////// if (isset($post_fatal_error)) { $_SESSION['obm_message'] = "<script text='language/javascript'>showErrorMessageCustomTimeout(\"".phpStringToJsString($l_post_fatal_error)."\", 10000)</script>"; } $display['detail'] .= dis_calendar_calendar_view($params, $current_view);
$resources = $current_view->get_resources(); if (empty($users) && empty($resources)) { $current_view->add_entity($GLOBALS['token']['entity'],$GLOBALS['token']['entityId']); } $params['category_filter'] = $c_all; /////////////////////////////////////////////////////////////////////////////// // Main Program // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // External calls (main menu not displayed) // /////////////////////////////////////////////////////////////////////////////// if ($action == 'ics_export') { dis_calendar_export_handle($params, $GLOBALS['token']['entity'], $GLOBALS['token']['entityId'], $GLOBALS['token']['type'] == 'private'); # Remove the session to force auth next time (Mantis #3007) $sess->delete(); exit(); } $GLOBALS['js']['vars']['conf']['displayRange'] = 'true'; if ($action == 'search') { /////////////////////////////////////////////////////////////////////////////// include_once('obminclude/lib/Solr/Service.php'); $display['detail'] .= dis_calendar_search_result($params, $current_view); } elseif ($action == 'index') { /////////////////////////////////////////////////////////////////////////////// $display['detail'] .= dis_calendar_calendar_view($params, $current_view);