Ejemplo n.º 1
0
  $current_view = unserialize($_SESSION['cal_current_view']);
}
if(!($current_view instanceOf CalendarView) && isset($_SESSION['set_cal_default_view'])) {
  $current_view = CalendarView::get_from_id($_SESSION['set_cal_default_view']);
}
if(!($current_view instanceOf CalendarView)) {
  $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'])) {