"$cookie_language", "cookie_calendar" => "$cookie_calendar", "cookie_view" => "$cookie_view", "cookie_startday" => "$cookie_startday", "cookie_style" => "$cookie_style", "cookie_time" => "$cookie_time"); $the_cookie = serialize($the_cookie); if ($cookie_unset) { setcookie("phpicalendar","$the_cookie",time()-(60*60*24*7) ,"/","$cookie_uri",0); } else { setcookie("phpicalendar","$the_cookie",time()+(60*60*24*7*12*10) ,"/","$cookie_uri",0); } $HTTP_COOKIE_VARS['phpicalendar'] = $the_cookie; } if (isset($HTTP_COOKIE_VARS['phpicalendar'])) { $phpicalendar = unserialize(stripslashes($HTTP_COOKIE_VARS['phpicalendar'])); $cookie_language = $phpicalendar['cookie_language']; $cookie_calendar = $phpicalendar['cookie_calendar']; $cookie_view = $phpicalendar['cookie_view']; $cookie_style = $phpicalendar['cookie_style']; $cookie_startday = $phpicalendar['cookie_startday']; $cookie_time = $phpicalendar['cookie_time']; if ($cookie_unset) { unset ($cookie_language, $cookie_calendar, $cookie_view, $cookie_style,$cookie_startday); } } #echo "$cookie_uri"; #print_r(unserialize($HTTP_COOKIE_VARS['phpicalendar'])); #print_r($phpicalendar); if ((!isset($HTTP_COOKIE_VARS['phpicalendar'])) || ($cookie_unset)) { # No cookie set -> use defaults from config file. $cookie_language = ucfirst($language); $cookie_calendar = $default_cal; $cookie_view = $default_view; $cookie_style = $style_sheet; $cookie_startday = $week_start_day; $cookie_time = $day_start; } include (BASE.'includes/header.inc.php'); ?>
 \n"; $dir_handle = @opendir(BASE.'languages/'); $tmp_pref_language = urlencode(ucfirst($language)); while ($file = readdir($dir_handle)) { if (substr($file, -8) == ".inc.php") { $language_tmp = urlencode(ucfirst(substr($file, 0, -8))); if ($language_tmp == $cookie_language) { print "\n"; } else { print "\n"; } } } closedir($dir_handle); print "\n"; ?>
 \n"; $dir_handle = @opendir($calendar_path) or die(error(sprintf($error_path_lang, $calendar_path), $cal_filename)); $filelist = array(); while ($file = readdir($dir_handle)) { if (preg_match("/^[^.].+\.ics$/", $file)) { array_push($filelist, $file); } } natcasesort($filelist); foreach ($filelist as $file) { $cal_filename_tmp = substr($file,0,-4); $cal_tmp = urlencode($cal_filename_tmp); $cal_displayname_tmp = str_replace("32", " ", $cal_filename_tmp); if (!in_array($cal_filename_tmp, $blacklisted_cals)) { if ($cal_tmp == $cookie_calendar) { print "\n"; } else { print "\n"; } } } // add option to open all (non-web) calenders together // Todo: add $all_calenders_combined_lang (plural) in the language-specific files and use it here if ($cookie_calendar == $ALL_CALENDARS_COMBINED) { print "\n"; } else { print "\n"; } foreach($list_webcals as $cal_tmp) { if ($cal_tmp != '') { $cal_displayname_tmp = basename($cal_tmp); $cal_displayname_tmp = str_replace("32", " ", $cal_displayname_tmp); $cal_displayname_tmp = substr($cal_displayname_tmp,0,-4); $cal_encoded_tmp = urlencode($cal_tmp); if ($cal_tmp == $cal_httpPrefix || $cal_tmp == $cal_webcalPrefix) { print "\n"; } else { print "\n"; } } } closedir($dir_handle); print "\n"; ?>
 \n"; print "\n"; print "\n"; print "\n"; //print "\n"; print "\n"; ?>
 \n"; for ($i = 500; $i <= 900; $i += 100) { $s = sprintf("%04d", $i); print "\n"; } print "\n"; ?>
 \n"; $i=0; foreach ($daysofweek_lang as $daysofweek) { if ($startdays[$i] == "$cookie_startday") { print "\n"; } else { print "\n"; } $i++; } print "\n"; ?>
 \n"; $dir_handle = @opendir(BASE.'styles/'); while ($file = readdir($dir_handle)) { if (($file != ".") && ($file != "..") && ($file != "CVS")) { if (!is_file($file)) { $file_disp = ucfirst($file); if ($file == "$cookie_style") { print "\n"; } else { print "\n"; } } } } closedir($dir_handle); print "\n"; ?>
   ">