From: <cl...@us...> - 2004-02-03 23:04:28
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19290/functions Modified Files: ical_parser.php list_functions.php Log Message: Removed unneeded files, tweeked templates, added legend for multiple calendars. Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.148 retrieving revision 1.149 diff -C2 -d -r1.148 -r1.149 *** ical_parser.php 30 Jan 2004 22:49:01 -0000 1.148 --- ical_parser.php 3 Feb 2004 23:02:11 -0000 1.149 *************** *** 7,11 **** include_once(BASE.'functions/overlapping_events.php'); include_once(BASE.'functions/timezones.php'); - include_once(BASE.'functions/list_functions.php'); $php_started = getmicrotime(); --- 7,10 ---- *************** *** 78,82 **** // Set default calendar name - can be overridden by X-WR-CALNAME $calendar_name = $cal_filename; ! $master_array['calendar_name'] = $calendar_name; // read file in line by line --- 77,81 ---- // Set default calendar name - can be overridden by X-WR-CALNAME $calendar_name = $cal_filename; ! $master_array['calendar_name'] = $calendar_name; // read file in line by line *************** *** 120,123 **** --- 119,124 ---- } elseif ($line == 'END:VEVENT') { + if (!isset($master_array[-3][$calnumber])) $master_array[-3][$calnumber] = $actual_calname; + // Handle DURATION if (!isset($end_unixtime) && isset($the_duration)) { Index: list_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/list_functions.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** list_functions.php 31 Jan 2004 22:59:29 -0000 1.2 --- list_functions.php 3 Feb 2004 23:02:12 -0000 1.3 *************** *** 1,5 **** --- 1,23 ---- <?php + function list_jumps() { + global $second_offset, $lang, $cal; + $today = date('Ymd', strtotime("now + $second_offset seconds")); + $return = '<option value="day.php?cal='.$cal.'&getdate='.$today.'">'.$lang['l_goday'].'</option>'; + $return .= '<option value="week.php?cal='.$cal.'&getdate='.$today.'">'.$lang['l_goweek'].'</option>'; + $return .= '<option value="month.php?cal='.$cal.'&getdate='.$today.'">'.$lang['l_gomonth'].'</option>'; + $return .= '<option value="year.php?cal='.$cal.'&getdate='.$today.'">'.$lang['l_goyear'].'</option>'; + + return $return; + } + function list_calcolors() { + global $template, $master_array; + foreach ($master_array[-3] as $key => $val) { + $return .= '<img src="templates/'.$template.'/images/monthdot_'.$key.'.gif"> '.$val.'<br>'; + } + + return $return; + } function list_months() { *************** *** 24,28 **** function list_years() { ! global $getdate, $this_year, $cal, $dateFormat_month; $year_time = strtotime($getdate); for ($i=0; $i < $num_years; $i++) { --- 42,46 ---- function list_years() { ! global $getdate, $this_year, $cal; $year_time = strtotime($getdate); for ($i=0; $i < $num_years; $i++) { |