$current_view = new CalendarView(array( // default view settings 'cal_view' => 'agenda', 'cal_range' => 'week', 'category' => $c_all, 'users' => array($obm['uid']) )); } if (isset($params['category_filter'])) { $current_view->set_category($params['category_filter']); } if (isset($params['cal_view'])) { $current_view->set_cal_view($params['cal_view']); } if (isset($params['cal_range'])) { $current_view->set_cal_range($params['cal_range'],$params['ndays']); } if (isset($params['group_view']) && ($params['group_view']!=$current_view->get_group())) { $current_view->set_group($params['group_view']); } if ($set_date || !isset($_SESSION['cal_current_view'])) { $current_view->set_date($params['date']); } // Set the GLOBALS for email, checked by ?? if (! isset($GLOBALS['send_notification_mail'])) { $GLOBALS['send_notification_mail'] = isset($params['send_mail']) ? $params['send_mail'] : false; } /////////////////////////////////////////////////////////////////////////////// $extra_css[] = $css_calendar; $extra_js_include[] = 'date.js';