File tree 5 files changed +8
-6
lines changed
5 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 100
100
*/
101
101
$ list_webcals = array (
102
102
# 'webcal://dimer.tamu.edu/calendars/seminars/Biochem.ics'
103
+ 'webcal://calendar.sxsw.com/[email protected] '
103
104
);
104
105
$ more_webcals ['recur_tests ' ] = array ();
105
106
$ locked_cals = array (
Original file line number Diff line number Diff line change 104
104
$ ifile = @fopen ($ filename , "r " );
105
105
if ($ ifile == FALSE ) exit (error ($ lang ['l_error_cantopen ' ], $ filename ));
106
106
$ nextline = fgets ($ ifile , 1024 );
107
- if (trim ($ nextline ) != 'BEGIN:VCALENDAR ' ) exit (error ($ lang ['l_error_invalidcal ' ], $ filename ));
107
+ # if (trim($nextline) != 'BEGIN:VCALENDAR') exit(error($lang['l_error_invalidcal'], $filename));
108
108
109
109
// Set a value so we can check to make sure $master_array contains valid data
110
110
$ master_array ['-1 ' ] = 'valid cal file ' ;
Original file line number Diff line number Diff line change 29
29
$ uid_counter ++;
30
30
$ uid_valid = false ;
31
31
}elseif (in_array ($ uid , $ uid_list )) {
32
- #$uid .= $uid_counter;
33
- #$uid_counter ++;
32
+ # UID seen before. If sequence is the default, bump it.
33
+ if ( $ sequence == 0 ) $ sequence ++;
34
34
}else {
35
35
$ uid_valid = true ;
36
36
}
321
321
}
322
322
if ($ this_date_tmp == $ end_date_tmp && ($ end_time == '0000 ' )) continue ;
323
323
if (!isset ($ master_array [$ this_date_tmp ][$ time_key ][$ uid ]['sequence ' ]) ||
324
- $ sequence > $ master_array [$ this_date_tmp ][$ time_key ][$ uid ]['sequence ' ]){
324
+ $ sequence > $ master_array [$ this_date_tmp ][$ time_key ][$ uid ]['sequence ' ]
325
+ ){
325
326
$ master_array [$ this_date_tmp ][$ time_key ][$ uid ] = array (
326
327
'event_start ' => $ start_time , # hhmm
327
328
'event_end ' => $ end_time , # hhmm
Original file line number Diff line number Diff line change 2
2
$ ifile = @fopen ($ filename , "r " );
3
3
if ($ ifile == FALSE ) exit (error ($ lang ['l_error_cantopen ' ], $ filename ));
4
4
$ nextline = fgets ($ ifile );
5
- if (trim ($ nextline ) != 'BEGIN:VCALENDAR ' ) exit (error ($ lang ['l_error_invalidcal ' ], $ filename ));
5
+ # if (trim($nextline) != 'BEGIN:VCALENDAR') exit(error($lang['l_error_invalidcal'], $filename));
6
6
7
7
// read file in line by line
8
8
// XXX end line is skipped because of the 1-line readahead
Original file line number Diff line number Diff line change 85
85
</table >
86
86
<!-- switch showbottom off -->
87
87
</center >
88
- { FOOTER}
88
+ { FOOTER}
You can’t perform that action at this time.
0 commit comments