getCalendars();
$query = construct_URL($_SERVER['QUERY_STRING'],
array('etag', 'referer', 'cal'));
if (count($calendars) < 1) {
header('Location: ' . WEB_ROOT . "utils/configure.php");
exit;
}
else if (count($calendars) == 1) {
$options = "?referer=".$query['referer'];
$options .= "&cal=" . current($calendars)->name;
header('Location: ' . $url . $options);
//print "$url$options
";
exit;
}
else {
$cal = current($calendars)->name;
$text = '
'; $text .= '
'; print popup_window($text, $query['referer']."?cal=$cal"); exit; } ?>