diff options
author | jwangen <jwangen> | 2002-10-28 06:06:47 +0000 |
---|---|---|
committer | jwangen <jwangen> | 2002-10-28 06:06:47 +0000 |
commit | 547f65ce58b7fe226cc300c8f7516554ef4a4144 (patch) | |
tree | a1338faa5234bd997e744024e0f583619bf7390a /functions | |
parent | fcefcd5ee71f453fb637c92e700dc6c0faed5fb8 (diff) | |
download | phpicalendar-547f65ce58b7fe226cc300c8f7516554ef4a4144.tar.gz phpicalendar-547f65ce58b7fe226cc300c8f7516554ef4a4144.tar.bz2 phpicalendar-547f65ce58b7fe226cc300c8f7516554ef4a4144.zip |
took out custom search range, not needed
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index f06e982..513b2a1 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -72,15 +72,7 @@ if ($parse_file) { // using $uid to set specific points in array, if $uid is not in the // .ics file, we need to have some unique place in the array $uid_counter = 0; - - // for custom search ranges of recurring events - $search_range = false; - if (isset($HTTP_GET_VARS['start']) && isset($HTTP_GET_VARS['end']) && $HTTP_GET_VARS['start'] != '' && $HTTP_GET_VARS['end'] != '') { - $search_range_start = strtotime($HTTP_GET_VARS['start']); - $search_range_end = strtotime($HTTP_GET_VARS['end']); - $search_range = true; - } - + // read file in line by line // XXX end line is skipped because of the 1-line readahead while (!feof($ifile)) { @@ -226,13 +218,6 @@ if ($parse_file) { if ($save_parsed_cals == 'yes' && !$is_webcal) { $start_range_time = strtotime($this_year.'-01-01 -1 month -2 days'); $end_range_time = strtotime($this_year.'-12-31 +1 month +2 days'); - if ($search_range) { - if ($start_range_time > $search_range_start) $start_range_time = $search_range_start; - if ($end_range_time < $search_range_end) $end_range_time = $search_range_end; - } - } elseif ($search_range) { - $start_range_time = $search_range_start; - $end_range_time = $search_range_end; } else { $start_range_time = strtotime('-1 month -2 day', $this_month_start_time); $end_range_time = strtotime('+2 month +2 day', $this_month_start_time); |