1 ORDER BY `" . hesk_dbEscape($order_by) . "`"); $categories = array(); while ($row = hesk_dbFetchAssoc($rs)) { if (!$_SESSION['isadmin'] && !in_array($row['id'], $_SESSION['categories'])) { continue; } $row['css_style'] = "background: {$row['background_color']};"; $row['background_volatile'] = 'background-volatile'; if ($row['foreground_color'] != 'AUTO') { $row['background_volatile'] = ''; $row['css_style'] .= " color: {$row['foreground_color']};"; if ($row['display_border_outline'] == '1') { $row['css_style'] .= " border: solid 1px {$row['foreground_color']};"; } } $categories[] = $row; } /* Print header */ require_once(HESK_PATH . 'inc/headerAdmin.inc.php'); /* Print main manage users page */ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); ?>

'month', 1 => 'agendaWeek', 2 => 'agendaDay', ); echo $view_array[$_SESSION['default_calendar_view']]; ?>