You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(5) |
Feb
(25) |
Mar
(18) |
Apr
|
May
(26) |
Jun
(14) |
Jul
(1) |
Aug
(5) |
Sep
(82) |
Oct
(3) |
Nov
(130) |
Dec
(9) |
2004 |
Jan
(4) |
Feb
(62) |
Mar
|
Apr
(3) |
May
(100) |
Jun
|
Jul
(6) |
Aug
(49) |
Sep
(33) |
Oct
(47) |
Nov
(2) |
Dec
(1) |
2005 |
Jan
|
Feb
(4) |
Mar
(1) |
Apr
(8) |
May
(17) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
(26) |
Oct
(18) |
Nov
(37) |
Dec
(14) |
2006 |
Jan
(2) |
Feb
(18) |
Mar
(34) |
Apr
(52) |
May
(7) |
Jun
(3) |
Jul
(2) |
Aug
(10) |
Sep
|
Oct
|
Nov
(18) |
Dec
(4) |
2007 |
Jan
|
Feb
(7) |
Mar
(7) |
Apr
(6) |
May
(52) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(15) |
Nov
|
Dec
(1) |
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(250) |
2009 |
Jan
(35) |
Feb
(45) |
Mar
|
Apr
(4) |
May
(35) |
Jun
(13) |
Jul
(49) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(11) |
2010 |
Jan
(3) |
Feb
(30) |
Mar
|
Apr
(35) |
May
(12) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
From: <par...@us...> - 2010-04-15 20:36:23
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv21961/functions Modified Files: draw_functions.php Log Message: Fix overlapping events, Bug #2968512 Index: draw_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/draw_functions.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** draw_functions.php 8 Jul 2009 18:28:13 -0000 1.10 --- draw_functions.php 15 Apr 2010 20:36:14 -0000 1.11 *************** *** 32,36 **** } } ! $draw_len = ($end_h * 60 + $end_min) - ($sta_h * 60 + $sta_min); return array ("draw_start" => ($sta_h . $sta_min), "draw_end" => ($end_h . $end_min), "draw_length" => $draw_len); --- 32,41 ---- } } ! $sta = ($sta_h * 60 + $sta_min); ! $end = ($end_h * 60 + $end_min); ! if ($sta < $end) ! $draw_len = $end - $sta; ! else ! $draw_len = $sta - $end; return array ("draw_start" => ($sta_h . $sta_min), "draw_end" => ($end_h . $end_min), "draw_length" => $draw_len); |
From: <par...@us...> - 2010-04-15 19:40:02
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv3184/functions Modified Files: ical_parser.php Log Message: Fix undefined index warning Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.259 retrieving revision 1.260 diff -C2 -d -r1.259 -r1.260 *** ical_parser.php 15 Apr 2010 17:53:18 -0000 1.259 --- ical_parser.php 15 Apr 2010 19:39:54 -0000 1.260 *************** *** 64,68 **** $parse_file = false; $calendar_name = $master_array['calendar_name']; ! $calendar_tz = $master_array['calendar_tz']; } } --- 64,69 ---- $parse_file = false; $calendar_name = $master_array['calendar_name']; ! if (isset($master_array['calendar_tz'])) ! $calendar_tz = $master_array['calendar_tz']; } } *************** *** 95,99 **** $parse_file = false; $calendar_name = $master_array['calendar_name']; ! $calendar_tz = $master_array['calendar_tz']; } } --- 96,101 ---- $parse_file = false; $calendar_name = $master_array['calendar_name']; ! if (isset($master_array['calendar_tz'])) ! $calendar_tz = $master_array['calendar_tz']; } } |
From: <par...@us...> - 2010-04-15 19:40:01
|
Update of /cvsroot/phpicalendar/phpicalendar In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv3184 Modified Files: README Log Message: Fix undefined index warning Index: README =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/README,v retrieving revision 1.121 retrieving revision 1.122 diff -C2 -d -r1.121 -r1.122 *** README 9 Feb 2010 15:40:18 -0000 1.121 --- README 15 Apr 2010 19:39:53 -0000 1.122 *************** *** 94,97 **** --- 94,99 ---- Bug fixes: Webcal caching now works like local caching with save_parsed_cals + Performance improvements with remote calendars; reducing the number + of file reads/HTTP requests made for each calendar Print view missing some events Setting time format in preferences page *************** *** 105,110 **** --- 107,114 ---- Better handling of URLs and email addresses in event descriptions Navigation forms breaking PHP transparent SID + Fix strange characters displayed in Locations with % characters New features: Event information displayed with Nice Titles + Fixes line breaks and some HTML in event tooltips Attendee/organizer parsing and email address hyperlinking Better display of tabs/line breaks in calendar events |
From: <par...@us...> - 2010-04-15 18:47:27
|
Update of /cvsroot/phpicalendar/phpicalendar/functions/parse In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv21856/functions/parse Removed Files: parse_tzs.php Log Message: Remove unused parse_tzs.php (since the previous performance improvement patch) --- parse_tzs.php DELETED --- |
From: <par...@us...> - 2010-04-15 18:44:00
|
Update of /cvsroot/phpicalendar/phpicalendar In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20867 Modified Files: day.php month.php week.php year.php Log Message: Another additional performance improvement: Call availableCalendars() only once Index: day.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/day.php,v retrieving revision 1.139 retrieving revision 1.140 diff -C2 -d -r1.139 -r1.140 *** day.php 22 Jun 2009 14:31:03 -0000 1.139 --- day.php 15 Apr 2010 18:43:53 -0000 1.140 *************** *** 37,41 **** // select for calendars ! $list_icals = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED)); $list_years = list_years(); $list_months = list_months(); --- 37,42 ---- // select for calendars ! $available = availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED); ! $list_icals = display_ical_list($available); $list_years = list_years(); $list_months = list_months(); *************** *** 43,47 **** $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); ! $list_icals_pick = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED), TRUE); // login/logout --- 44,48 ---- $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); ! $list_icals_pick = display_ical_list($available, TRUE); // login/logout Index: month.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/month.php,v retrieving revision 1.154 retrieving revision 1.155 diff -C2 -d -r1.154 -r1.155 *** month.php 7 Jul 2009 14:48:28 -0000 1.154 --- month.php 15 Apr 2010 18:43:53 -0000 1.155 *************** *** 47,51 **** // select for calendars ! $list_icals = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED)); $list_years = list_years(); $list_months = list_months(); --- 47,52 ---- // select for calendars ! $available = availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED); ! $list_icals = display_ical_list($available); $list_years = list_years(); $list_months = list_months(); *************** *** 53,57 **** $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); ! $list_icals_pick = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED), TRUE); // login/logout --- 54,58 ---- $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); ! $list_icals_pick = display_ical_list($available, TRUE); // login/logout Index: week.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/week.php,v retrieving revision 1.139 retrieving revision 1.140 diff -C2 -d -r1.139 -r1.140 *** week.php 22 Jun 2009 14:31:03 -0000 1.139 --- week.php 15 Apr 2010 18:43:53 -0000 1.140 *************** *** 38,42 **** // select for calendars ! $list_icals = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED)); $list_years = list_years(); $list_months = list_months(); --- 38,43 ---- // select for calendars ! $available = availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED); ! $list_icals = display_ical_list($available); $list_years = list_years(); $list_months = list_months(); *************** *** 44,48 **** $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); ! $list_icals_pick = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED), TRUE); // login/logout --- 45,49 ---- $list_jumps = list_jumps(); $list_calcolors = list_calcolors(); ! $list_icals_pick = display_ical_list($available, TRUE); // login/logout Index: year.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/year.php,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** year.php 7 Jul 2009 14:48:28 -0000 1.53 --- year.php 15 Apr 2010 18:43:53 -0000 1.54 *************** *** 24,28 **** // select for calendars ! $list_icals = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED)); $list_years = list_years(); $list_months = list_months(); --- 24,29 ---- // select for calendars ! $available = availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED); ! $list_icals = display_ical_list($available); $list_years = list_years(); $list_months = list_months(); *************** *** 32,36 **** <img src="templates/'.$template.'/images/event_dot.gif" alt=" " width="11" height="10" border="0" />'.$lang['l_event']."<br>"; ; ! $list_icals_pick = display_ical_list(availableCalendars($username, $password, $phpiCal_config->ALL_CALENDARS_COMBINED), TRUE); // login/logout --- 33,37 ---- <img src="templates/'.$template.'/images/event_dot.gif" alt=" " width="11" height="10" border="0" />'.$lang['l_event']."<br>"; ; ! $list_icals_pick = display_ical_list($available, TRUE); // login/logout |
From: <par...@us...> - 2010-04-15 18:39:34
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv19694/functions Modified Files: calendar_functions.php Log Message: Additional performance improvement: Don't re-parse ICS files to get the calendar name Index: calendar_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/calendar_functions.php,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** calendar_functions.php 7 Jul 2009 14:48:29 -0000 1.39 --- calendar_functions.php 15 Apr 2010 18:39:26 -0000 1.40 *************** *** 86,90 **** // we have to append '.ics' to the passed in calendar names. foreach ($cal_filename_local as $filename) { ! array_push($files, "$search_path/$filename".".ics"); } } --- 86,90 ---- // we have to append '.ics' to the passed in calendar names. foreach ($cal_filename_local as $filename) { ! array_push($files, "$search_path/$filename.ics"); } } *************** *** 176,180 **** // At this point, just pull the name off the file. ! return str_replace(".ics", '', basename($cal_path)); } --- 176,186 ---- // At this point, just pull the name off the file. ! $name = str_replace(".ics", '', basename($cal_path)); ! if ((substr($cal_path, 0, 7) == 'http://') || ! (substr($cal_path, 0, 8) == 'https://') || ! (substr($cal_path, 0, 9) == 'webcal://')) { ! $name = urldecode($name); ! } ! return $name; } *************** *** 185,189 **** // $cals = The calendars (entire path, e.g. from availableCalendars). function display_ical_list($cals, $pick=FALSE) { ! global $cal, $current_view, $getdate, $lang, $calendar_lang, $all_cal_comb_lang, $cal_filelist, $cal_displaynames, $list_webcals, $phpiCal_config; // Print each calendar option. $return = ''; --- 191,195 ---- // $cals = The calendars (entire path, e.g. from availableCalendars). function display_ical_list($cals, $pick=FALSE) { ! global $cal, $current_view, $getdate, $lang, $calendar_lang, $all_cal_comb_lang, $cal_filelist, $cal_displaynames, $list_webcals, $phpiCal_config, $master_array; // Print each calendar option. $return = ''; *************** *** 195,210 **** // Format the calendar path for display. // ! // Only display the calendar name, replace all instances of "32" with " ", ! // and remove the .ics suffix. ! $cal_displayname_tmp = getCalendarName($cal_tmp); ! #$cal_displayname_tmp = str_replace("32", " ", $cal_displayname_tmp); ! #overwrite the display name if we already have a real name ! if (is_numeric(array_search($cal_tmp, $cal_filelist))){ ! $cal_displayname_tmp = $cal_displaynames[array_search($cal_tmp,$cal_filelist)]; ! }else{ # pull the name from the $cal_tmp file ! $cal_tmp2 = str_replace('webcal://','http://',$cal_tmp); ! ! $ifile = @fopen($cal_tmp2, "r"); if ($ifile == FALSE) exit(error($lang['l_error_cantopen'], $cal_tmp)); while (!feof($ifile)) { --- 201,226 ---- // Format the calendar path for display. // ! $cal_displayname_tmp = ''; ! $search_idx = array_search($cal_tmp, $cal_filelist); ! if (is_numeric($search_idx)) { ! $cal_displayname_tmp = $cal_displaynames[$search_idx]; ! } ! else if ((substr($cal_tmp, 0, 7) == 'http://') || ! (substr($cal_tmp, 0, 8) == 'https://') || ! (substr($cal_tmp, 0, 9) == 'webcal://')) { ! $cal_tmp2 = str_replace('webcal://', 'http://', $cal_tmp); ! $cal_tmp2 = str_replace('https://', 'http://', $cal_tmp2); ! $num = 1; ! foreach ($master_array[-4] as $master_cal) { ! if ($master_cal['filename'] == $cal_tmp2) { ! $cal_displayname_tmp = $master_array[-3][$num]; ! break; ! } ! $num++; ! } ! } ! else { # pull the name from the $cal_tmp file ! $ifile = @fopen($cal_tmp, 'r'); if ($ifile == FALSE) exit(error($lang['l_error_cantopen'], $cal_tmp)); while (!feof($ifile)) { *************** *** 226,230 **** if ($line == "BEGIN:VTIMEZONE" ||$line == "BEGIN:VEVENT") break; } ! } --- 242,252 ---- if ($line == "BEGIN:VTIMEZONE" ||$line == "BEGIN:VEVENT") break; } ! @fclose($ifile); ! } ! if (empty($cal_displayname_tmp)) { ! // Only display the calendar name, replace all instances of "32" with " ", ! // and remove the .ics suffix. ! $cal_displayname_tmp = getCalendarName($cal_tmp); ! #$cal_displayname_tmp = str_replace('32', ' ', $cal_displayname_tmp); } |
From: <par...@us...> - 2010-04-15 17:53:26
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8424/functions Modified Files: date_functions.php ical_parser.php Log Message: Performance improvements (especially for remote calendars) and some style cleanups Index: date_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/date_functions.php,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** date_functions.php 13 Apr 2010 15:45:47 -0000 1.58 --- date_functions.php 15 Apr 2010 17:53:18 -0000 1.59 *************** *** 5,30 **** ! // get remote file last modification date (returns unix timestamp) ! function remote_filemtime($url) { ! $fp = fopen($url, 'r'); ! if (!$fp) return 0; ! $metadata = stream_get_meta_data($fp); ! fclose($fp); ! $unixtime = 0; ! foreach ($metadata['wrapper_data'] as $response) { ! // case: redirection ! // WARNING: does not handle relative redirection ! if (substr(strtolower($response), 0, 10) == 'location: ') { ! return GetRemoteLastModified(substr($response, 10)); ! } ! // case: last-modified ! else if (substr(strtolower($response), 0, 15) == 'last-modified: ') { ! $unixtime = strtotime(substr($response, 15)); ! break; } } ! return $unixtime; } --- 5,103 ---- ! /* ! * Get remote file last modification date (returns unix timestamp) ! * Supports HTTPS, HTTP basic authentication, and location: redirects ! * FIXME: Basic auth should not be sent over unencrypted connections ! * unless an HTTP 401 Unauthorized is returned ! */ ! function remote_filemtime($url, $recurse = 0) { ! // We hate infinite loops! ! if (++$recurse > 5) return 0; ! ! // Caching the remote mtime is a Really Good Idea. ! static $remote_files = array(); ! if (isset($remote_files[$url])) return $remote_files[$url]; ! $uri = parse_url($url); ! $uri['proto'] = ( ! (isset($uri['proto']) && ($uri['proto'] == 'https')) ? ! 'ssl://' : ! '' ! ); ! $uri['port'] = isset($uri['port']) ? $uri['port'] : 80; ! $path = ( ! (isset($uri['path']) || isset($uri['query'])) ? ! (@$uri['path'] . @$uri['query']) : ! '/' ! ); ! $auth = ( ! (isset($uri['user']) || isset($uri['pass'])) ? ! ('Authentication: Basic ' . base64_encode(@$uri['user'] . ':' . @$uri['pass']) . "\r\n") : ! '' ! ); ! ! $handle = @fsockopen($uri['proto'] . $uri['host'], $uri['port']); ! if (!$handle) { ! $remote_files[$url] = 0; ! return 0; ! } ! ! fputs($handle, "HEAD {$path} HTTP/1.1\r\nHost: {$uri['host']}\r\n{$auth}Connection: close\r\n\r\n"); ! $headers = array(); ! while (!feof($handle)) { ! $line = trim(fgets($handle, 1024)); ! if (empty($line)) break; ! $headers[] = $line; ! } ! fclose($handle); ! ! $result = 0; ! array_shift($headers); ! foreach ($headers as $header) { ! list($key, $value) = explode(':', $header, 2); ! $value = trim($value); ! ! switch (strtolower(trim($key))) { ! case 'location': // Redirect ! $result = remote_filemtime(resolve_path($url, $value), $recurse); ! break; ! ! case 'last-modified': // Got it! ! $result = strtotime($value); ! break; } } ! $remote_files[$url] = $result; ! return $result; ! } ! ! /* ! * Resolve relative paths ! * Utility function for remote_filemtime() ! */ ! function resolve_path($url, $rel_path) { ! $uri = parse_url($url); ! ! $uri['proto'] = (isset($uri['proto']) ? $uri['proto'] : 'http://'); ! $uri['port'] = (isset($uri['port']) ? (':' . $uri['port']) : ''); ! $auth = ( ! (isset($uri['user']) || isset($uri['pass'])) ? ! (urlencode(@$uri['user']) . ':' . urlencode(@$uri['pass']) . '@') : ! '' ! ); ! ! if (parse_url($rel_path) === false) { ! // Path is relative to this domain ! $rel_path = str_replace('\\', '/', $rel_path); ! ! if ($rel_path{0} == '/') ! return $uri['proto'] . '://' . $auth . $uri['host'] . $uri['port'] . $rel_path; ! ! return $uri['proto'] . '://' . $auth . $uri['host'] . $uri['port'] . $uri['path'] . '/' . $rel_path; ! } ! ! // Path is absolute ! return $rel_path; } *************** *** 236,243 **** if (ereg('<([[:alpha:]]+://)([^<>[:space:]]+)>',$event_text,$matches)) { $full_event_text = $matches[1] . $matches[2]; ! $event_text = $matches[2]; } else { $full_event_text = $event_text; ! $event_text = strip_tags($event_text, '<b><i><u><img>'); } --- 309,316 ---- if (ereg('<([[:alpha:]]+://)([^<>[:space:]]+)>',$event_text,$matches)) { $full_event_text = $matches[1] . $matches[2]; ! $event_text = $matches[2]; } else { $full_event_text = $event_text; ! $event_text = strip_tags($event_text, '<b><i><u><img>'); } Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.258 retrieving revision 1.259 diff -C2 -d -r1.258 -r1.259 *** ical_parser.php 13 Apr 2010 20:13:51 -0000 1.258 --- ical_parser.php 15 Apr 2010 17:53:18 -0000 1.259 *************** *** 9,15 **** // reading the file if it's allowed $parse_file = true; ! if ($phpiCal_config->save_parsed_cals == 'yes') { if (sizeof ($cal_filelist) > 1) { $parsedcal = $phpiCal_config->tmp_dir.'/parsedcal-'.urlencode($cpath.'::'.$phpiCal_config->ALL_CALENDARS_COMBINED).'-'.$this_year; if (file_exists($parsedcal)) { --- 9,17 ---- // reading the file if it's allowed + $realcal_mtime = time(); $parse_file = true; ! if ($phpiCal_config->save_parsed_cals == 'yes') { if (sizeof ($cal_filelist) > 1) { + // This is a special case for "all calendars combined" $parsedcal = $phpiCal_config->tmp_dir.'/parsedcal-'.urlencode($cpath.'::'.$phpiCal_config->ALL_CALENDARS_COMBINED).'-'.$this_year; if (file_exists($parsedcal)) { *************** *** 18,43 **** fclose($fd); $master_array = unserialize($contents); - $z=1; $y=0; if (sizeof($master_array['-4']) == (sizeof($cal_filelist))) { foreach ($master_array['-4'] as $temp_array) { ! $mtime = $master_array['-4'][$z]['mtime']; ! $fname = $master_array['-4'][$z]['filename']; ! $wcalc = $master_array['-4'][$z]['webcal']; ! ! if ($wcalc == 'no') $realcal_mtime = filemtime($fname); ! else $realcal_mtime = remote_filemtime($fname); ! if ($mtime == $realcal_mtime) { $y++; } - $z++; } foreach ($master_array['-3'] as $temp_array) { if (isset($temp_array) && $temp_array !='') $caldisplaynames[] = $temp_array; } if ($y == sizeof($cal_filelist)) { if ($master_array['-1'] == 'valid cal file') { $parse_file = false; $calendar_name = $master_array['calendar_name']; --- 20,65 ---- fclose($fd); $master_array = unserialize($contents); $y=0; + // Check the calendars' last-modified time to determine if any need to be re-parsed if (sizeof($master_array['-4']) == (sizeof($cal_filelist))) { foreach ($master_array['-4'] as $temp_array) { ! $mtime = $temp_array['mtime']; ! $fname = $temp_array['filename']; ! $wcalc = $temp_array['webcal']; ! ! if ($wcalc == 'no') { ! /* ! * Getting local file mtime is "fairly cheap" ! * (disk I/O is expensive, but *much* cheaper than going to the network for remote files) ! */ ! $realcal_mtime = filemtime($fname); ! } ! else if ((time() - $mtime) >= $phpiCal_config->webcal_hours * 60 * 60) { ! /* ! * We limit remote file mtime checks based on the magic webcal_hours config variable ! * This allows highly volatile web calendars to be cached for a period of time before ! * downloading them again ! */ ! $realcal_mtime = remote_filemtime($fname); ! } ! else { ! // This is our fallback, for the case where webcal_hours is taking effect ! $realcal_mtime = $mtime; ! } ! // If this calendar is up-to-date, the $y magic number will be incremented... ! if ($mtime >= $realcal_mtime) { $y++; } } + foreach ($master_array['-3'] as $temp_array) { if (isset($temp_array) && $temp_array !='') $caldisplaynames[] = $temp_array; } + // And the $y magic number is used here to determine if all calendars are up-to-date if ($y == sizeof($cal_filelist)) { if ($master_array['-1'] == 'valid cal file') { + // At this point, all calendars are up-to-date, so we can simply used the pre-parsed data $parse_file = false; $calendar_name = $master_array['calendar_name']; *************** *** 47,64 **** } } ! if ($parse_file == true) unset($master_array); } else { foreach ($cal_filelist as $filename) { - if (substr($filename, 0, 7) == 'http://' || substr($filename, 0, 8) == 'https://' || substr($filename, 0, 9) == 'webcal://') { - $realcal_mtime = remote_filemtime($filename); - } - else { - $realcal_mtime = filemtime($filename); - } - $parsedcal = $phpiCal_config->tmp_dir.'/parsedcal-'.urlencode($cpath.'::'.$cal_filename).'-'.$this_year; if (file_exists($parsedcal)) { $parsedcal_mtime = filemtime($parsedcal); ! if ($realcal_mtime == $parsedcal_mtime) { $fd = fopen($parsedcal, 'r'); $contents = fread($fd, filesize($parsedcal)); --- 69,91 ---- } } ! if ($parse_file == true) { ! // We need to re-parse at least one calendar, so unset master_array ! unset($master_array); ! } } else { foreach ($cal_filelist as $filename) { $parsedcal = $phpiCal_config->tmp_dir.'/parsedcal-'.urlencode($cpath.'::'.$cal_filename).'-'.$this_year; if (file_exists($parsedcal)) { $parsedcal_mtime = filemtime($parsedcal); ! ! if (((time() - $parsedcal_mtime) >= $phpiCal_config->webcal_hours * 60 * 60) && ! (substr($filename, 0, 7) == 'http://' || substr($filename, 0, 8) == 'https://' || substr($filename, 0, 9) == 'webcal://')) { ! $realcal_mtime = remote_filemtime($filename); ! } ! else { ! $realcal_mtime = $parsedcal_mtime; ! } ! ! if ($parsedcal_mtime >= $realcal_mtime) { $fd = fopen($parsedcal, 'r'); $contents = fread($fd, filesize($parsedcal)); *************** *** 96,108 **** $filename = $cal_httpPrefix; $master_array['-4'][$calnumber]['webcal'] = 'yes'; ! $actual_mtime = @remote_filemtime($filename); } else { ! $actual_mtime = @filemtime($filename); } ! include(BASE.'functions/parse/parse_tzs.php'); ! $ifile = @fopen($filename, "r"); if ($ifile == FALSE) exit(error($lang['l_error_cantopen'], $filename)); $nextline = fgets($ifile, 1024); --- 123,136 ---- $filename = $cal_httpPrefix; $master_array['-4'][$calnumber]['webcal'] = 'yes'; ! $actual_mtime = remote_filemtime($filename); } else { ! $actual_mtime = filemtime($filename); } ! $is_std = false; ! $is_daylight = false; ! $ifile = @fopen($filename, 'r'); if ($ifile == FALSE) exit(error($lang['l_error_cantopen'], $filename)); $nextline = fgets($ifile, 1024); *************** *** 121,135 **** $line = $nextline; $nextline = fgets($ifile, 1024); ! $nextline = ereg_replace("[\r\n]", "", $nextline); #handle continuation lines that start with either a space or a tab (MS Outlook) ! while (isset($nextline{0}) && ($nextline{0} == " " || $nextline{0} == "\t")) { $line = $line . substr($nextline, 1); $nextline = fgets($ifile, 1024); ! $nextline = ereg_replace("[\r\n]", "", $nextline); } ! $line = str_replace('\n',"\n",$line); ! $line = str_replace('\t',"\t",$line); $line = trim(stripslashes($line)); switch ($line) { case 'BEGIN:VFREEBUSY': case 'BEGIN:VEVENT': --- 149,201 ---- $line = $nextline; $nextline = fgets($ifile, 1024); ! $nextline = ereg_replace("[\r\n]", '', $nextline); #handle continuation lines that start with either a space or a tab (MS Outlook) ! while (isset($nextline{0}) && ($nextline{0} == ' ' || $nextline{0} == "\t")) { $line = $line . substr($nextline, 1); $nextline = fgets($ifile, 1024); ! $nextline = ereg_replace("[\r\n]", '', $nextline); } ! $line = str_replace('\n', "\n", $line); ! $line = str_replace('\t', "\t", $line); $line = trim(stripslashes($line)); switch ($line) { + // Begin VTIMEZONE Parsing + // + case 'BEGIN:VTIMEZONE': + unset($tz_name, $offset_from, $offset_to, $tz_id); + break; + case 'BEGIN:STANDARD': + unset ($offset_s); + $is_std = true; + $is_daylight = false; + break; + case 'END:STANDARD': + $offset_s = $offset_to; + $is_std = false; + break; + case 'BEGIN:DAYLIGHT': + unset ($offset_d); + $is_daylight = true; + $is_std = false; + break; + case 'END:DAYLIGHT': + $offset_d = $offset_to; + $is_daylight = false; + break; + case 'END:VTIMEZONE': + if (!isset($offset_d) && isset($offset_s)) $offset_d = $offset_s; + $tz_array[$tz_id] = array( + 0 => @$offset_s, + 1 => @$offset_d, + 'dt_start' => @$begin_daylight, + 'st_start' => @$begin_std, + 'st_name' => @$st_name, + 'dt_name' => @$dt_name + + ); #echo "<pre>$tz_id"; print_r($tz_array[$tz_id]);echo"</pre>"; + break; + + // Begin VFREEBUSY/VEVENT Parsing + // case 'BEGIN:VFREEBUSY': case 'BEGIN:VEVENT': *************** *** 176,181 **** case 'END:VFREEBUSY': case 'END:VEVENT': ! include BASE."functions/parse/end_vevent.php"; break; case 'END:VTODO': if (($vtodo_priority == '') && ($status == 'COMPLETED')) { --- 242,250 ---- case 'END:VFREEBUSY': case 'END:VEVENT': ! include BASE.'functions/parse/end_vevent.php'; break; + + // Begin VTODO Parsing + // case 'END:VTODO': if (($vtodo_priority == '') && ($status == 'COMPLETED')) { *************** *** 234,237 **** --- 303,309 ---- $description = ''; break; + + // Begin VALARM Parsing + // case 'BEGIN:VALARM': $valarm_set = TRUE; *************** *** 252,256 **** switch ($property) { ! // Start VTODO Parsing // --- 324,345 ---- switch ($property) { ! // Start TZ Parsing ! // ! case 'TZID': ! $tz_id = $data; ! break; ! case 'TZOFFSETFROM': ! $offset_from = $data; ! break; ! case 'TZOFFSETTO': ! $offset_to = $data; ! break; ! case 'TZNAME': ! if ($is_std) $st_name = $data; ! if ($is_daylight) $dt_name = $data; ! break; ! // ! // End TZ Parsing ! // Start VTODO Parsing // *************** *** 287,291 **** break; // ! // End VTODO Parsing case 'DTSTART': --- 376,380 ---- break; // ! // End VTODO Parsing case 'DTSTART': *************** *** 293,303 **** $start_unixtime = $datetime[0]; $start_date = $datetime[1]; ! $start_time = $datetime[2]; ! $allday_start = $datetime[3]; ! $start_tz = $datetime[4]; ! preg_match ('/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{0,2})([0-9]{0,2})/', $data, $regs); ! $vevent_start_date = $regs[1] . $regs[2] . $regs[3]; ! $day_offset = dayCompare($start_date, $vevent_start_date); ! #echo date("Ymd Hi", $start_unixtime)." $start_date $start_time $vevent_start_date $day_offset<br>"; break; --- 382,399 ---- $start_unixtime = $datetime[0]; $start_date = $datetime[1]; ! if ($is_std || $is_daylight) { ! $year = substr($start_date, 0, 4); ! if ($is_std) $begin_std[$year] = $data; ! if ($is_daylight) $begin_daylight[$year] = $data; ! } ! else { ! $start_time = $datetime[2]; ! $allday_start = $datetime[3]; ! $start_tz = $datetime[4]; ! preg_match ('/([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{0,2})([0-9]{0,2})/', $data, $regs); ! $vevent_start_date = $regs[1] . $regs[2] . $regs[3]; ! $day_offset = dayCompare($start_date, $vevent_start_date); ! #echo date("Ymd Hi", $start_unixtime)." $start_date $start_time $vevent_start_date $day_offset<br>"; ! } break; *************** *** 311,315 **** case 'EXDATE': ! $data = split(",", $data); foreach ($data as $exdata) { $exdata = str_replace('T', '', $exdata); --- 407,411 ---- case 'EXDATE': ! $data = split(',', $data); foreach ($data as $exdata) { $exdata = str_replace('T', '', $exdata); *************** *** 425,433 **** break; case 'ATTENDEE': ! $email = preg_match("/mailto:(.*)/i", $data, $matches1); ! $name = preg_match("/CN=([^;]*)/i", $field, $matches2); ! $rsvp = preg_match("/RSVP=([^;]*)/i", $field, $matches3); ! $partstat = preg_match("/PARTSTAT=([^;]*)/i", $field, $matches4); ! $role = preg_match("/ROLE=([^;]*)/i", $field, $matches5); $email = ($email ? $matches1[1] : ''); --- 521,529 ---- break; case 'ATTENDEE': ! $email = preg_match('/mailto:(.*)/i', $data, $matches1); ! $name = preg_match('/CN=([^;]*)/i', $field, $matches2); ! $rsvp = preg_match('/RSVP=([^;]*)/i', $field, $matches3); ! $partstat = preg_match('/PARTSTAT=([^;]*)/i', $field, $matches4); ! $role = preg_match('/ROLE=([^;]*)/i', $field, $matches5); $email = ($email ? $matches1[1] : ''); *************** *** 448,453 **** break; case 'ORGANIZER': ! $email = preg_match("/mailto:(.*)/i", $data, $matches1); ! $name = preg_match("/CN=([^;]*)/i", $field, $matches2); $email = ($email ? $matches1[1] : ''); --- 544,549 ---- break; case 'ORGANIZER': ! $email = preg_match('/mailto:(.*)/i', $data, $matches1); ! $name = preg_match('/CN=([^;]*)/i', $field, $matches2); $email = ($email ? $matches1[1] : ''); |
From: <par...@us...> - 2010-04-15 17:53:26
|
Update of /cvsroot/phpicalendar/phpicalendar In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv8424 Modified Files: default_config.php Log Message: Performance improvements (especially for remote calendars) and some style cleanups Index: default_config.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/default_config.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** default_config.php 25 Jan 2010 18:13:51 -0000 1.24 --- default_config.php 15 Apr 2010 17:53:18 -0000 1.25 *************** *** 56,59 **** --- 56,60 ---- $this->save_parsed_cals = 'no'; // Saves a copy of the cal in /tmp after it's been parsed. Improves performance. $this->tmp_dir = '/tmp'; // The temporary directory on your system (/tmp is fine for UNIXes including Mac OS X). Any php-writable folder works. + $this->webcal_hours = '24'; // Number of hours to cache webcals. Setting to '0' will always re-parse webcals if they've been modified. // Webdav style publishing |
From: <par...@us...> - 2010-04-13 20:14:00
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv14523/functions Modified Files: ical_parser.php Log Message: Fix missing urlencode() when parsing Location attributes Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.257 retrieving revision 1.258 diff -C2 -d -r1.257 -r1.258 *** ical_parser.php 24 Dec 2009 17:41:02 -0000 1.257 --- ical_parser.php 13 Apr 2010 20:13:51 -0000 1.258 *************** *** 460,467 **** break; case 'LOCATION': ! $data = str_replace("\\n", "<br />", $data); ! $data = str_replace("\\t", " ", $data); ! $data = str_replace("\\r", "<br />", $data); $data = stripslashes($data); $location = $data; break; --- 460,466 ---- break; case 'LOCATION': ! $data = str_replace('$', '$', $data); $data = stripslashes($data); + $data = htmlentities(urlencode($data)); $location = $data; break; |
From: <par...@us...> - 2010-04-13 15:45:55
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv16185/functions Modified Files: date_functions.php Log Message: Properly sanitize dollar signs in event text (regression from new sanitize code in 2.4) Index: date_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/date_functions.php,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** date_functions.php 7 Jul 2009 14:48:29 -0000 1.57 --- date_functions.php 13 Apr 2010 15:45:47 -0000 1.58 *************** *** 223,232 **** function openevent($event_date, $time, $uid, $arr, $lines = 0, $length = 0, $link_class = '', $pre_text = '', $post_text = '') { global $cpath, $timeFormat, $dateFormat_week; $return = ''; ! $event_text = stripslashes(urldecode($arr["event_text"])); # build tooltip $title = makeTitle($arr, $time); # for iCal pseudo tag <http> comptability ! if (ereg("<([[:alpha:]]+://)([^<>[:space:]]+)>",$event_text,$matches)) { $full_event_text = $matches[1] . $matches[2]; $event_text = $matches[2]; --- 223,238 ---- function openevent($event_date, $time, $uid, $arr, $lines = 0, $length = 0, $link_class = '', $pre_text = '', $post_text = '') { global $cpath, $timeFormat, $dateFormat_week; + + # Strip all dollar signs from printable array entries; regex functions will mutilate them + foreach ($arr as $key => $val) { + $arr[$key] = str_replace('$', '$', $val); + } + $return = ''; ! $event_text = stripslashes(urldecode($arr['event_text'])); # build tooltip $title = makeTitle($arr, $time); # for iCal pseudo tag <http> comptability ! if (ereg('<([[:alpha:]]+://)([^<>[:space:]]+)>',$event_text,$matches)) { $full_event_text = $matches[1] . $matches[2]; $event_text = $matches[2]; *************** *** 239,248 **** if (!empty($event_text)) { ! $title = strip_tags(str_replace("<br />","\n",$title)); if ($lines > 0) { $event_text = word_wrap($event_text, $length, $lines); } ! if ((!(ereg("([[:alpha:]]+://[^<>[:space:]]+)", $full_event_text, $res))) || ($arr['description'])) { $escaped_date = addslashes($event_date); $escaped_time = addslashes($time); --- 245,254 ---- if (!empty($event_text)) { ! $title = strip_tags(str_replace('<br />',"\n",$title)); if ($lines > 0) { $event_text = word_wrap($event_text, $length, $lines); } ! if ((!(ereg('([[:alpha:]]+://[^<>[:space:]]+)', $full_event_text, $res))) || ($arr['description'])) { $escaped_date = addslashes($event_date); $escaped_time = addslashes($time); |
From: <par...@us...> - 2010-04-13 15:45:55
|
Update of /cvsroot/phpicalendar/phpicalendar/functions/init In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv16185/functions/init Modified Files: sanitize.php Log Message: Properly sanitize dollar signs in event text (regression from new sanitize code in 2.4) Index: sanitize.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init/sanitize.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** sanitize.php 27 May 2009 17:21:01 -0000 1.6 --- sanitize.php 13 Apr 2010 15:45:47 -0000 1.7 *************** *** 54,57 **** --- 54,58 ---- $string = preg_replace('/<br\s*\/?>/', "\n", $string); + $string = str_replace('$', '$', $string); $string = str_replace('&', '&', $string); $string = str_replace('<', '<', $string); *************** *** 59,62 **** --- 60,64 ---- $string = str_replace('\'', ''', $string); $string = str_replace('"', '"', $string); + $string = str_replace('$', '$', $string); $string = str_replace("\n", '<br />', $string); |
From: <par...@us...> - 2010-04-12 19:16:35
|
Update of /cvsroot/phpicalendar/phpicalendar/nicetitle In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv27429/nicetitle Added Files: Tag: phpicalendar-editor nicetitle.css nicetitle.js ntbg.png Log Message: Re-merge; missed some updates --- NEW FILE: nicetitle.css --- div.nicetitle { position: absolute; padding: 4px; top: 0px; left: 0px; color: white; font-size: 12px; font-family: Verdana, Helvetica, Arial, sans-serif; font-weight: bold; width: 25em; background: url(ntbg.png); -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; text-shadow: black 1px 1px 1px; } div.nicetitle p { margin: 0; padding: 0 3px; } div.nicetitle p.destination { font-size: 9px; text-align: left; padding-top: 3px; } @media print { div.nicetitle { display: none; } } --- NEW FILE: nicetitle.js --- /* * Based on NiceTitle, by Stuart Langridge * http://www.kryogenix.org/code/browser/nicetitle/ */ // Start configuration var SHOW_LINKS = false; // Set to false to disable showing link URLs var FOLLOW_MOUSE = true; // Set to false to disable title follows mouse var MIN_WIDTH = 100; // Min/Max width/height of title var MAX_WIDTH = 600; var MIN_HEIGHT = 25; var SNAP_LENGTH = 25; // Define the length from the edge of the window to snap to var MOUSE_OFFSET = 15; // Define the distance to place the title from the mouse // End configuration // Let the magic begin... addEvent(window, "load", makeNiceTitles); // Get script self directory var src = document.getElementById("nicetitle").src.split("/"); src.pop(); src = src.join("/"); // Pre-load background PNG (new Image()).src = src + "/ntbg.png"; var XHTMLNS = "http://www.w3.org/1999/xhtml"; var CURRENT_NICE_TITLE; function makeNiceTitles() { if (!document.createElement || !document.getElementsByTagName) return; // add namespace methods to HTML DOM; this makes the script work in both // HTML and XML contexts. if (!document.createElementNS) { document.createElementNS = function(ns,elt) { return document.createElement(elt); } } if (!document.links) { document.links = document.getElementsByTagName("a"); } for (var ti = 0; ti < document.links.length; ti++) { var lnk = document.links[ti]; if (lnk.title) { lnk.setAttribute("nicetitle", lnk.title); lnk.removeAttribute("title"); addEvent(lnk, "mouseover", showNiceTitle); addEvent(lnk, "mouseover", moveNiceTitle); addEvent(lnk, "mouseout", hideNiceTitle); addEvent(lnk, "mousemove", moveNiceTitle); addEvent(lnk, "mousedown", hideNiceTitle); /* * Focus and blur events are not quite right. In Mozilla, titles do not show on keyboard focus. * This may present an accessibility issue, but it doesn't currently play nice * with FOLLOW_MOUSE=true, or mousedown events. */ // addEvent(lnk, "focus", showNiceTitle); // addEvent(lnk, "blur", hideNiceTitle); } } var instags = document.getElementsByTagName("ins"); if (instags) { for (var ti = 0; ti < instags.length; ti++) { var instag = instags[ti]; if (instag.dateTime) { var strDate = instag.dateTime; var dtIns = new Date( strDate.substring(0, 4), parseInt(strDate.substring(4, 6) - 1), strDate.substring(6, 8), strDate.substring(9, 11), strDate.substring(11, 13), strDate.substring(13, 15) ); instag.setAttribute("nicetitle", "Added on " + dtIns.toString()); addEvent(instag, "mouseover", showNiceTitle); addEvent(instag, "mouseover", moveNiceTitle); addEvent(instag, "mouseout", hideNiceTitle); addEvent(instag, "mousemove", moveNiceTitle); addEvent(instag, "mousedown", hideNiceTitle); // addEvent(instag, "focus", showNiceTitle); // addEvent(instag, "blur", hideNiceTitle); } } } } function findPosition(oLink) { if (oLink.offsetParent) { for (var posX = 0, posY = 0; oLink.offsetParent; oLink = oLink.offsetParent) { posX += oLink.offsetLeft; posY += oLink.offsetTop; } return [posX, posY]; } else { return [oLink.x, oLink.y]; } } function get_longest(ary) { var l = 0; ary.forEach(function(el) { if (el.length > l) l = el.length; }); return l; } function moveNiceTitle(e) { if (!CURRENT_NICE_TITLE) return; var d = CURRENT_NICE_TITLE; if (e && e.currentTarget && (typeof(e.currentTarget) != "undefined")) { var el = e.currentTarget } else if (window.event && window.event.srcElement) { var el = window.event.srcElement } // Browser size var xy = getWindowSize(); var ww = xy[0]; var wh = xy[1]; // Title width and height var w = (d.offsetWidth || MIN_WIDTH); var h = (d.offsetHeight || MIN_HEIGHT); if (FOLLOW_MOUSE) { // Mouse position within document (not window) var xy = getMousePosition(e); var mx = xy[0]; var my = xy[1]; // Document scroll position within window var xy = getScrollPosition(); var sx = xy[0]; var sy = xy[1]; // Title element position within document var x = mx + MOUSE_OFFSET; var y = my + MOUSE_OFFSET; } else { // Document scroll position within window // Unused var sx = 0; var sy = 0; // Title element position within document var elPos = findPosition(el); var x = elPos[0]; var y = elPos[1] + el.offsetHeight + MOUSE_OFFSET; } // Find out if we've already snapped var SNAP_RIGHT = false; var SNAP_BOTTOM = false; // Snap title to the right side of the window if ((x + w + SNAP_LENGTH) >= (ww + sx)) { x = ((ww + sx) - w - SNAP_LENGTH); SNAP_RIGHT = true; } // Snap title to the bottom of the window if ((y + h + SNAP_LENGTH) >= (wh + sy)) { y = ((wh + sy) - h - SNAP_LENGTH); SNAP_BOTTOM = true; } // Ensure mouse can never enter the title in the lower right corner of the window if (FOLLOW_MOUSE && SNAP_RIGHT && SNAP_BOTTOM) { y = (my - MOUSE_OFFSET - h); } else if (!FOLLOW_MOUSE && SNAP_BOTTOM) { y = elPos[1] - h - MOUSE_OFFSET; } d.style.left = x + "px"; d.style.top = y + "px"; } function showNiceTitle(e) { if (CURRENT_NICE_TITLE) hideNiceTitle(CURRENT_NICE_TITLE); if (!document.getElementsByTagName) return; if (e && e.currentTarget && (typeof(e.currentTarget) != "undefined")) { var lnk = e.currentTarget } else if (window.event && window.event.srcElement) { var lnk = window.event.srcElement } if (!lnk) return; if (lnk.nodeName.toUpperCase() != "A") { // lnk is not actually the link -- ascend parents until we hit a link lnk = getParent(lnk, "A"); } if (!lnk) return; var nicetitle = lnk.getAttribute("nicetitle"); var d = document.createElementNS(XHTMLNS, "div"); d.style.display = "none"; d.className = "nicetitle"; var nicetitle_parts = nicetitle.split("\n"); nicetitle_parts.forEach(function(textpart) { var pat = document.createElementNS(XHTMLNS, "p"); pat.className = "titletext"; var tnt = document.createTextNode(textpart); pat.appendChild(tnt); var brk = document.createElementNS(XHTMLNS, "br"); pat.appendChild(brk); d.appendChild(pat); }); if (lnk.href && SHOW_LINKS) { var tnd = document.createTextNode(lnk.href); pad = document.createElementNS(XHTMLNS, "p"); pad.className = "destination"; pad.appendChild(tnd); d.appendChild(pad); } var l = get_longest(nicetitle_parts); // Approximate pixel width of longest line in the title var w = ((lnk.href && SHOW_LINKS) ? lnk.href.length : 0) * 6; var t = (l ? l : 0) * 8; // Use the greatest width: title text, link URL, or MIN_WIDTH. Limited to MAX_WIDTH w = ((w > MIN_WIDTH) ? w : MIN_WIDTH); w = ((w > t) ? w : t); w = ((w > MAX_WIDTH) ? MAX_WIDTH : w); d.style.width = w + "px"; document.getElementsByTagName("body")[0].appendChild(d); d.style.display = "block"; CURRENT_NICE_TITLE = d; moveNiceTitle(e); } function hideNiceTitle(e) { if (!document.getElementsByTagName) return; if (CURRENT_NICE_TITLE) { document.getElementsByTagName("body")[0].removeChild(CURRENT_NICE_TITLE); CURRENT_NICE_TITLE = null; } } // Add an eventListener to browsers that can do it somehow. // Originally by the amazing Scott Andrew. function addEvent(obj, evType, fn) { if (obj.addEventListener) { obj.addEventListener(evType, fn, false); return true; } else if (obj.attachEvent) { return obj.attachEvent("on" + evType, fn); } else { return false; } } function getParent(el, pTagName) { if (el == null) return null; else if (el.nodeType == 1 && el.tagName.toLowerCase() == pTagName.toLowerCase()) return el; else return getParent(el.parentNode, pTagName); } function getMousePosition(e) { var x = 0; var y = 0; if (e && (typeof(window.scrollX) != "undefined")) { x = e.clientX + window.scrollX; y = e.clientY + window.scrollY; } else if (window.event) { x = window.event.clientX + document.documentElement.scrollLeft; y = window.event.clientY + document.documentElement.scrollTop; } return [x, y]; } function getScrollPosition() { var x = 0; var y = 0; if ((typeof(window.scrollX) != "undefined") && (typeof(window.scrollY) != "undefined")) { x = window.scrollX; y = window.scrollY; } else if ((typeof(document.documentElement.scrollLeft) != "undefined") && (typeof(document.documentElement.scrollTop) != "undefined")) { x = document.documentElement.scrollLeft; y = document.documentElement.scrollTop; } return [x, y]; } function getWindowSize() { var x = 0; var y = 0; if ((typeof(window.innerWidth) != "undefined") && (typeof(window.innerHeight) != "undefined")) { x = window.innerWidth; y = window.innerHeight; } else if ((typeof(document.documentElement.clientWidth) != "undefined") && (typeof(document.documentElement.clientHeight) != "undefined")) { x = document.documentElement.clientWidth; y = document.documentElement.clientHeight; } return [x, y]; } // IE does not support the Array.forEach() method... Try to approximate it if (!Array.prototype.forEach) { Array.prototype.forEach = function(action, context) { var len = this.length; for (var i = 0; i < len; i++) { if (this[i] != undefined) action(this[i], context); } }; } --- NEW FILE: ntbg.png --- (This appears to be a binary file; contents omitted.) |
From: <par...@us...> - 2010-04-12 18:58:55
|
Update of /cvsroot/phpicalendar/phpicalendar/images In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875/images Added Files: Tag: phpicalendar-editor longevent_end.gif longevent_mid.gif longevent_start.gif Log Message: merge with HEAD --- NEW FILE: longevent_end.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: longevent_mid.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: longevent_start.gif --- (This appears to be a binary file; contents omitted.) |
From: <par...@us...> - 2010-04-12 18:58:52
|
Update of /cvsroot/phpicalendar/phpicalendar/functions/init In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875/functions/init Modified Files: Tag: phpicalendar-editor date_range.php sanitize.php Log Message: merge with HEAD Index: date_range.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init/date_range.php,v retrieving revision 1.10 retrieving revision 1.10.2.1 diff -C2 -d -r1.10 -r1.10.2.1 *** date_range.php 29 Dec 2008 06:00:42 -0000 1.10 --- date_range.php 12 Apr 2010 18:58:37 -0000 1.10.2.1 *************** *** 31,34 **** --- 31,35 ---- case 'week': case 'day': + case 'print': $mArray_begin = mktime (0,0,0,$start_month,1,($start_year)); $mArray_end = mktime (0,0,0,$end_month,31,($end_year)); Index: sanitize.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init/sanitize.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** sanitize.php 23 Feb 2009 21:28:57 -0000 1.1.2.1 --- sanitize.php 12 Apr 2010 18:58:37 -0000 1.1.2.2 *************** *** 33,37 **** --- 33,53 ---- } + /** + * Truncate a string to a specific number of words + */ + function chopToWordCount($string, $count) { + $wc = str_word_count($string); + if ($wc > $count) { + $words = str_word_count($string, 2); + $last_word = array_slice($words, $count, 1, true); + $pos = key($last_word); + $string = substr($string, 0, $pos) . '...'; + } + return $string; + } + /** + * Strip "dangerous" HTML to make it safe to print to web browsers + */ function sanitizeForWeb($string) { $string = preg_replace('/<br\s*\/?>/', "\n", $string); *************** *** 43,52 **** $string = str_replace('"', '"', $string); ! $string = str_replace('<br />', "\n", $string); ! return $string; } - if (!isset($_SERVER) && isset($HTTP_SERVER_VARS)) { $_SERVER = &$HTTP_SERVER_VARS; --- 59,68 ---- $string = str_replace('"', '"', $string); ! $string = str_replace("\n", '<br />', $string); ! $string = str_replace("\t", ' ', $string); ! return $string; } if (!isset($_SERVER) && isset($HTTP_SERVER_VARS)) { $_SERVER = &$HTTP_SERVER_VARS; |
From: <par...@us...> - 2010-04-12 18:58:52
|
Update of /cvsroot/phpicalendar/phpicalendar/templates/red In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875/templates/red Modified Files: Tag: phpicalendar-editor default.css header.tpl Removed Files: Tag: phpicalendar-editor calendar_nav.tpl day.tpl month.tpl month_large.tpl month_medium.tpl month_small.tpl sidebar.tpl sidebar_year.tpl year.tpl Log Message: merge with HEAD Index: default.css =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/red/default.css,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** default.css 29 Dec 2008 03:30:36 -0000 1.2 --- default.css 12 Apr 2010 18:58:37 -0000 1.2.2.1 *************** *** 1,4 **** --- 1,5 ---- /* Style sheet for the silver calendar (default) */ + form {margin: 0;} table, td {font: 11px Verdana, Arial, sans-serif; color: #000;} *************** *** 16,24 **** .alldaybg_7 {background: url(images/allday_7.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;} ! .rowOn { background-color: #cfc; border-top: 1px solid #fff; border-left: 1px solid #fff; } ! .rowOn2 { background-color: #cfc; border-top: 1px solid #fff; } .rowOff { background-color: #E1E8F1; border-top: 1px solid #fff; border-left: 1px solid #fff; } .rowOff2 { background-color: #E1E8F1; border-top: 1px solid #fff; } ! .rowToday { background-color: #cff; border-top: 1px solid #fff; border-left: 1px solid #fff; } .padd { padding: 2px; } --- 17,25 ---- .alldaybg_7 {background: url(images/allday_7.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;} ! .rowOn { background-color: #B0E8B0; border-top: 1px solid #fff; border-left: 1px solid #fff; } ! .rowOn2 { background-color: #B0E8B0; border-top: 1px solid #fff; } .rowOff { background-color: #E1E8F1; border-top: 1px solid #fff; border-left: 1px solid #fff; } .rowOff2 { background-color: #E1E8F1; border-top: 1px solid #fff; } ! .rowToday { background-color: #B0E8E8; border-top: 1px solid #fff; border-left: 1px solid #fff; } .padd { padding: 2px; } *************** *** 33,36 **** --- 34,39 ---- .eventbg_7 { background-color: #ac4848; padding: 2px;} + .allday a { font-size: 9px; color: #fff !important; font-weight: 900; text-decoration:none;} + .allday a:hover { text-decoration:underline;} .eventbg2_1 { background-color: #c03030; border: 1px solid #a01010; } *************** *** 41,50 **** --- 44,61 ---- .eventbg2_6 { background-color: #ff4c8c; border: 1px solid #df2c6c; } .eventbg2_7 { background-color: #cc6868; border: 1px solid #ac4848; } + .dayborder { background-color: #fff; border-top: 1px solid #A1A5A9; } .dayborder2 { background-color: #fff; border-top: 1px dashed #ccc; } + .dayborder2 { background-color: #fff; border-top: 1px dotted #888; } .title { background-image: url(images/time_bg.gif); padding: 5px; } .title h1 { font-family: Helvetica, sans-serif; font-size: 18px; color: #000; margin: 0px;} + /* Main class used for all page wrapper tables */ + .maintable { width: 990px; } + + /* Week view */ + .weektoday { background-color: #dff; } + /* Month View */ *************** *** 64,67 **** --- 75,81 ---- .yearmonth { background-color: #ccc; } .yearweek { background-color: #eee; width: 30px; font-size: 9px; font-weight: 900; text-align: center; height: 15px; } + .yearleft { padding-right: 5px; padding-top: 5px; padding-bottom: 5px; } + .yearmiddle { padding: 5px; } + .yearright { padding-left: 5px; padding-top: 5px; padding-bottom: 5px; } *************** *** 71,80 **** .eventbg { background-color: #6699CC; } .calborder { background-color: #fff; border: 1px #A1A5A9 solid; } .dateback { background-color: #eee; } ! .weekborder { border-top: 1px dashed #A1A5A9; border-right: 1px solid #A1A5A9; } ! .weekborder2 { border-right: 1px solid #A1A5A9; } ! .timeborder { border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; background-image: url(images/time_bg.gif); } ! .timeborder2 { border-right: 2px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); } .navback { background-image: url(images/time_bg.gif); } .sideback { background-image: url(images/side_bg.gif); } --- 85,96 ---- .eventbg { background-color: #6699CC; } + .tfixed { table-layout: fixed; word-wrap: break-word; } .calborder { background-color: #fff; border: 1px #A1A5A9 solid; } .dateback { background-color: #eee; } ! .weekborder { border-left: 1px solid #A1A5A9; border-top: 1px dashed #ccc; } ! .weekborder2 { border-left: 1px solid #A1A5A9; border-top: 1px solid #A1A5A9; } ! .weekborder2 { border-left: 1px solid #A1A5A9; border-top: 1px dotted #888; } ! .timeborder { border-right: 1px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); } ! .timeborder2 { border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); } .navback { background-image: url(images/time_bg.gif); } .sideback { background-image: url(images/side_bg.gif); } *************** *** 89,93 **** a.psf:hover { color: #FF0099; text-decoration: underline; } ! /* This is the link style for the mini-cals */ a.ps2 { text-decoration: underline; } a.ps2:link { color: #a01010; } --- 105,109 ---- a.psf:hover { color: #FF0099; text-decoration: underline; } ! /* This is the link style for the mini-cals */ a.ps2 { text-decoration: underline; } a.ps2:link { color: #a01010; } *************** *** 96,100 **** a.ps2:hover { color: #000099; } ! /* This is the link style for year months */ a.ps3 { text-decoration: none; } a.ps3:link { color: #000; } --- 112,116 ---- a.ps2:hover { color: #000099; } ! /* This is the link style for year months */ a.ps3 { text-decoration: none; } a.ps3:link { color: #000; } *************** *** 103,107 **** a.ps3:hover { color: #000; text-decoration: underline; } ! /* This is the link style for events */ a.ps { text-decoration: none; } a.ps:link { color: #fff; } --- 119,123 ---- a.ps3:hover { color: #000; text-decoration: underline; } ! /* This is the link style for events */ a.ps { text-decoration: none; } a.ps:link { color: #fff; } *************** *** 109,113 **** a.ps:active { color: #fff; } a.ps:hover { color: #fff; text-decoration: underline; } ! /* Body attributes */ --- 125,129 ---- a.ps:active { color: #fff; } a.ps:hover { color: #fff; text-decoration: underline; } ! /* Body attributes */ *************** *** 137,138 **** --- 153,164 ---- .search_style { font-size: 12px; font-family: verdana, geneva, arial, sans-serif; width: 134px; margin-bottom: 0; } .login_style { font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 80px; margin-bottom: 0; } + + + /* Make printed pages look nice */ + @media print { + .sidebar { width: 0px; display: none; } + .footer { display: none; } + .monthback { border-spacing: 0; } + .monthback td { border: 1px solid #606060; } + .calborder { border: 1px solid #606060; } + } Index: header.tpl =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/red/header.tpl,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** header.tpl 20 Dec 2008 00:33:14 -0000 1.2 --- header.tpl 12 Apr 2010 18:58:37 -0000 1.2.2.1 *************** *** 5,9 **** <meta http-equiv="content-type" content="text/html; charset={CHARSET}" /> <title>{CALENDAR_NAME} - {DISPLAY_DATE}</title> ! <link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}/templates/{TEMPLATE}/default.css" /> <!-- switch rss_available on --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&rssview={CURRENT_VIEW}"> --- 5,11 ---- <meta http-equiv="content-type" content="text/html; charset={CHARSET}" /> <title>{CALENDAR_NAME} - {DISPLAY_DATE}</title> ! <link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}/templates/{TEMPLATE}/default.css" /> ! <script id="nicetitle" type="text/javascript" src="{DEFAULT_PATH}/nicetitle/nicetitle.js"></script> ! <link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}/nicetitle/nicetitle.css" /> <!-- switch rss_available on --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&rssview={CURRENT_VIEW}"> --- calendar_nav.tpl DELETED --- --- day.tpl DELETED --- --- month.tpl DELETED --- --- month_large.tpl DELETED --- --- month_medium.tpl DELETED --- --- month_small.tpl DELETED --- --- sidebar.tpl DELETED --- --- sidebar_year.tpl DELETED --- --- year.tpl DELETED --- |
From: <par...@us...> - 2010-04-12 18:58:52
|
Update of /cvsroot/phpicalendar/phpicalendar/templates/grey In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875/templates/grey Modified Files: Tag: phpicalendar-editor default.css header.tpl Removed Files: Tag: phpicalendar-editor calendar_nav.tpl day.tpl month.tpl month_large.tpl month_medium.tpl month_small.tpl sidebar.tpl year.tpl Log Message: merge with HEAD Index: default.css =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/grey/default.css,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** default.css 18 May 2007 19:03:08 -0000 1.1 --- default.css 12 Apr 2010 18:58:37 -0000 1.1.2.1 *************** *** 1,4 **** --- 1,5 ---- /* Style sheet for the grey calendar */ + form {margin: 0;} table, td {font: 11px Verdana, Arial, sans-serif; color: #000;} *************** *** 16,24 **** .alldaybg_7 {background: url(images/allday_7.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;} ! .rowOn { background-color: #cfc; border-top: 1px solid #fff; border-left: 1px solid #fff; } ! .rowOn2 { background-color: #cfc; border-top: 1px solid #fff; } .rowOff { background-color: #E1E8F1; border-top: 1px solid #fff; border-left: 1px solid #fff; } .rowOff2 { background-color: #E1E8F1; border-top: 1px solid #fff; } ! .rowToday { background-color: #cff; border-top: 1px solid #fff; border-left: 1px solid #fff; } .padd { padding: 2px; } --- 17,25 ---- .alldaybg_7 {background: url(images/allday_7.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;} ! .rowOn { background-color: #B0E8B0; border-top: 1px solid #fff; border-left: 1px solid #fff; } ! .rowOn2 { background-color: #B0E8B0; border-top: 1px solid #fff; } .rowOff { background-color: #E1E8F1; border-top: 1px solid #fff; border-left: 1px solid #fff; } .rowOff2 { background-color: #E1E8F1; border-top: 1px solid #fff; } ! .rowToday { background-color: #B0E8E8; border-top: 1px solid #fff; border-left: 1px solid #fff; } .padd { padding: 2px; } *************** *** 33,36 **** --- 34,39 ---- .eventbg_7 { background-color: #a0a090; padding: 2px;} + .allday a { font-size: 9px; color: #fff !important; font-weight: 900; text-decoration:none;} + .allday a:hover { text-decoration:underline;} .eventbg2_1 { background-color: #505050; border: 1px solid #303030; } *************** *** 44,51 **** --- 47,61 ---- .dayborder { background-color: #fff; border-top: 1px solid #A1A5A9; } .dayborder2 { background-color: #fff; border-top: 1px dashed #ccc; } + .dayborder2 { background-color: #fff; border-top: 1px dotted #888; } .title { background-image: url(images/time_bg.gif); padding: 5px; } .title h1 { font-family: Helvetica, sans-serif; font-size: 18px; color: #000; margin: 0px;} + /* Main class used for all page wrapper tables */ + .maintable { width: 990px; } + + /* Week view */ + .weektoday { background-color: #dff; } + /* Month View */ *************** *** 65,68 **** --- 75,81 ---- .yearmonth { background-color: #ccc; } .yearweek { background-color: #eee; width: 30px; font-size: 9px; font-weight: 900; text-align: center; height: 15px; } + .yearleft { padding-right: 5px; padding-top: 5px; padding-bottom: 5px; } + .yearmiddle { padding: 5px; } + .yearright { padding-left: 5px; padding-top: 5px; padding-bottom: 5px; } *************** *** 72,81 **** .eventbg { background-color: #6699CC; } .calborder { background-color: #fff; border: 1px #A1A5A9 solid; } .dateback { background-color: #eee; } ! .weekborder { border-top: 1px dashed #A1A5A9; border-right: 1px solid #A1A5A9; } ! .weekborder2 { border-right: 1px solid #A1A5A9; } ! .timeborder { border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; background-image: url(images/time_bg.gif); } ! .timeborder2 { border-right: 2px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); } .navback { background-image: url(images/time_bg.gif); } .sideback { background-image: url(images/side_bg.gif); } --- 85,96 ---- .eventbg { background-color: #6699CC; } + .tfixed { table-layout: fixed; word-wrap: break-word; } .calborder { background-color: #fff; border: 1px #A1A5A9 solid; } .dateback { background-color: #eee; } ! .weekborder { border-left: 1px solid #A1A5A9; border-top: 1px dashed #ccc; } ! .weekborder2 { border-left: 1px solid #A1A5A9; border-top: 1px solid #A1A5A9; } ! .weekborder2 { border-left: 1px solid #A1A5A9; border-top: 1px dotted #888; } ! .timeborder { border-right: 1px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); } ! .timeborder2 { border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); } .navback { background-image: url(images/time_bg.gif); } .sideback { background-image: url(images/side_bg.gif); } *************** *** 90,94 **** a.psf:hover { color: #333; text-decoration: underline; } ! /* This is the link style for the mini-cals (varies)*/ a.ps2 { text-decoration: underline; } a.ps2:link { color: #0066FF; } --- 105,109 ---- a.psf:hover { color: #333; text-decoration: underline; } ! /* This is the link style for the mini-cals (varies)*/ a.ps2 { text-decoration: underline; } a.ps2:link { color: #0066FF; } *************** *** 97,101 **** a.ps2:hover { color: #000099; } ! /* This is the link style for year months */ a.ps3 { text-decoration: none; } a.ps3:link { color: #000; } --- 112,116 ---- a.ps2:hover { color: #000099; } ! /* This is the link style for year months */ a.ps3 { text-decoration: none; } a.ps3:link { color: #000; } *************** *** 104,108 **** a.ps3:hover { color: #000; text-decoration: underline; } ! /* This is the link style for events */ a.ps { text-decoration: none; } a.ps:link { color: #fff; } --- 119,123 ---- a.ps3:hover { color: #000; text-decoration: underline; } ! /* This is the link style for events */ a.ps { text-decoration: none; } a.ps:link { color: #fff; } *************** *** 110,114 **** a.ps:active { color: #fff; } a.ps:hover { color: #fff; text-decoration: underline; } ! /* Body attributes */ --- 125,129 ---- a.ps:active { color: #fff; } a.ps:hover { color: #fff; text-decoration: underline; } ! /* Body attributes */ *************** *** 138,139 **** --- 153,164 ---- .search_style { font-size: 12px; font-family: verdana, geneva, arial, sans-serif; width: 134px; margin-bottom: 0; } .login_style { font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 80px; margin-bottom: 0; } + + + /* Make printed pages look nice */ + @media print { + .sidebar { width: 0px; display: none; } + .footer { display: none; } + .monthback { border-spacing: 0; } + .monthback td { border: 1px solid #606060; } + .calborder { border: 1px solid #606060; } + } Index: header.tpl =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/grey/header.tpl,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** header.tpl 20 Dec 2008 00:33:14 -0000 1.2 --- header.tpl 12 Apr 2010 18:58:37 -0000 1.2.2.1 *************** *** 5,9 **** <meta http-equiv="content-type" content="text/html; charset={CHARSET}" /> <title>{CALENDAR_NAME} - {DISPLAY_DATE}</title> ! <link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}/templates/{TEMPLATE}/default.css" /> <!-- switch rss_available on --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&rssview={CURRENT_VIEW}"> --- 5,11 ---- <meta http-equiv="content-type" content="text/html; charset={CHARSET}" /> <title>{CALENDAR_NAME} - {DISPLAY_DATE}</title> ! <link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}/templates/{TEMPLATE}/default.css" /> ! <script id="nicetitle" type="text/javascript" src="{DEFAULT_PATH}/nicetitle/nicetitle.js"></script> ! <link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}/nicetitle/nicetitle.css" /> <!-- switch rss_available on --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&rssview={CURRENT_VIEW}"> --- calendar_nav.tpl DELETED --- --- day.tpl DELETED --- --- month.tpl DELETED --- --- month_large.tpl DELETED --- --- month_medium.tpl DELETED --- --- month_small.tpl DELETED --- --- sidebar.tpl DELETED --- --- year.tpl DELETED --- |
From: <par...@us...> - 2010-04-12 18:58:52
|
Update of /cvsroot/phpicalendar/phpicalendar/templates/green In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875/templates/green Modified Files: Tag: phpicalendar-editor default.css header.tpl Removed Files: Tag: phpicalendar-editor calendar_nav.tpl day.tpl month.tpl month_large.tpl month_medium.tpl month_small.tpl sidebar.tpl year.tpl Log Message: merge with HEAD Index: default.css =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/green/default.css,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** default.css 18 May 2007 19:03:07 -0000 1.1 --- default.css 12 Apr 2010 18:58:37 -0000 1.1.2.1 *************** *** 1,4 **** --- 1,5 ---- /* Style sheet for the green calendar */ + form {margin: 0;} table, td {font: 11px Verdana, Arial, sans-serif; color: #000;} *************** *** 16,24 **** .alldaybg_7 {background: url(images/allday_7.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;} ! .rowOn { background-color: #cfc; border-top: 1px solid #fff; border-left: 1px solid #fff; } ! .rowOn2 { background-color: #cfc; border-top: 1px solid #fff; } .rowOff { background-color: #E1E8F1; border-top: 1px solid #fff; border-left: 1px solid #fff; } .rowOff2 { background-color: #E1E8F1; border-top: 1px solid #fff; } ! .rowToday { background-color: #cff; border-top: 1px solid #fff; border-left: 1px solid #fff; } .padd { padding: 2px; } --- 17,25 ---- .alldaybg_7 {background: url(images/allday_7.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;} ! .rowOn { background-color: #B0E8B0; border-top: 1px solid #fff; border-left: 1px solid #fff; } ! .rowOn2 { background-color: #B0E8B0; border-top: 1px solid #fff; } .rowOff { background-color: #E1E8F1; border-top: 1px solid #fff; border-left: 1px solid #fff; } .rowOff2 { background-color: #E1E8F1; border-top: 1px solid #fff; } ! .rowToday { background-color: #B0E8E8; border-top: 1px solid #fff; border-left: 1px solid #fff; } .padd { padding: 2px; } *************** *** 33,38 **** .eventbg_7 { background-color: #00a28f; padding: 2px;} ! #allday a { font-size: 9px; color: #fff; font-weight: 900; text-decoration:none;} ! #allday a:hover { text-decoration:underline;} .eventbg2_1 { background-color: #00992c; border: 1px solid #00790c; } --- 34,39 ---- .eventbg_7 { background-color: #00a28f; padding: 2px;} ! .allday a { font-size: 9px; color: #fff !important; font-weight: 900; text-decoration:none;} ! .allday a:hover { text-decoration:underline;} .eventbg2_1 { background-color: #00992c; border: 1px solid #00790c; } *************** *** 63,70 **** --- 64,78 ---- .dayborder { background-color: #fff; border-top: 1px solid #A1A5A9; } .dayborder2 { background-color: #fff; border-top: 1px dashed #ccc; } + .dayborder2 { background-color: #fff; border-top: 1px dotted #888; } .title { background-image: url(images/time_bg.gif); padding: 5px; } .title h1 { font-family: Helvetica, sans-serif; font-size: 18px; color: #000; margin: 0px;} + /* Main class used for all page wrapper tables */ + .maintable { width: 990px; } + + /* Week view */ + .weektoday { background-color: #dff; } + /* Month View */ *************** *** 84,87 **** --- 92,98 ---- .yearmonth { background-color: #ccc; } .yearweek { background-color: #eee; width: 30px; font-size: 9px; font-weight: 900; text-align: center; height: 15px; } + .yearleft { padding-right: 5px; padding-top: 5px; padding-bottom: 5px; } + .yearmiddle { padding: 5px; } + .yearright { padding-left: 5px; padding-top: 5px; padding-bottom: 5px; } *************** *** 93,103 **** .eventbg { background-color: #339933; } .calborder { background-color: #ffffff; border: 1px #A1A5A9 solid; } .dateback { background-color: #eee; } ! .weekborder { border-top: 1px dashed #A1A5A9; border-right: 1px solid #A1A5A9; } ! .weekborder2 { border-right: 1px solid #A1A5A9; } ! .timeborder { border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; background-image: url(images/time_bg.gif); } ! .timeborder2 { border-right: 2px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); } .navback { background-image: url(images/time_bg.gif); } .sideback { background-image: url(images/side_bg.gif); } --- 104,116 ---- .eventbg { background-color: #339933; } + .tfixed { table-layout: fixed; word-wrap: break-word; } .calborder { background-color: #ffffff; border: 1px #A1A5A9 solid; } .dateback { background-color: #eee; } ! .weekborder { border-left: 1px solid #A1A5A9; border-top: 1px dashed #ccc; } ! .weekborder2 { border-left: 1px solid #A1A5A9; border-top: 1px solid #A1A5A9; } ! .weekborder2 { border-left: 1px solid #A1A5A9; border-top: 1px dotted #888; } ! .timeborder { border-right: 1px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); } ! .timeborder2 { border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); } .navback { background-image: url(images/time_bg.gif); } .sideback { background-image: url(images/side_bg.gif); } *************** *** 112,116 **** a.psf:hover { color: #003300; text-decoration: underline; } ! /* This is the link style for the mini-cals */ a.ps2 { text-decoration: underline; } a.ps2:link { color: #009900; } --- 125,129 ---- a.psf:hover { color: #003300; text-decoration: underline; } ! /* This is the link style for the mini-cals */ a.ps2 { text-decoration: underline; } a.ps2:link { color: #009900; } *************** *** 119,123 **** a.ps2:hover { color: #003300; } ! /* This is the link style for year months */ a.ps3 { text-decoration: none; } a.ps3:link { color: #000; } --- 132,136 ---- a.ps2:hover { color: #003300; } ! /* This is the link style for year months */ a.ps3 { text-decoration: none; } a.ps3:link { color: #000; } *************** *** 126,130 **** a.ps3:hover { color: #000; text-decoration: underline; } ! /* This is the link style for events */ a.ps { text-decoration: none; } a.ps:link { color: #fff; } --- 139,143 ---- a.ps3:hover { color: #000; text-decoration: underline; } ! /* This is the link style for events */ a.ps { text-decoration: none; } a.ps:link { color: #fff; } *************** *** 132,136 **** a.ps:active { color: #fff; } a.ps:hover { color: #fff; text-decoration: underline; } ! /* Body attributes */ --- 145,149 ---- a.ps:active { color: #fff; } a.ps:hover { color: #fff; text-decoration: underline; } ! /* Body attributes */ *************** *** 160,161 **** --- 173,184 ---- .search_style { font-size: 12px; font-family: verdana, geneva, arial, sans-serif; width: 134px; margin-bottom: 0; } .login_style { font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 80px; margin-bottom: 0; } + + + /* Make printed pages look nice */ + @media print { + .sidebar { width: 0px; display: none; } + .footer { display: none; } + .monthback { border-spacing: 0; } + .monthback td { border: 1px solid #606060; } + .calborder { border: 1px solid #606060; } + } Index: header.tpl =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/green/header.tpl,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** header.tpl 20 Dec 2008 00:33:14 -0000 1.2 --- header.tpl 12 Apr 2010 18:58:37 -0000 1.2.2.1 *************** *** 5,9 **** <meta http-equiv="content-type" content="text/html; charset={CHARSET}" /> <title>{CALENDAR_NAME} - {DISPLAY_DATE}</title> ! <link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}/templates/{TEMPLATE}/default.css" /> <!-- switch rss_available on --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&rssview={CURRENT_VIEW}"> --- 5,11 ---- <meta http-equiv="content-type" content="text/html; charset={CHARSET}" /> <title>{CALENDAR_NAME} - {DISPLAY_DATE}</title> ! <link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}/templates/{TEMPLATE}/default.css" /> ! <script id="nicetitle" type="text/javascript" src="{DEFAULT_PATH}/nicetitle/nicetitle.js"></script> ! <link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}/nicetitle/nicetitle.css" /> <!-- switch rss_available on --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&rssview={CURRENT_VIEW}"> --- calendar_nav.tpl DELETED --- --- day.tpl DELETED --- --- month.tpl DELETED --- --- month_large.tpl DELETED --- --- month_medium.tpl DELETED --- --- month_small.tpl DELETED --- --- sidebar.tpl DELETED --- --- year.tpl DELETED --- |
From: <par...@us...> - 2010-04-12 18:58:52
|
Update of /cvsroot/phpicalendar/phpicalendar/rss In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875/rss Modified Files: Tag: phpicalendar-editor rss_common.php Log Message: merge with HEAD Index: rss_common.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/rss/rss_common.php,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -C2 -d -r1.8 -r1.8.2.1 *** rss_common.php 1 Feb 2009 21:22:24 -0000 1.8 --- rss_common.php 12 Apr 2010 18:58:37 -0000 1.8.2.1 *************** *** 226,230 **** } ! header ("Content-Type: text/xml"); echo "$rss"; --- 226,230 ---- } ! header ("Content-Type: application/xml"); echo "$rss"; |
From: <par...@us...> - 2010-04-12 18:58:51
|
Update of /cvsroot/phpicalendar/phpicalendar/languages In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875/languages Modified Files: Tag: phpicalendar-editor czech.inc.php french.inc.php german.inc.php korean.inc.php Log Message: merge with HEAD Index: czech.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/languages/czech.inc.php,v retrieving revision 1.11 retrieving revision 1.11.2.1 diff -C2 -d -r1.11 -r1.11.2.1 *** czech.inc.php 10 Apr 2006 00:52:24 -0000 1.11 --- czech.inc.php 12 Apr 2010 18:58:37 -0000 1.11.2.1 *************** *** 1,182 **** ! <?php // Czech language include // For version 2.0 PHP iCalendar // ! // Translation by Whit, studio jiâæâ°k (wh...@st...) // ! // Submit new translations to ch...@ch... ! $lang['l_day'] = 'Den'; ! $lang['l_week'] = 'TâΩden'; ! $lang['l_month'] = 'MÆÃµsââ c'; ! $lang['l_year'] = 'Rok'; ! $lang['l_calendar'] = 'Kalendâ°âô'; ! $lang['l_next_day'] = 'Nâ°sledujââ cââ den'; ! $lang['l_next_month'] = 'Nâ°sledujââ cââ mÆÃµsââ c'; ! $lang['l_next_week'] = 'Nâ°sledujââ cââ tâΩden'; ! $lang['l_next_year'] = 'Pâôââ â°tââ rok'; ! $lang['l_last_day'] = 'Pâôedchozââ den'; ! $lang['l_last_month'] = 'Pâôedchozââ mÆÃµsââ c'; ! $lang['l_last_week'] = 'Pâôedchozââ tâΩden'; ! $lang['l_last_year'] = 'Pâôedchozââ rok'; ! $lang['l_subscribe'] = 'Pâôihlaâ°'; ! $lang['l_download'] = 'Stâ°hni'; ! $lang['l_powered_by'] = 'Powered by'; ! $lang['l_event'] = 'Udâ°lost'; ! $lang['l_event_start'] = 'ZaÆÃ§â°tek'; $lang['l_event_end'] = 'Konec'; ! $lang['l_this_months'] = 'Tento mÆÃµsââ c'; $lang['l_date'] = 'Datum'; ! $lang['l_summary'] = 'Souhrn'; ! $lang['l_all_day'] = 'CelâΩ den'; ! $lang['l_notes'] = 'Poznâ°mky'; ! $lang['l_this_years'] = 'Tento rok'; $lang['l_today'] = 'Dnes'; ! $lang['l_this_week'] = 'Tento tâΩden'; ! $lang['l_this_month'] = 'Tento mÆÃµsââ c'; ! $lang['l_jump'] = 'Jdi'; ! $lang['l_tomorrows'] = 'Zââ tra'; ! $lang['l_goday'] = 'Dneâ°ek'; ! $lang['l_goweek'] = 'Tento tâΩden'; ! $lang['l_gomonth'] = 'Tento mÆÃµsââ c'; ! $lang['l_goyear'] = 'Tento rok'; ! $lang['l_search'] = 'Hledej'; // the verb ! $lang['l_results'] = 'VâΩsledky hledâ°nââ '; ! $lang['l_pick_multiple'] = 'VâΩchozââ multiple'; ! $lang['l_query'] = 'Dotaz: '; // will be followed by the search query ! $lang['l_no_results'] = 'âΩâ°dnâ© nalezenâ© zâ°znamy'; $lang['l_goprint'] = 'Tisk'; ! $lang['l_time'] = 'ÆÃ¥as'; ! $lang['l_summary'] = 'Souhrn'; $lang['l_description'] = 'Popis'; ! $lang['l_this_site_is'] = 'Tato strâ°nka je'; ! $lang['l_no_events_day'] = 'âΩâ°dnâ© zâ°znamy v tomto dni.'; ! $lang['l_no_events_week'] = 'âΩâ°dnâ© zâ°znamy v tomto tâΩdnu.'; ! $lang['l_no_events_month'] = 'âΩâ°dnâ© zâ°znamy v tomto mÆÃµsââ ci.'; ! $lang['l_rss_day_date'] = 'G:i A'; // Lists just the time ! $lang['l_rss_week_date '] = '%A, %e %B'; // Lists just the day ! $lang['l_rss_month_date '] = '%A, %e %B'; // Lists just the day ! $lang['l_rss_language'] = 'cs-cz'; ! $lang['l_search_took'] = 'Hledâ°nââ trvalo %s vteâôin'; ! $lang['l_recurring_event'] = 'Opakujââ cââ se udâ°lost'; ! $lang['l_exception'] = 'VâΩjimka'; ! $lang['l_no_query'] = 'Nebyl zadâ°n dotaz'; ! $lang['l_preferences'] = 'Nastavenââ '; ! $lang['l_printer'] = 'Tiskâ°rna'; ! $lang['l_select_lang'] = 'VâΩchozââ jazyk:'; ! $lang['l_select_cal'] = 'VâΩchozââ kalendâ°âô:'; ! $lang['l_select_view'] = 'VâΩchozââ pohled:'; ! $lang['l_select_time'] = 'VâΩchozââ startovnââ ÆÃ§as:'; ! $lang['l_select_day'] = 'VâΩchozââ prvnââ den tâΩdne:'; ! $lang['l_select_style'] = 'VâΩchozââ styl:'; ! $lang['l_set_prefs'] = 'Uloâæ nastavenââ '; ! $lang['l_completed_date'] = 'Kompletnââ v'; ! $lang['l_completed'] = 'Kompletnââ '; ! $lang['l_created'] = 'Vytvoâôeno:'; ! $lang['l_due'] = 'Due:'; ! $lang['l_priority'] = 'Priorita:'; ! $lang['l_priority_high'] = 'Vysokâ°'; ! $lang['l_priority_low'] = 'Nââ zkâ°'; ! $lang['l_priority_medium'] = 'Stâôednââ '; ! $lang['l_priority_none'] = 'âΩâ°dnâ°'; ! $lang['l_status'] = 'Status'; ! $lang['l_status_confirmed'] = 'Konfirmovaný ' ; ! $lang['l_status_cancelled'] = 'Odvolaný '; ! $lang['l_status_tentative'] = 'pÅedbÄžný '; ! $lang['l_todo'] = 'Seznam ââ«kolâÃ'; ! $lang['l_unfinished'] = 'NedokonÆÃ§eno'; ! $lang['l_prefs_set'] = 'Your preferences have been set.'; ! $lang['l_prefs_unset'] = 'Preferences unset. Changes will take place next page load.'; ! $lang['l_unset_prefs'] = 'Unset preferences'; ! $lang['l_organizer'] = 'Organizer'; ! $lang['l_attendee'] = 'Attendee'; ! $lang['l_location'] = 'Location'; ! $lang['l_admin_header'] = 'PHP iCalendar Administration'; ! $lang['l_username'] = 'Username'; ! $lang['l_password'] = 'Password'; $lang['l_login'] = 'Login'; ! $lang['l_invalid_login'] = 'Wrong username or password.'; ! $lang['l_addupdate_cal'] = 'Add or Update a Calendar'; ! $lang['l_addupdate_desc'] = 'Add a calendar by uploading a new file. Update a calendar by uploading a file of the same name.'; ! $lang['l_delete_cal'] = 'Delete a Calendar'; ! $lang['l_logout'] = 'Logout'; ! $lang['l_cal_file'] = 'Calendar File'; ! $lang['l_php_error'] = 'PHP Error'; ! $upload_error_gen_lang = 'There was a problem with your upload.'; ! $upload_error_lang[0] = 'There was a problem with your upload.'; ! $upload_error_lang[1] = 'The file you are trying to upload is too big.'; ! $upload_error_lang[2] = 'The file you are trying to upload is too big.'; ! $upload_error_lang[3] = 'The file you are trying upload was only partially uploaded.'; ! $upload_error_lang[4] = 'You must select a file for upload.'; $lang['l_upload_error_type'] = 'Only .ics files may be uploaded.'; ! $lang['l_copy_error'] = 'Failed to copy file'; ! $lang['l_delete_error'] = 'Failed to delete file'; ! $lang['l_delete_success'] = 'was deleted successfully.'; ! $lang['l_action_success'] = 'Your action was successful.'; ! $lang['l_submit'] = 'Submit'; ! $lang['l_delete'] = 'Delete'; ! $all_cal_comb_lang = 'All Combined'; // New for 2.0 ! $lang['l_legend'] = 'Legend'; ! $lang['l_admin_subhead'] = 'Manage your calendars from this page'; ! $lang['l_prefs_subhead'] = 'Sets a cookie for visiting this site'; ! $lang['l_rss_info'] = 'RSS Information'; ! $lang['l_rss_subhead'] = 'Basic RSS feeds available for each calendar'; ! $lang['l_rss_notenabled'] = 'RSS is not enabled on this site'; // - navigation ! $lang['l_back'] = 'ZpÆÃµt'; ! $lang['l_next'] = 'Dalâ°ââ '; ! $lang['l_prev'] = 'Pâôedchozââ '; ! $lang['l_day_view'] = 'Zobraz den'; ! $lang['l_week_view'] = 'Zobraz tâΩden'; ! $lang['l_month_view'] = 'Zobraz mÆÃµsââ c'; ! $lang['l_year_view'] = 'Zobraz rok'; // --------------------------------- // $format_recur, items enclosed in % will be substituted with variables $format_recur_lang['delimiter'] = ', '; // ie, 'one, two, three' $format_recur_lang['yearly'] = array('rok','roky'); // for these, put singular ! $format_recur_lang['monthly'] = array('mÆÃµsââ c','mÆÃµsââ ce'); // and plural forms ! $format_recur_lang['weekly'] = array('tâΩden','tâΩdny'); // these will be %freq% ! $format_recur_lang['daily'] = array('den','dny'); // in the replacement below ! $format_recur_lang['hourly'] = array('hodina','hodiny'); ! $format_recur_lang['minutely'] = array('minuta','minuty'); ! $format_recur_lang['secondly'] = array('vtâôina','vteâôiny'); ! $format_recur_lang['start'] = 'KaâædâΩ %int% %freq% %for%'; // ie, 'Every 1 day until January 4' or 'Every 1 day for a count of 5' ! $format_recur_lang['until'] = 'aâæ do %date%'; // ie, 'until January 4' ! $format_recur_lang['count'] = '%int% krâ°t'; // ie, 'for 5 times' ! $format_recur_lang['bymonth'] = 'V mÆÃµsââ cââ ch: %list%'; // ie, 'In months: January, February, March' ! $format_recur_lang['bymonthday'] = 'V datech: %list%'; // ie, 'On dates: 1, 2, 3, 4' ! $format_recur_lang['byday'] = 'Ve dnech: %list%'; // ie, 'On days: Mon, Tues, Wed, Thurs' // --------------------------------- ! $daysofweek_lang = array ('NedÆÃµle','PondÆÃµlââ ','âöterâΩ','Stâôeda','ÆÃ¥tvrtek','Pâ°tek','Sobota'); ! $daysofweekshort_lang = array ('Ne','Po','âöt','St','ÆÃ¥t','Pâ°','So'); ! $daysofweekreallyshort_lang = array ('N','P','âö','S','ÆÃ¥','P','S'); ! $monthsofyear_lang = array ('Leden','âönor','Bâôezen','Duben','KvÆÃµten','ÆÃ¥erven','ÆÃ¥ervenec','Srpen','Zâ°âôââ ','âòââ jen','Listopad','Prosinec'); ! $monthsofyearshort_lang = array ('Led.','âöno.','Bâôe.','Dub.','KvÆÃµ.','ÆÃ¥er.','ÆÃ¥ec.','Srp.','Zâ°âô.','âòââ j.','List.','Pros.'); // For time formatting, check out: http://www.php.net/manual/en/function.date.php $timeFormat = 'G:i'; ! $timeFormat_small = 'g:i'; // For date formatting, see note below ! $dateFormat_day = '%A, %e. %B'; ! $dateFormat_week = '%e. %B'; ! $dateFormat_week_list = '%a, %e. %b'; ! $dateFormat_week_jump = '%e. %B';// new since last translation $dateFormat_month = '%B %Y'; ! $dateFormat_month_list = '%A, %e. %B'; $dateFormat_year = '%Y'; /* ! Notes about $dateFormat_* The pieces are similar to that of the PHP function strftime(), however only the following is supported at this time: --- 1,193 ---- ! <?php // Czech language include // For version 2.0 PHP iCalendar // ! // Translation by Petr KleteÄka (kle...@em...) // ! // Submit new translations to php...@gm... ! $lang['l_day'] = 'Den'; ! $lang['l_week'] = 'Týden'; ! $lang['l_month'] = 'MÄsÃc'; ! $lang['l_year'] = 'Rok'; ! $lang['l_calendar'] = 'KalendáÅ'; ! $lang['l_next_day'] = 'Dalšà den'; ! $lang['l_next_month'] = 'Dalšà Month'; ! $lang['l_next_week'] = 'Dalšà týden'; ! $lang['l_next_year'] = 'Dalšà Year'; ! $lang['l_last_day'] = 'PÅedchozà den'; ! $lang['l_last_month'] = 'PÅedchozà Month'; ! $lang['l_last_week'] = 'PÅedchozà týden'; ! $lang['l_last_year'] = 'PÅedchozà Year'; ! $lang['l_subscribe'] = 'PÅihlásit'; ! $lang['l_download'] = 'Stáhnout'; ! $lang['l_powered_by'] = 'BÄžà na'; ! $lang['l_event'] = 'Událost'; ! $lang['l_event_start'] = 'ZaÄátek'; $lang['l_event_end'] = 'Konec'; ! $lang['l_this_months'] = 'Události v tomto mÄsÃci'; $lang['l_date'] = 'Datum'; ! $lang['l_summary'] = 'Název'; ! $lang['l_all_day'] = 'Celodennà událost'; ! $lang['l_notes'] = 'Poznámky'; ! $lang['l_this_years'] = 'Události v tomto roce'; $lang['l_today'] = 'Dnes'; ! $lang['l_this_week'] = 'Tento týden'; ! $lang['l_this_month'] = 'Tento Month'; ! $lang['l_jump'] = 'PÅejÃt na'; ! $lang['l_todays'] = 'DneÅ¡nà události'; ! $lang['l_tomorrows'] = 'ZÃtÅejšà události'; ! $lang['l_goday'] = 'Zobrazit dneÅ¡nà den'; ! $lang['l_goweek'] = 'Zobrazit tento týden'; ! $lang['l_gomonth'] = 'Zobrazit tento mÄsÃc'; ! $lang['l_goyear'] = 'Zobrazit tento rok'; ! $lang['l_search'] = 'Hledat'; // the verb ! $lang['l_results'] = 'Výsledky hledánÃ'; ! $lang['l_pick_multiple'] = 'Výcenásobný výbÄr'; ! $lang['l_query'] = 'Dotaz'; // will be followed by the search query ! $lang['l_no_results'] = 'Žádná událost nenalezena'; $lang['l_goprint'] = 'Tisk'; ! $lang['l_view_calendars'] = 'Zobrazenà kalendáÅe'; ! $lang['l_time'] = 'Äas'; ! $lang['l_summary'] = 'Název'; $lang['l_description'] = 'Popis'; ! $lang['l_this_site_is'] = 'Tato stránka podporuje'; ! $lang['l_no_events_day'] = 'Dnes žádné události'; ! $lang['l_no_events_week'] = 'Žádné události tento týden.'; ! $lang['l_no_events_month'] = 'Žádné události tento mÄsÃc.'; ! $lang['l_rss_day_date'] = 'G:i'; // Lists just the time ! $lang['l_rss_week_date '] = '%b %e'; // Lists just the day ! $lang['l_rss_month_date '] = '%b %e'; // Lists just the day ! $lang['l_rss_language'] = 'cs-CZ'; ! $lang['l_search_took'] = 'Hledánà trvalo %s sekund'; ! $lang['l_starting_on'] = 'ZaÄÃná '; ! $lang['l_recurring_event'] = 'OpakujÃcà se událost'; ! $lang['l_exception'] = 'Výjimka'; ! $lang['l_no_query'] = 'Neby zadán dotaz'; ! $lang['l_preferences'] = 'NastavenÃ'; ! $lang['l_printer'] = 'Tiskárna'; ! $lang['l_select_lang'] = 'Výchozà jazyk'; ! $lang['l_select_cal'] = 'Výchozà kalendáÅ'; ! $lang['l_select_view'] = 'Výchozà zobrazenÃ'; ! $lang['l_select_time'] = 'Výchozà Äas zaÄátku'; ! $lang['l_select_timezone'] = 'Výchozà Äasová zóna'; ! $lang['l_select_endtime'] = 'Výchozà Äas konce'; ! $lang['l_select_timeformat']= 'Výchozà formát Äasu (AM/PM)'; ! $lang['l_select_day'] = 'Prvnà den v týdnu'; ! $lang['l_select_style'] = 'Výchozà styl'; ! $lang['l_set_prefs'] = 'Uložit nastavenÃ'; ! $lang['l_completed_date'] = 'DokonÄeno na'; ! $lang['l_completed'] = 'DokonÄeno'; ! $lang['l_created'] = 'VytvoÅen'; ! $lang['l_due'] = 'BÄhem'; ! $lang['l_priority'] = 'Důležitost'; ! $lang['l_priority_high'] = 'Vysoká'; ! $lang['l_priority_low'] = 'NÃzká'; ! $lang['l_priority_medium'] = 'StÅednÃ'; ! $lang['l_priority_none'] = 'Žádná'; ! $lang['l_status'] = 'Stav'; ! $lang['l_status_confirmed'] = 'POTVRZENO' ; ! $lang['l_status_cancelled'] = 'ZRUÅ ENO'; ! $lang['l_status_tentative'] = 'PÅEDBÄŽNÃ'; ! $lang['l_todo'] = 'Zbývá udÄlat'; ! $lang['l_unfinished'] = 'NedokonÄeno'; ! $lang['l_prefs_set'] = 'VaÅ¡e nastavenà byla uložena.'; ! $lang['l_prefs_unset'] = 'Nastavenà zruÅ¡ena. ZmÄny se projevà po obnovenà stránky.'; ! $lang['l_unset_prefs'] = 'ZruÅ¡it nastavenÃ'; ! $lang['l_organizer'] = 'Organizátor'; ! $lang['l_attendee'] = 'ÃÄastnÃk'; ! $lang['l_location'] = 'MÃsto'; ! $lang['l_download_event'] = 'Uložit událost'; ! $lang['l_url'] = 'URL'; ! $lang['l_admin_header'] = 'Administrace PHP iCalendar'; ! $lang['l_username'] = 'Jméno'; ! $lang['l_password'] = 'Heslo'; $lang['l_login'] = 'Login'; ! $lang['l_invalid_login'] = 'Å paté jméno nebo heslo.'; ! $lang['l_addupdate_cal'] = 'PÅidat nebo aktualizovat kalendáÅ'; ! $lang['l_addupdate_desc'] = 'PÅidat kalendáŠnahránÃm nového souboru. Aktualizovat kalendáŠnahránà souboru se stejným jménem.'; ! $lang['l_delete_cal'] = 'Smazat kalendáÅ'; ! $lang['l_logout'] = 'Odhlásit'; ! $lang['l_cal_file'] = 'Soubor kalendáÅe'; ! $lang['l_php_error'] = 'PHP chyba'; ! $upload_error_gen_lang = 'PÅi odesÃlánà souboru nastala chyba.'; ! $upload_error_lang[0] = 'PÅi odesÃlánà souboru nastala chyba.'; ! $upload_error_lang[1] = 'PokouÅ¡Ãte se odeslat pÅÃliÅ¡ velký soubor.'; ! $upload_error_lang[2] = 'PokouÅ¡Ãte se odeslat pÅÃliÅ¡ velký soubor.'; ! $upload_error_lang[3] = 'Soubor byl odeslán jen z Äásti.'; ! $upload_error_lang[4] = 'MusÃte vybrat soubor k odeslánÃ.'; $lang['l_upload_error_type'] = 'Only .ics files may be uploaded.'; ! $lang['l_copy_error'] = 'Chyba pÅi kopÃrovánà souboru'; ! $lang['l_delete_error'] = 'Chyba pÅi mazánà souboru'; ! $lang['l_delete_success'] = 'byla smazána úšpÄÅ¡nÄ.'; ! $lang['l_action_success'] = 'VaÅ¡e akce byla úspÄÅ¡ná.'; ! $lang['l_submit'] = 'Odeslat'; ! $lang['l_delete'] = 'Smazat'; ! $all_cal_comb_lang = 'VÅ¡e dohromady'; // New for 2.0 ! $lang['l_legend'] = 'Popisek'; ! $lang['l_admin_subhead'] = 'Nastavit VaÅ¡e kalendáÅe z této stránky'; ! $lang['l_prefs_subhead'] = 'Nastavit cookie pro zobrazenà této stránky'; ! $lang['l_rss_info'] = 'Informace o RSS'; ! $lang['l_rss_subhead'] = 'Základnà RSS kanál je dostupný pro vÅ¡echny kalendáÅe'; ! $lang['l_rss_notenabled'] = 'RSS je vypnuté'; // - navigation ! $lang['l_back'] = 'ZpÄt'; ! $lang['l_next'] = 'DalÅ¡Ã'; ! $lang['l_prev'] = 'PÅedchozÃ'; ! $lang['l_day_view'] = 'Ukázat den'; ! $lang['l_week_view'] = 'Ukázat týden'; ! $lang['l_month_view'] = 'Ukázat mÄsÃc'; ! $lang['l_year_view'] = 'Celý rok'; // --------------------------------- + + // $format_recur, items enclosed in % will be substituted with variables $format_recur_lang['delimiter'] = ', '; // ie, 'one, two, three' $format_recur_lang['yearly'] = array('rok','roky'); // for these, put singular ! $format_recur_lang['monthly'] = array('mÄsÃc','mÄsÃce'); // and plural forms ! $format_recur_lang['weekly'] = array('týden','týdny'); // these will be %freq% ! $format_recur_lang['daily'] = array('day','days'); // in the replacement below ! $format_recur_lang['hourly'] = array('hour','hours'); ! $format_recur_lang['minutely'] = array('minute','minutes'); ! $format_recur_lang['secondly'] = array('second','seconds'); ! $format_recur_lang['start'] = 'Každý %int% %freq% %for%'; // ie, 'Every 1 day until January 4' or 'Every 1 day for a count of 5' ! $format_recur_lang['until'] = 'do %date%'; // ie, 'until January 4' ! $format_recur_lang['count'] = 'do poÄtu %int%'; // ie, 'for 5 times' ! $format_recur_lang['bymonth'] = 'V mÄsÃcÃch: %list%'; // ie, 'In months: January, February, March' ! $format_recur_lang['bymonthday'] = 'V datumech: %list%'; // ie, 'On dates: 1, 2, 3, 4' ! $format_recur_lang['byday'] = 'V dnech: %list%'; // ie, 'On days: Mon, Tues, Wed, Thurs' // --------------------------------- ! $daysofweek_lang = array ('NedÄle','PondÄlÃ','Ãterý','StÅeda','Ätvrtek','Pátek','Sobota'); ! $daysofweekshort_lang = array ('Ne','Po','Ãt','St','Ät','Pá','So'); ! $daysofweekreallyshort_lang = array ('N','P','Ã','S','Ä','P','S'); ! $monthsofyear_lang = array ('Leden','Ãnor','BÅezen','Duben','KvÄten','Äerven','Äervenec','Srpen','ZáÅÃ','ÅÃjen','Listopad','Prosinec'); ! $monthsofyearshort_lang = array ('Led','Ãno','BÅe','Dub','KvÄ','Äer','Ävn','Srp','ZáÅ','ÅÃj','Lis','Pro'); // For time formatting, check out: http://www.php.net/manual/en/function.date.php $timeFormat = 'G:i'; ! $timeFormat_small = 'G:i'; // For date formatting, see note below ! $dateFormat_day = '%A, %B %e'; ! $dateFormat_week = '%B %e'; ! $dateFormat_week_list = '%a, %b %e'; ! $dateFormat_week_jump = '%b %e'; $dateFormat_month = '%B %Y'; ! $dateFormat_month_list = '%A, %B %e'; $dateFormat_year = '%Y'; + /* ! Notes about dateFormat_* The pieces are similar to that of the PHP function strftime(), however only the following is supported at this time: *************** *** 195,207 **** // Error messages - %s will be replaced with a variable $lang['l_error_title'] = 'Chyba!'; ! $lang['l_error_window'] = 'Chybovâ© okno!'; ! $lang['l_error_calendar'] = 'Pâôi vytvâ°âôenââ kalendâ°âôe âÃû%sâÃù se vyskytla chyba.'; ! $lang['l_error_path'] = 'Nelze otevâôââ t: "%s"'; ! $lang['l_error_back'] = 'Pouâæij tlaÆÃ§ââ tko "ZpÆÃµt" pro nâ°vrat.'; ! $lang['l_error_remotecal'] = 'Tento server blokuje vzdâ°lenâ© kalendâ°âôe, kterâ© nejsou odsouhlaseny.'; ! $lang['l_error_restrictedcal'] = 'Zkouâ°ââ â° pâôistupovat k zamknutâ©mu kalendâ°âôi.'; ! $lang['l_error_invalidcal'] = 'ChybnâΩ soubor. Vyber jinâΩ kalendâ°âô.'; ! $lang['l_error_cantopen'] = 'Unable to open calendar.'; ! $lang['l_error_cache'] = 'Unable to write to cache directory. Please check your config.'; ?> --- 206,219 ---- // Error messages - %s will be replaced with a variable $lang['l_error_title'] = 'Chyba!'; ! $lang['l_error_window'] = 'Stala se chyba!'; ! $lang['l_error_calendar'] = 'PÅi zprazovánà kalendáÅe "%s" se stala chyba.'; ! $lang['l_error_path'] = 'Nelze otevÅÃt cestu: "%s"'; ! $lang['l_error_back'] = 'Pro návrat použijte tlaÄÃtko "ZpÄt".'; ! $lang['l_error_remotecal'] = 'Na tomto serveru nejsou povoleny vzdálené kalendáÅe.'; ! $lang['l_error_restrictedcal'] = 'PÅÃstup ke kalendáÅi je omezen na tento server.'; ! $lang['l_error_invalidcal'] = 'Nesprávný soubor kalendáÅe. ProsÃm, zkuste jiný kalendáÅ.'; ! $lang['l_error_cantopen'] = 'KalendáŠnelze otevÅÃt.'; ! $lang['l_error_cache'] = 'Nelze zapisovat do adresáÅe cache. ProsÃm, zkontrolujte konfiguraÄnà soubor.'; ! $lang['l_prefs_off'] = 'Uživatelská nastavenà jsou vypnutá.'; ?> Index: french.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/languages/french.inc.php,v retrieving revision 1.31 retrieving revision 1.31.2.1 diff -C2 -d -r1.31 -r1.31.2.1 *** french.inc.php 5 Apr 2006 04:43:59 -0000 1.31 --- french.inc.php 12 Apr 2010 18:58:37 -0000 1.31.2.1 *************** *** 6,9 **** --- 6,10 ---- // Translation by Einbert (ei...@ei...) // And some sentences form version 1.0 made by La Shampouineuse (in...@la...) + // Some small corrections, and updates from 'english.inc.php' 1.73, by fero14041 (fer...@if...) // // Submit new translations to ch...@ch... *************** *** 38,42 **** $lang['l_this_month'] = 'Ce mois'; $lang['l_jump'] = 'Voir'; ! $lang['l_tomorrows'] = 'Evénement de demain'; $lang['l_goday'] = 'Voir aujourd\'hui'; $lang['l_goweek'] = 'Voir cette semaine'; --- 39,44 ---- $lang['l_this_month'] = 'Ce mois'; $lang['l_jump'] = 'Voir'; ! $lang['l_todays'] = 'Evénements d\'aujourd\'hui'; ! $lang['l_tomorrows'] = 'Evénements de demain'; $lang['l_goday'] = 'Voir aujourd\'hui'; $lang['l_goweek'] = 'Voir cette semaine'; *************** *** 49,52 **** --- 51,55 ---- $lang['l_no_results'] = 'Aucun événement trouvé'; $lang['l_goprint'] = 'Version imprimable'; + $lang['l_view_calendars'] = 'Retour à la vue des calendrier'; $lang['l_time'] = 'Heure'; $lang['l_summary'] = 'Résumé'; *************** *** 61,65 **** $lang['l_rss_language'] = 'fr-fr'; $lang['l_search_took'] = 'La recherche a pris %s seconds'; ! $lang['l_recurring_event'] = 'Evénement récurent'; $lang['l_exception'] = 'Exception'; $lang['l_no_query'] = 'Aucune requète'; --- 64,69 ---- $lang['l_rss_language'] = 'fr-fr'; $lang['l_search_took'] = 'La recherche a pris %s seconds'; ! $lang['l_starting_on'] = 'Starting on '; ! $lang['l_recurring_event'] = 'Evénement récurrent'; $lang['l_exception'] = 'Exception'; $lang['l_no_query'] = 'Aucune requète'; *************** *** 70,73 **** --- 74,80 ---- $lang['l_select_view'] = 'Choisissez votre vue par défaut'; $lang['l_select_time'] = 'Choisissez votre heure de début par défaut'; + $lang['l_select_timezone'] = 'Choisissez votre fuseau horaire'; + $lang['l_select_endtime'] = 'Choisissez votre heure de fin par défaut'; + $lang['l_select_timeformat']= 'Choisissez votre format d\'heure par défaut (AM/PM)'; $lang['l_select_day'] = 'Choisissez votre jour de début de semaine par défaut'; $lang['l_select_style'] = 'Choisissez votre style par défaut'; *************** *** 76,80 **** $lang['l_completed'] = 'Terminé'; $lang['l_created'] = 'Créé'; ! $lang['l_due'] = 'Fin:'; $lang['l_priority'] = 'Priorité'; $lang['l_priority_high'] = 'Haute'; --- 83,87 ---- $lang['l_completed'] = 'Terminé'; $lang['l_created'] = 'Créé'; ! $lang['l_due'] = 'Fin'; $lang['l_priority'] = 'Priorité'; $lang['l_priority_high'] = 'Haute'; *************** *** 82,89 **** $lang['l_priority_medium'] = 'Moyenne'; $lang['l_priority_none'] = 'Aucune'; ! $lang['l_status'] = 'Status:'; ! $lang['l_status_confirmed'] = 'CONFIRMED' ; ! $lang['l_status_cancelled'] = 'CANCELLED'; ! $lang['l_status_tentative'] = 'TENTATIVE'; $lang['l_todo'] = 'Tâches à réaliser'; $lang['l_unfinished'] = 'Non faites'; --- 89,96 ---- $lang['l_priority_medium'] = 'Moyenne'; $lang['l_priority_none'] = 'Aucune'; ! $lang['l_status'] = 'Status'; ! $lang['l_status_confirmed'] = 'CONFIRMED'; ! $lang['l_status_cancelled'] = 'CANCELLED'; ! $lang['l_status_tentative'] = 'TENTATIVE'; $lang['l_todo'] = 'Tâches à réaliser'; $lang['l_unfinished'] = 'Non faites'; *************** *** 91,98 **** $lang['l_prefs_unset'] = 'Préférences supprimées. Changement au prochain chargement de la page.'; $lang['l_unset_prefs'] = 'Supprimez les préférences'; ! $lang['l_organizer'] = 'Organizer'; ! $lang['l_attendee'] = 'Attendee'; ! $lang['l_status'] = 'Status'; ! $lang['l_location'] = 'Location'; $lang['l_admin_header'] = 'Administration de PHP iCalendar'; $lang['l_username'] = 'Utilisateur'; --- 98,106 ---- $lang['l_prefs_unset'] = 'Préférences supprimées. Changement au prochain chargement de la page.'; $lang['l_unset_prefs'] = 'Supprimez les préférences'; ! $lang['l_organizer'] = 'Organisateur'; ! $lang['l_attendee'] = 'Participant'; ! $lang['l_location'] = 'Lieu'; ! $lang['l_download_event'] = 'Télécharger l\'événement'; ! $lang['l_url'] = 'URL'; $lang['l_admin_header'] = 'Administration de PHP iCalendar'; $lang['l_username'] = 'Utilisateur'; *************** *** 103,107 **** $lang['l_addupdate_desc'] = 'Ajoutez un calendrier en chargeant un nouveau fichier. Modifiez un calendrier en chargeant un fichier de même nom.'; $lang['l_delete_cal'] = 'Effacez un calendrier'; ! $lang['l_logout'] = 'Logout'; $lang['l_cal_file'] = 'Fichier calendrier'; $lang['l_php_error'] = 'Erreur PHP'; --- 111,115 ---- $lang['l_addupdate_desc'] = 'Ajoutez un calendrier en chargeant un nouveau fichier. Modifiez un calendrier en chargeant un fichier de même nom.'; $lang['l_delete_cal'] = 'Effacez un calendrier'; ! $lang['l_logout'] = 'Déconnexion'; $lang['l_cal_file'] = 'Fichier calendrier'; $lang['l_php_error'] = 'Erreur PHP'; *************** *** 113,118 **** $upload_error_lang[4] = 'Vous devez choisir un fichier à télécharger.'; $lang['l_upload_error_type'] = 'Seuls des fichiers au format .ics peuvent être téléchargés.'; ! $lang['l_copy_error'] = 'La copie du fichier a échoué'; ! $lang['l_delete_error'] = 'La suppression du fichier a échoué'; $lang['l_delete_success'] = 'a été supprimé avec succès.'; $lang['l_action_success'] = 'Action effectuée avec succès.'; --- 121,126 ---- $upload_error_lang[4] = 'Vous devez choisir un fichier à télécharger.'; $lang['l_upload_error_type'] = 'Seuls des fichiers au format .ics peuvent être téléchargés.'; ! $lang['l_copy_error'] = 'La copie du fichier a échoué.'; ! $lang['l_delete_error'] = 'La suppression du fichier a échoué.'; $lang['l_delete_success'] = 'a été supprimé avec succès.'; $lang['l_action_success'] = 'Action effectuée avec succès.'; *************** *** 123,130 **** // New for 2.0 $lang['l_legend'] = 'Légende'; ! $lang['l_admin_subhead'] = 'Contrôlez vos calendriers à partir de cette page'; ! $lang['l_prefs_subhead'] = 'Stock un cookie pour la visite de ce site'; $lang['l_rss_info'] = 'Information RSS'; ! $lang['l_rss_subhead'] = 'RSS feeds basic disponible pour chaque calendrier'; $lang['l_rss_notenabled'] = 'RSS n\'est pas disponible sur ce site'; --- 131,138 ---- // New for 2.0 $lang['l_legend'] = 'Légende'; ! $lang['l_admin_subhead'] = 'Contrôlez vos calendriers à partir de cette page.'; ! $lang['l_prefs_subhead'] = 'Stocke un cookie pour la visite de ce site.'; $lang['l_rss_info'] = 'Information RSS'; ! $lang['l_rss_subhead'] = 'Flux RSS disponible pour chaque calendrier'; $lang['l_rss_notenabled'] = 'RSS n\'est pas disponible sur ce site'; *************** *** 170,174 **** // For time formatting, check out: http://www.php.net/manual/en/function.date.php $timeFormat = 'H:i'; ! $timeFormat_small = 'g:i'; // For date formatting, see note below --- 178,182 ---- // For time formatting, check out: http://www.php.net/manual/en/function.date.php $timeFormat = 'H:i'; ! $timeFormat_small = 'G:i'; // For date formatting, see note below *************** *** 206,211 **** $lang['l_error_restrictedcal'] = 'Vous avez essayé d\'utiliser un calendrier dont les permissions sont restreintes sur ce serveur.'; $lang['l_error_invalidcal'] = 'Fichier calendrier invalide. Veuillez essayer un calendrier différent.'; ! $lang['l_error_cantopen'] = 'Unable to open calendar.'; ! $lang['l_error_cache'] = 'Unable to write to cache directory. Please check your config.'; ?> --- 214,220 ---- $lang['l_error_restrictedcal'] = 'Vous avez essayé d\'utiliser un calendrier dont les permissions sont restreintes sur ce serveur.'; $lang['l_error_invalidcal'] = 'Fichier calendrier invalide. Veuillez essayer un calendrier différent.'; ! $lang['l_error_cantopen'] = 'Impossible d\'ouvrir le calendrier.'; ! $lang['l_error_cache'] = 'Impossible d\'écrire dans le répertoire de cache. Vérifiez votre config. SVP.'; ! $lang['l_prefs_off'] = 'Les préférences sont désactivées pour cette installation.'; ?> Index: german.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/languages/german.inc.php,v retrieving revision 1.34 retrieving revision 1.34.2.1 diff -C2 -d -r1.34 -r1.34.2.1 *** german.inc.php 30 Jan 2009 20:49:25 -0000 1.34 --- german.inc.php 12 Apr 2010 18:58:37 -0000 1.34.2.1 *************** *** 1,3 **** ! <?php // German language include --- 1,3 ---- ! <?php // German language include Index: korean.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/languages/korean.inc.php,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** korean.inc.php 16 May 2007 23:35:25 -0000 1.7 --- korean.inc.php 12 Apr 2010 18:58:37 -0000 1.7.2.1 *************** *** 1,3 **** ! <?php // English language include --- 1,3 ---- ! <?php // English language include |
Update of /cvsroot/phpicalendar/phpicalendar/templates/default/images In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875/templates/default/images Modified Files: Tag: phpicalendar-editor allday_1.gif allday_2.gif allday_3.gif allday_4.gif allday_5.gif allday_6.gif allday_7.gif Log Message: merge with HEAD Index: allday_1.gif =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/default/images/allday_1.gif,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 Binary files /tmp/cvstv7D0c and /tmp/cvsNx1Ilu differ Index: allday_2.gif =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/default/images/allday_2.gif,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 Binary files /tmp/cvsjKmZld and /tmp/cvs2tSWHu differ Index: allday_3.gif =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/default/images/allday_3.gif,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 Binary files /tmp/cvsGl8Kvg and /tmp/cvsNr5wSx differ Index: allday_4.gif =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/default/images/allday_4.gif,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 Binary files /tmp/cvs3aKBzg and /tmp/cvslyUeXx differ Index: allday_5.gif =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/default/images/allday_5.gif,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 Binary files /tmp/cvs8eYrWg and /tmp/cvsonWUky differ Index: allday_6.gif =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/default/images/allday_6.gif,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 Binary files /tmp/cvsJuJIlf and /tmp/cvsISl9Kw differ Index: allday_7.gif =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/default/images/allday_7.gif,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 Binary files /tmp/cvs0fRKpf and /tmp/cvsQOl2Pw differ |
From: <par...@us...> - 2010-04-12 18:58:48
|
Update of /cvsroot/phpicalendar/phpicalendar/includes In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875/includes Modified Files: Tag: phpicalendar-editor edit.php event.php Log Message: merge with HEAD Index: edit.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/includes/Attic/edit.php,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** edit.php 23 Feb 2009 21:28:57 -0000 1.1.2.2 --- edit.php 12 Apr 2010 18:58:37 -0000 1.1.2.3 *************** *** 17,20 **** --- 17,32 ---- + // Format event time + $start = date('Y-m-d H:i', $arr['start_unixtime']); + if ($arr['spans_day']) { + $allday = 1; + $end = ''; + } + else { + $end = date('Y-m-d H:i', $arr['end_unixtime']); + $allday = 0; + } + + // Sanitize input fields $arr['event_text'] = sanitizeForWeb(urldecode($arr['event_text'])); *************** *** 78,81 **** --- 90,96 ---- 'calnumber' => $calnumber, 'event_text' => $arr['event_text'], + 'event_start' => $start, + 'event_end' => $end, + 'allday' => $allday, 'description' => $arr['description'], 'location' => $arr['location'], *************** *** 88,91 **** --- 103,108 ---- 'template' => $phpiCal_config->template, 'l_calendar' => $lang['l_calendar'], + 'l_event_start' => $lang['l_event_start'], + 'l_event_end' => $lang['l_event_end'], 'l_description' => $lang['l_description'], 'l_summary' => $lang['l_summary'], Index: event.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/includes/event.php,v retrieving revision 1.51.2.1 retrieving revision 1.51.2.2 diff -C2 -d -r1.51.2.1 -r1.51.2.2 *** event.php 23 Feb 2009 21:28:57 -0000 1.51.2.1 --- event.php 12 Apr 2010 18:58:37 -0000 1.51.2.2 *************** *** 31,43 **** $event['description'] = sanitizeForWeb(urldecode($event['description'])); $event['location'] = sanitizeForWeb(urldecode($event['location'])); ! $display =''; ! if (isset($event['description'])) $event['description'] = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",'<a target="_new" href="\0">\0</a>',$event['description']); if (isset($organizer) && is_array($organizer)) { $i=0; - $display .= $lang['l_organizer'] . ' - '; $organizers = array(); ! foreach ($organizer as $val) { ! $organizers[] = $organizer[$i]["name"]; $i++; } --- 31,48 ---- $event['description'] = sanitizeForWeb(urldecode($event['description'])); $event['location'] = sanitizeForWeb(urldecode($event['location'])); ! if (isset($event['description'])) { ! $event['description'] = ereg_replace("(blocked)?([[:alpha:]]+://([^<>&[:space:]]|&)+[[:alnum:]/])", '<a target="_new" href="\2">\2</a>', $event['description']); ! $event['description'] = ereg_replace("(blocked)?(mailto:)?([[:alnum:]_.%+-]+@[[:alnum:].-]+\.[[:alpha:]]{2,4})", '<a href="mailto:\3">\3</a>', $event['description']); ! } if (isset($organizer) && is_array($organizer)) { $i=0; $organizers = array(); ! foreach ($organizer as $val) { ! if (!empty($organizer[$i]["email"])) { ! $organizers[] .= "<a href=\"mailto:{$organizer[$i]["email"]}\">{$organizer[$i]["name"]}</a>"; ! } else { ! $organizers[] .= $organizer[$i]["name"]; ! } $i++; } *************** *** 46,53 **** if (isset($attendee) && is_array($attendee)) { $i=0; - $display .= $lang['l_attendee'] . ' - '; $attendees = array(); ! foreach ($attendee as $val) { ! $attendees[] .= $attendee[$i]["name"]; $i++; } --- 51,61 ---- if (isset($attendee) && is_array($attendee)) { $i=0; $attendees = array(); ! foreach ($attendee as $val) { ! if (!empty($attendee[$i]["email"])) { ! $attendees[] .= "<a href=\"mailto:{$attendee[$i]["email"]}\">{$attendee[$i]["name"]}</a>"; ! } else { ! $attendees[] .= $attendee[$i]["name"]; ! } $i++; } *************** *** 109,113 **** 'event_text' => $event['event_text'], 'event_times' => $event_times, ! 'description' => str_replace('\n',"<br />",$event['description']), 'organizer' => $organizer, 'attendee' => $attendee, --- 117,121 ---- 'event_text' => $event['event_text'], 'event_times' => $event_times, ! 'description' => $event['description'], 'organizer' => $organizer, 'attendee' => $attendee, *************** *** 116,120 **** 'event_download' => $event_download, 'url' => $event['url'], ! 'cal_title_full' => $event['calname'].' '.$lang['l_calendar'], 'template' => $phpiCal_config->template, 'l_summary' => $lang['l_summary'], --- 124,128 ---- 'event_download' => $event_download, 'url' => $event['url'], ! 'cal_title_full' => $event['calname'], 'template' => $phpiCal_config->template, 'l_summary' => $lang['l_summary'], |
Update of /cvsroot/phpicalendar/phpicalendar/functions/parse In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875/functions/parse Modified Files: Tag: phpicalendar-editor end_vevent.php overlapping_events.php parse_tzs.php recur_functions.php Log Message: merge with HEAD Index: end_vevent.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/parse/end_vevent.php,v retrieving revision 1.25 retrieving revision 1.25.2.1 diff -C2 -d -r1.25 -r1.25.2.1 *** end_vevent.php 26 Jan 2009 05:07:38 -0000 1.25 --- end_vevent.php 12 Apr 2010 18:58:37 -0000 1.25.2.1 *************** *** 30,35 **** $uid_valid = false; }elseif(in_array($uid, $uid_list)) { ! #$uid .= $uid_counter; ! #$uid_counter++; }else{ $uid_valid = true; --- 30,35 ---- $uid_valid = false; }elseif(in_array($uid, $uid_list)) { ! # UID seen before. If sequence is the default, bump it. ! if ($sequence == 0) $sequence++; }else{ $uid_valid = true; *************** *** 67,71 **** } # get hour and minute adjusted to allowed grid times ! $drawKey = drawEventTimes($start_time, $end_time); preg_match ('/([0-9]{2})([0-9]{2})/', $drawKey['draw_start'], $time3); preg_match ('/([0-9]{2})([0-9]{2})/', $drawKey['draw_end'], $time4); --- 67,71 ---- } # get hour and minute adjusted to allowed grid times ! $drawKey = drawEventTimes($start_time, $end_time, ($length >= (60*60*24))); preg_match ('/([0-9]{2})([0-9]{2})/', $drawKey['draw_start'], $time3); preg_match ('/([0-9]{2})([0-9]{2})/', $drawKey['draw_end'], $time4); *************** *** 322,326 **** if($this_date_tmp == $end_date_tmp && ($end_time == '0000')) continue; if(!isset($master_array[$this_date_tmp][$time_key][$uid]['sequence']) || ! $sequence > $master_array[$this_date_tmp][$time_key][$uid]['sequence']){ $master_array[$this_date_tmp][$time_key][$uid] = array ( 'event_start' => $start_time, # hhmm --- 322,327 ---- if($this_date_tmp == $end_date_tmp && ($end_time == '0000')) continue; if(!isset($master_array[$this_date_tmp][$time_key][$uid]['sequence']) || ! $sequence > $master_array[$this_date_tmp][$time_key][$uid]['sequence'] ! ){ $master_array[$this_date_tmp][$time_key][$uid] = array ( 'event_start' => $start_time, # hhmm *************** *** 349,353 **** 'recur' => $recur ); ! } if($time_key > -1) checkOverlap($this_date_tmp, $time_key, $uid); } --- 350,354 ---- 'recur' => $recur ); ! } if($time_key > -1) checkOverlap($this_date_tmp, $time_key, $uid); } Index: overlapping_events.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/parse/overlapping_events.php,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** overlapping_events.php 27 Dec 2008 10:58:51 -0000 1.3 --- overlapping_events.php 12 Apr 2010 18:58:37 -0000 1.3.2.1 *************** *** 141,145 **** $draw_end = $event['event_end']; if (isset($event['display_end'])) $draw_end = $event['display_end']; ! $drawTimes = drawEventTimes($event['event_start'], $draw_end); // Track if $event has been merged in, so we don't re-add the details to 'event' or 'overlapRanges' multiple times. --- 141,147 ---- $draw_end = $event['event_end']; if (isset($event['display_end'])) $draw_end = $event['display_end']; ! $drawTimes = drawEventTimes($event['event_start'], $draw_end, ($event['event_length'] >= (60*60*24))); ! if ($event_time == "0000") $drawTimes['draw_start'] = "0000"; ! if ($draw_end == "2400") $drawTimes['draw_end'] = "2400"; // Track if $event has been merged in, so we don't re-add the details to 'event' or 'overlapRanges' multiple times. Index: parse_tzs.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/parse/parse_tzs.php,v retrieving revision 1.10 retrieving revision 1.10.2.1 diff -C2 -d -r1.10 -r1.10.2.1 *** parse_tzs.php 2 Jan 2009 07:12:12 -0000 1.10 --- parse_tzs.php 12 Apr 2010 18:58:37 -0000 1.10.2.1 *************** *** 3,7 **** if ($ifile == FALSE) exit(error($lang['l_error_cantopen'], $filename)); $nextline = fgets($ifile); ! if (trim($nextline) != 'BEGIN:VCALENDAR') exit(error($lang['l_error_invalidcal'], $filename)); // read file in line by line --- 3,7 ---- if ($ifile == FALSE) exit(error($lang['l_error_cantopen'], $filename)); $nextline = fgets($ifile); ! #if (trim($nextline) != 'BEGIN:VCALENDAR') exit(error($lang['l_error_invalidcal'], $filename)); // read file in line by line Index: recur_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/parse/recur_functions.php,v retrieving revision 1.18 retrieving revision 1.18.2.1 diff -C2 -d -r1.18 -r1.18.2.1 *** recur_functions.php 29 Dec 2008 03:07:34 -0000 1.18 --- recur_functions.php 12 Apr 2010 18:58:37 -0000 1.18.2.1 *************** *** 11,20 **** function add_recur($times,$freq=''){ global $recur_data; ! global $count, $mArray_begin, $mArray_end, $except_dates, $start_date, $start_date_unixtime,$end_range_unixtime,$until_unixtime, $day_offset, $current_view; if (!is_array($times)) $times = array($times); /* BYMONTH, BYWEEKNO, BYYEARDAY, BYMONTHDAY, BYDAY, BYHOUR, BYMINUTE, BYSECOND and BYSETPOS */ #dump_times($times); if ($current_view != 'search'){ ! $times = restrict_bymonth($times,$freq); # $times = restrict_byweekno($times,$freq); $times = restrict_byyearday($times,$freq); --- 11,20 ---- function add_recur($times,$freq=''){ global $recur_data; ! global $count, $mArray_begin, $mArray_end, $except_dates, $start_date, $start_date_unixtime,$end_range_unixtime,$until_unixtime, $day_offset, $current_view; if (!is_array($times)) $times = array($times); /* BYMONTH, BYWEEKNO, BYYEARDAY, BYMONTHDAY, BYDAY, BYHOUR, BYMINUTE, BYSECOND and BYSETPOS */ #dump_times($times); if ($current_view != 'search'){ ! $times = restrict_bymonth($times,$freq); # $times = restrict_byweekno($times,$freq); $times = restrict_byyearday($times,$freq); *************** *** 24,49 **** $times = restrict_bysetpos($times,$freq);#echo "restrict_bysetpos"; $times = array_unique($times); ! sort($times); } $until_date = date("Ymd",$end_range_unixtime); ! foreach ($times as $time){ #echo "time:". date("Ymd",$time)." $until_date<br>\n"; if (!isset($time) || $time == '') continue; $date = date("Ymd",$time); $time = strtotime("$date 12:00:00"); ! # day offset fixes shifts across day boundaries due to time diffs. # These are already fixed for the initial instance, but need to be fixed for recurrences if (date("Ymd", $time) != $start_date) $time = $time + $day_offset * (24*60*60); ! if(isset($time) && $time != '' ! && !in_array($time, $recur_data) ! && !in_array($date, $except_dates) ! && $time <= $until_unixtime ! && $time >= $start_date_unixtime && $date <= $until_date ! ){ $count--; #echo "\n.$count\n"; ! if($time >= $mArray_begin ! && $time <= $mArray_end && $count >= 0 ) $recur_data[] = $time; --- 24,49 ---- $times = restrict_bysetpos($times,$freq);#echo "restrict_bysetpos"; $times = array_unique($times); ! sort($times); } $until_date = date("Ymd",$end_range_unixtime); ! foreach ($times as $time){ #echo "time:". date("Ymd",$time)." $until_date<br>\n"; if (!isset($time) || $time == '') continue; $date = date("Ymd",$time); $time = strtotime("$date 12:00:00"); ! # day offset fixes shifts across day boundaries due to time diffs. # These are already fixed for the initial instance, but need to be fixed for recurrences if (date("Ymd", $time) != $start_date) $time = $time + $day_offset * (24*60*60); ! if(isset($time) && $time != '' ! && !in_array($time, $recur_data) ! && !in_array($date, $except_dates) ! && $time <= $until_unixtime ! && $time >= $start_date_unixtime && $date <= $until_date ! ){ $count--; #echo "\n.$count\n"; ! if($time >= $mArray_begin ! && $time <= $mArray_end && $count >= 0 ) $recur_data[] = $time; *************** *** 56,67 **** global $bymonth, $byweekno, $bymonthday, $year, $start_unixtime, $freq_type; if(!empty($byweekno)) return $time; ! if(empty($bymonth)) $bymonth = array(date("m", $start_unixtime)); $d = date("d",$start_unixtime); if (!empty($bymonthday)) $d = 1; ! foreach ($bymonth as $m){ $time = mktime(12,0,0,$m,$d,$year); #echo "exm:".date("Ymd",$time)."\n"; $times[] = $time; ! } ! return $times; } function expand_byweekno($times){ --- 56,67 ---- global $bymonth, $byweekno, $bymonthday, $year, $start_unixtime, $freq_type; if(!empty($byweekno)) return $time; ! if(empty($bymonth)) $bymonth = array(date("m", $start_unixtime)); $d = date("d",$start_unixtime); if (!empty($bymonthday)) $d = 1; ! foreach ($bymonth as $m){ $time = mktime(12,0,0,$m,$d,$year); #echo "exm:".date("Ymd",$time)."\n"; $times[] = $time; ! } ! return $times; } function expand_byweekno($times){ *************** *** 73,78 **** if (empty($byweekno)) return $times; $total_weeks = date("W",mktime(12,0,0,12,24,$year) ) +1; ! $w1_start = strtotime("this $wkst3char", mktime(12,0,0,1,1,$year) ); ! foreach($byweekno as $weekno){ if($weekno < 0) $weekno = $weekno + $total_weeks; #echo "\n $wkst3char w1st:".date("Ymd", $w1_start)." ".date("Ymd", mktime(12,0,0,1,1,$year))." weekno:$weekno"; --- 73,78 ---- if (empty($byweekno)) return $times; $total_weeks = date("W",mktime(12,0,0,12,24,$year) ) +1; ! $w1_start = strtotime("this $wkst3char", mktime(12,0,0,1,1,$year) ); ! foreach($byweekno as $weekno){ if($weekno < 0) $weekno = $weekno + $total_weeks; #echo "\n $wkst3char w1st:".date("Ymd", $w1_start)." ".date("Ymd", mktime(12,0,0,1,1,$year))." weekno:$weekno"; *************** *** 86,98 **** global $byyearday, $year; if (empty($byyearday)) return $times; ! $py = $year-1; $ny = $year+1; $new_times = array(); ! foreach($times as $time){ foreach($byyearday as $yearday){ if($yearday > 0){ $day = strtotime("+$yearday days Dec 31, $py");#echo "\n".date("Ymd",$day)." = +$yearday days Dec 31, $py"; }else $day = strtotime("Jan 1 $ny $yearday days"); if(date("Y",$day == $year)) $new_times[] = $day; ! } } # dump_times($new_times); --- 86,98 ---- global $byyearday, $year; if (empty($byyearday)) return $times; ! $py = $year-1; $ny = $year+1; $new_times = array(); ! foreach($times as $time){ foreach($byyearday as $yearday){ if($yearday > 0){ $day = strtotime("+$yearday days Dec 31, $py");#echo "\n".date("Ymd",$day)." = +$yearday days Dec 31, $py"; }else $day = strtotime("Jan 1 $ny $yearday days"); if(date("Y",$day == $year)) $new_times[] = $day; ! } } # dump_times($new_times); *************** *** 103,114 **** global $bymonthday, $year; if (empty($bymonthday)) return $times; ! foreach($times as $time){ $month = date('m',$time); ! foreach($bymonthday as $monthday){ if($monthday < 0) $monthday = date("t",$time) + $monthday +1; $new_times[] = mktime(12,0,0,$month,$monthday,$year); #echo "monthday:$monthday\n"; ! } ! } return $new_times; } --- 103,114 ---- global $bymonthday, $year; if (empty($bymonthday)) return $times; ! foreach($times as $time){ $month = date('m',$time); ! foreach($bymonthday as $monthday){ if($monthday < 0) $monthday = date("t",$time) + $monthday +1; $new_times[] = mktime(12,0,0,$month,$monthday,$year); #echo "monthday:$monthday\n"; ! } ! } return $new_times; } *************** *** 132,137 **** case 'week': #need to find the first day of the appropriate week. ! $next_date_time = strtotime("this $on_day",strtotime($the_sunday)) + (12 * 60 * 60); ! $times[] = $next_date_time; break; case 'month': --- 132,137 ---- case 'week': #need to find the first day of the appropriate week. ! $next_date_time = strtotime("this $on_day",strtotime($the_sunday)) + (12 * 60 * 60); ! $times[] = $next_date_time; break; case 'month': *************** *** 140,145 **** if(empty($byweekno)){ $week_arr = array(1,2,3,4,5); ! if(isset($byday_arr[2]) && $byday_arr[2] !='') $week_arr = array($byday_arr[2]); ! $month_start = strtotime(date("Ym00",$time)); $month_end = strtotime(date("Ymt",$time))+ (36 * 60 * 60); if($freq_type == 'year' && empty($bymonth)){ --- 140,145 ---- if(empty($byweekno)){ $week_arr = array(1,2,3,4,5); ! if(isset($byday_arr[2]) && $byday_arr[2] !='') $week_arr = array($byday_arr[2]); ! $month_start = strtotime(date("Ym01",$time)) - (24 * 60 * 60); $month_end = strtotime(date("Ymt",$time))+ (36 * 60 * 60); if($freq_type == 'year' && empty($bymonth)){ *************** *** 147,166 **** $month_end = mktime(12,0,0,1,1,$year+1); } foreach($week_arr as $week){ #echo "<pre>$summary ".$byday_arr[1].$week.$on_day." st:".date("Ymd",$month_start)." t:".date("Ymd",$time)."\n"; if($byday_arr[1] == '-') $next_date_time = strtotime($byday_arr[1].$week.$on_day,$month_end); ! else $next_date_time = strtotime($byday_arr[1].$week.$on_day,$month_start); # check that we're still in the same month ! if (date("m",$next_date_time) == date("m",$time) ) $times[] = $next_date_time; } }else{ # byweekno should act like freq_type = week ! $next_date_time = strtotime("this $on_day",strtotime($the_sunday)) + (12 * 60 * 60); ! $times[] = $next_date_time; } break; default: $month_start = strtotime(date("Ym01",$time)); ! $next_date_time = strtotime($byday_arr[1].$byday_arr[2].$on_day, $month_start); } } --- 147,173 ---- $month_end = mktime(12,0,0,1,1,$year+1); } + $month_start_day = strtolower(date("D", $month_start)); foreach($week_arr as $week){ #echo "<pre>$summary ".$byday_arr[1].$week.$on_day." st:".date("Ymd",$month_start)." t:".date("Ymd",$time)."\n"; if($byday_arr[1] == '-') $next_date_time = strtotime($byday_arr[1].$week.$on_day,$month_end); ! else { ! # we need this special offset in case the event day coincides with the month start day ! # eg: month starts on a Sunday, our event is the Nth Sunday of the month... without this ! # special offset, the event will be added to the (N+1)th Sunday of the month ! $special_offset = ($month_start_day == $on_day) ? (24 * 60 * 60) : 0; ! $next_date_time = strtotime($byday_arr[1] . $week . $on_day, ($month_start + $special_offset)); ! } # check that we're still in the same month ! if (date("m",$next_date_time) == date("m",$time) ) $times[] = $next_date_time; } }else{ # byweekno should act like freq_type = week ! $next_date_time = strtotime("this $on_day",strtotime($the_sunday)) + (12 * 60 * 60); ! $times[] = $next_date_time; } break; default: $month_start = strtotime(date("Ym01",$time)); ! $next_date_time = strtotime($byday_arr[1].$byday_arr[2].$on_day, $month_start); } } *************** *** 174,180 **** if (empty($bymonth) || !empty($byyearday)) return $times; $new_times=array(); ! foreach ($times as $time){ if(in_array(date("m", $time), $bymonth)) $new_times[] = $time; ! } return $new_times; } --- 181,187 ---- if (empty($bymonth) || !empty($byyearday)) return $times; $new_times=array(); ! foreach ($times as $time){ if(in_array(date("m", $time), $bymonth)) $new_times[] = $time; ! } return $new_times; } *************** *** 196,205 **** $yearday = 365 + $yearday +1; if(date("L",$time)) $yearday += 1; ! } $yearday_arr[] = $yearday; } # date(z,$time) gives 0 for Jan 1 if(in_array((date("z", $time)+1), $yearday_arr)) $new_times[] = $time; ! } return $new_times; } --- 203,212 ---- $yearday = 365 + $yearday +1; if(date("L",$time)) $yearday += 1; ! } $yearday_arr[] = $yearday; } # date(z,$time) gives 0 for Jan 1 if(in_array((date("z", $time)+1), $yearday_arr)) $new_times[] = $time; ! } return $new_times; } *************** *** 213,219 **** if($monthday < 0) $monthday = date("t",$time) + $monthday +1; $monthday_arr[] = $monthday; ! } if(in_array(date("j", $time), $monthday_arr)) $new_times[] = $time; ! } return $new_times; } --- 220,226 ---- if($monthday < 0) $monthday = date("t",$time) + $monthday +1; $monthday_arr[] = $monthday; ! } if(in_array(date("j", $time), $monthday_arr)) $new_times[] = $time; ! } return $new_times; } *************** *** 233,237 **** $new_times=array(); foreach ($times as $time) if(in_array(strtolower(date("D", $time)), $byday3)) $new_times[] = $time; ! return $new_times; } --- 240,244 ---- $new_times=array(); foreach ($times as $time) if(in_array(strtolower(date("D", $time)), $byday3)) $new_times[] = $time; ! return $new_times; } *************** *** 240,248 **** if(empty($bysetpos)) return $times; sort($times); ! $new_times=array(); foreach($bysetpos as $setpos){ $new_times[] = implode('',array_slice($times, $setpos, 1)); } ! return $new_times; } --- 247,255 ---- if(empty($bysetpos)) return $times; sort($times); ! $new_times=array(); foreach($bysetpos as $setpos){ $new_times[] = implode('',array_slice($times, $setpos, 1)); } ! return $new_times; } |
From: <par...@us...> - 2010-04-12 18:58:46
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875/functions Modified Files: Tag: phpicalendar-editor calendar_functions.php date_functions.php draw_functions.php event.js ical_parser.php init.inc.php template.php userauth_functions.php Log Message: merge with HEAD Index: calendar_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/calendar_functions.php,v retrieving revision 1.36 retrieving revision 1.36.2.1 diff -C2 -d -r1.36 -r1.36.2.1 *** calendar_functions.php 26 Jan 2009 03:27:30 -0000 1.36 --- calendar_functions.php 12 Apr 2010 18:58:37 -0000 1.36.2.1 *************** *** 188,191 **** --- 188,195 ---- // Print each calendar option. $return = ''; + + $all_cals = false; + if (count($cals) > 1) $all_cals = true; + foreach ($cals as $cal_tmp) { // Format the calendar path for display. *************** *** 245,248 **** --- 249,256 ---- $cal_encoded_tmp = md5($phpiCal_config->salt.$cal_tmp);; } + + // Try to detect unselected calendars + if (!in_array($cal_encoded_tmp, explode(",", $cal))) $all_cals = false; + // Display the option. // *************** *** 252,272 **** if($pick) { if (in_array($cal_encoded_tmp, explode(",", $cal)) || count($cals) == count(explode(",", $cal))) { ! $return .= "<option value=\"$cal_encoded_tmp\" selected=\"selected\">$cal_displayname_tmp</option>\n"; } else { ! $return .= "<option value=\"$cal_encoded_tmp\">$cal_displayname_tmp</option>\n"; } } else { ! $cal_httpPrefix_tmp = str_replace('webcal://', 'http://', $cal_tmp); ! if ($cal_encoded_tmp == urldecode($cal)) { ! $return .= "<option value=\"$current_view.php?cal=$cal_encoded_tmp&getdate=$getdate\" selected=\"selected\">$cal_displayname_tmp</option>"; ! } else { ! $return .= "<option value=\"$current_view.php?cal=$cal_encoded_tmp&getdate=$getdate\">$cal_displayname_tmp</option>"; } - } } // option to open all (non-web) calenders together if (!$pick) { ! if ($cal == $phpiCal_config->ALL_CALENDARS_COMBINED) { $return .= "<option value=\"$current_view.php?cal=$phpiCal_config->ALL_CALENDARS_COMBINED&getdate=$getdate\" selected=\"selected\">$all_cal_comb_lang</option>"; } else { --- 260,279 ---- if($pick) { if (in_array($cal_encoded_tmp, explode(",", $cal)) || count($cals) == count(explode(",", $cal))) { ! $return .= "<option value=\"$cal_encoded_tmp\" selected=\"selected\">$cal_displayname_tmp</option>\n"; } else { ! $return .= "<option value=\"$cal_encoded_tmp\">$cal_displayname_tmp</option>\n"; } } else { ! if ($cal_encoded_tmp == $cal || $cal_encoded_tmp == urldecode($cal)) { ! $return .= "<option value=\"$current_view.php?cal=$cal_encoded_tmp&getdate=$getdate\" selected=\"selected\">$cal_displayname_tmp</option>"; ! } else { ! $return .= "<option value=\"$current_view.php?cal=$cal_encoded_tmp&getdate=$getdate\">$cal_displayname_tmp</option>"; ! } } } // option to open all (non-web) calenders together if (!$pick) { ! if ($all_cals || $cal == $phpiCal_config->ALL_CALENDARS_COMBINED) { $return .= "<option value=\"$current_view.php?cal=$phpiCal_config->ALL_CALENDARS_COMBINED&getdate=$getdate\" selected=\"selected\">$all_cal_comb_lang</option>"; } else { *************** *** 274,277 **** --- 281,285 ---- } } + return $return; } \ No newline at end of file Index: date_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/date_functions.php,v retrieving revision 1.52.2.2 retrieving revision 1.52.2.3 diff -C2 -d -r1.52.2.2 -r1.52.2.3 *** date_functions.php 23 Feb 2009 21:28:57 -0000 1.52.2.2 --- date_functions.php 12 Apr 2010 18:58:37 -0000 1.52.2.3 *************** *** 5,8 **** --- 5,32 ---- + // get remote file last modification date (returns unix timestamp) + function remote_filemtime($url) { + $fp = fopen($url, 'r'); + if (!$fp) return 0; + $metadata = stream_get_meta_data($fp); + fclose($fp); + + $unixtime = 0; + foreach ($metadata['wrapper_data'] as $response) { + // case: redirection + // WARNING: does not handle relative redirection + if (substr(strtolower($response), 0, 10) == 'location: ') { + return GetRemoteLastModified(substr($response, 10)); + } + // case: last-modified + else if (substr(strtolower($response), 0, 15) == 'last-modified: ') { + $unixtime = strtotime(substr($response, 15)); + break; + } + } + + return $unixtime; + } + // takes iCalendar 2 day format and makes it into 3 characters // if $txt is true, it returns the 3 letters, otherwise it returns the *************** *** 156,159 **** --- 180,215 ---- return $offset; } + + /* Returns a string to be used in HTML title attributes + $arr is a master array item + $time is the event's UNIX timestamp + */ + function makeTitle($arr, $time) { + global $timeFormat, $dateFormat_week; + + $event_text = chopToWordCount(sanitizeForWeb(urldecode($arr["event_text"])), 20); + if ($time == -1) { + $start = localizeDate($dateFormat_week, $arr['start_unixtime']); + $end = localizeDate($dateFormat_week, ($arr['end_unixtime'] - 60)); + $title = $event_text; + if ($start != $end) $title .= "\n$start - $end"; + } else { + $start = date($timeFormat, $arr['start_unixtime']); + $end = date($timeFormat, $arr['end_unixtime']); + $title = "$start: $event_text"; + if ($start != $end) $title = "$event_text\n$start - $end"; + } + + if (!empty($arr['location'])) { + $title .= "\nLocation: " . chopToWordCount(sanitizeForWeb(urldecode($arr['location'])), 20); + } + if (!empty($arr['description'])) { + $title .= "\n\n" . chopToWordCount(sanitizeForWeb(urldecode($arr['description'])), 80); + } + $title = trim($title); + + return $title; + } + /* Returns a string to make event text with a link to popup boxes $arr is a master array item *************** *** 170,186 **** $event_text = stripslashes(urldecode($arr["event_text"])); # build tooltip ! if ($time == -1) { ! $start = localizeDate($dateFormat_week, $arr['start_unixtime']); ! $end = localizeDate($dateFormat_week, ($arr['end_unixtime'] - 60)); ! $title = $event_text; ! if ($start != $end) $title = "$start - $end $event_text"; ! } else { ! $start = date($timeFormat, $arr['start_unixtime']); ! $end = date($timeFormat, $arr['end_unixtime']); ! $title = "$start: $event_text"; ! if ($start != $end) $title = "$start - $end $event_text"; ! } ! $title .= "\n".urldecode($arr['description'])."\n".urldecode($arr['location']); ! $title = trim($title); # for iCal pseudo tag <http> comptability if (ereg("<([[:alpha:]]+://)([^<>[:space:]]+)>",$event_text,$matches)) { --- 226,230 ---- $event_text = stripslashes(urldecode($arr["event_text"])); # build tooltip ! $title = makeTitle($arr, $time); # for iCal pseudo tag <http> comptability if (ereg("<([[:alpha:]]+://)([^<>[:space:]]+)>",$event_text,$matches)) { *************** *** 191,194 **** --- 235,240 ---- $event_text = strip_tags($event_text, '<b><i><u><img>'); } + + if (!empty($link_class)) $link_class = ' class="'.$link_class.'"'; if (!empty($event_text)) { *************** *** 211,218 **** // --></script>"; ! $return .= '<a class="'.$link_class.'" title="'.$title.'" href="#" onclick="openEventWindow('.$popup_data_index.'); return false;">'; $popup_data_index++; } else { ! $return .= '<a class="'.$link_class.'" title="'.$title.'" href="'.$res[1].'">'; } $return .= $pre_text.$event_text.$post_text.'</a>'."\n"; --- 257,264 ---- // --></script>"; ! $return .= '<a'.$link_class.' title="'.$title.'" href="#" onclick="openEventWindow('.$popup_data_index.'); return false;">'; $popup_data_index++; } else { ! $return .= '<a'.$link_class.' title="'.$title.'" href="'.$res[1].'">'; } $return .= $pre_text.$event_text.$post_text.'</a>'."\n"; Index: draw_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/draw_functions.php,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -C2 -d -r1.9 -r1.9.2.1 *** draw_functions.php 28 Dec 2008 19:30:41 -0000 1.9 --- draw_functions.php 12 Apr 2010 18:58:37 -0000 1.9.2.1 *************** *** 1,5 **** <?php # drawEventTimes returns starttime and endtime and event length for drawing into a grid ! function drawEventTimes ($start, $end) { global $phpiCal_config; $sta_h = $sta_min = $end_h = $end_min = "00"; --- 1,5 ---- <?php # drawEventTimes returns starttime and endtime and event length for drawing into a grid ! function drawEventTimes ($start, $end, $long_event = FALSE) { global $phpiCal_config; $sta_h = $sta_min = $end_h = $end_min = "00"; *************** *** 25,29 **** } ! if (($sta_h . $sta_min) == ($end_h . $end_min)) { $end_min += $gridLength; if ($end_min == 60) { --- 25,29 ---- } ! if ((!$long_event) && (($sta_h . $sta_min) == ($end_h . $end_min))) { $end_min += $gridLength; if ($end_min == 60) { *************** *** 31,36 **** $end_min = "00"; } ! } $draw_len = ($end_h * 60 + $end_min) - ($sta_h * 60 + $sta_min); return array ("draw_start" => ($sta_h . $sta_min), "draw_end" => ($end_h . $end_min), "draw_length" => $draw_len); } --- 31,37 ---- $end_min = "00"; } ! } $draw_len = ($end_h * 60 + $end_min) - ($sta_h * 60 + $sta_min); + return array ("draw_start" => ($sta_h . $sta_min), "draw_end" => ($end_h . $end_min), "draw_length" => $draw_len); } Index: event.js =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/event.js,v retrieving revision 1.17.2.2 retrieving revision 1.17.2.3 diff -C2 -d -r1.17.2.2 -r1.17.2.3 *** event.js 23 Feb 2009 21:28:57 -0000 1.17.2.2 --- event.js 12 Apr 2010 18:58:37 -0000 1.17.2.3 *************** *** 12,16 **** // open a new window ! var w = window.open('', 'Popup', 'scrollbars=yes,width=460,height=275'); form.target = 'Popup'; form.submit(); --- 12,16 ---- // open a new window ! var w = window.open('', 'Popup', 'scrollbars=yes,width=550,height=350'); form.target = 'Popup'; form.submit(); *************** *** 37,41 **** // open a new window ! var w = window.open('', 'Popup', 'scrollbars=yes,width=460,height=325'); form.target = 'Popup'; form.submit(); --- 37,41 ---- // open a new window ! var w = window.open('', 'Popup', 'scrollbars=yes,width=460,height=350'); form.target = 'Popup'; form.submit(); *************** *** 59,63 **** // open a new window ! var w = window.open('', 'Popup', 'scrollbars=yes,width=460,height=275'); form.target = 'Popup'; form.submit(); --- 59,63 ---- // open a new window ! var w = window.open('', 'Popup', 'scrollbars=yes,width=550,height=350'); form.target = 'Popup'; form.submit(); *************** *** 72,73 **** --- 72,104 ---- //--> </script> + <script language="JavaScript" type="text/javascript"> + <!-- + + function submitform(form, value) { + // Parse value. + var values = decodeURI(value).split("&"); + var temp = values[0].split("?", 2); + var action = temp[0]; + values[0] = temp[1]; + + try { + form.setAttribute("action", action); + } + catch(e) { + form.action = action; + } + + // Stuff the hidden form fields. + for (var i = 0; i < values.length; i++) { + temp = values[i].split("=", 2); + form.elements.namedItem(temp[0]).value = temp[1]; + } + + // Clear the select+option value. + var select = form.elements.namedItem("form_action") + select.options[select.selectedIndex].value = ""; + + form.submit(); + } + //--> + </script> Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.246 retrieving revision 1.246.2.1 diff -C2 -d -r1.246 -r1.246.2.1 *** ical_parser.php 5 Feb 2009 15:19:42 -0000 1.246 --- ical_parser.php 12 Apr 2010 18:58:37 -0000 1.246.2.1 *************** *** 12,16 **** if ($phpiCal_config->save_parsed_cals == 'yes') { if (sizeof ($cal_filelist) > 1) { ! $parsedcal = $phpiCal_config->tmp_dir.'/parsedcal-'.urlencode($cpath.'::'.$cal_filename).'-'.$this_year; if (file_exists($parsedcal)) { $fd = fopen($parsedcal, 'r'); --- 12,16 ---- if ($phpiCal_config->save_parsed_cals == 'yes') { if (sizeof ($cal_filelist) > 1) { ! $parsedcal = $phpiCal_config->tmp_dir.'/parsedcal-'.urlencode($cpath.'::'.$phpiCal_config->ALL_CALENDARS_COMBINED).'-'.$this_year; if (file_exists($parsedcal)) { $fd = fopen($parsedcal, 'r'); *************** *** 20,34 **** $z=1; $y=0; - $webcal_mtime = time() - ($phpiCal_config->webcal_hours * 3600); if (sizeof($master_array['-4']) == (sizeof($cal_filelist))) { foreach ($master_array['-4'] as $temp_array) { $mtime = $master_array['-4'][$z]['mtime']; $fname = $master_array['-4'][$z]['filename']; ! $wcalc = $master_array['-4'][$z]['webcal']; if ($wcalc == 'no') $realcal_mtime = filemtime($fname); ! if (isset($realcal_mtime) && ($mtime == $realcal_mtime) && ($wcalc == 'no')) { ! $y++; ! } elseif (($wcalc == 'yes') && ($mtime > $webcal_mtime)) { ! //echo date('H:i',$mtime). ' > '. date('H:i',$webcal_mtime); $y++; } --- 20,33 ---- $z=1; $y=0; if (sizeof($master_array['-4']) == (sizeof($cal_filelist))) { foreach ($master_array['-4'] as $temp_array) { $mtime = $master_array['-4'][$z]['mtime']; $fname = $master_array['-4'][$z]['filename']; ! $wcalc = $master_array['-4'][$z]['webcal']; ! if ($wcalc == 'no') $realcal_mtime = filemtime($fname); ! else $realcal_mtime = remote_filemtime($fname); ! ! if ($mtime == $realcal_mtime) { $y++; } *************** *** 51,55 **** } else { foreach ($cal_filelist as $filename) { ! $realcal_mtime = filemtime($filename); $parsedcal = $phpiCal_config->tmp_dir.'/parsedcal-'.urlencode($cpath.'::'.$cal_filename).'-'.$this_year; if (file_exists($parsedcal)) { --- 50,60 ---- } else { foreach ($cal_filelist as $filename) { ! if (substr($filename, 0, 7) == 'http://' || substr($filename, 0, 8) == 'https://' || substr($filename, 0, 9) == 'webcal://') { ! $realcal_mtime = remote_filemtime($filename); ! } ! else { ! $realcal_mtime = filemtime($filename); ! } ! $parsedcal = $phpiCal_config->tmp_dir.'/parsedcal-'.urlencode($cpath.'::'.$cal_filename).'-'.$this_year; if (file_exists($parsedcal)) { *************** *** 85,98 **** // Let's see if we're doing a webcal - $is_webcal = FALSE; if (substr($filename, 0, 7) == 'http://' || substr($filename, 0, 8) == 'https://' || substr($filename, 0, 9) == 'webcal://') { ! $is_webcal = TRUE; ! $cal_webcalPrefix = str_replace('http://','webcal://',$filename); ! $cal_httpPrefix = str_replace('webcal://','http://',$filename); ! $cal_httpsPrefix = str_replace('webcal://','https://',$filename); ! $cal_httpsPrefix = str_replace('http://','https://',$cal_httpsPrefix); $filename = $cal_httpPrefix; $master_array['-4'][$calnumber]['webcal'] = 'yes'; ! $actual_mtime = time(); } else { $actual_mtime = @filemtime($filename); --- 90,100 ---- // Let's see if we're doing a webcal if (substr($filename, 0, 7) == 'http://' || substr($filename, 0, 8) == 'https://' || substr($filename, 0, 9) == 'webcal://') { ! $cal_webcalPrefix = str_replace(array('http://', 'https://'), 'webcal://', $filename); ! $cal_httpPrefix = str_replace(array('webcal://', 'https://'), 'http://', $filename); ! $cal_httpsPrefix = str_replace(array('http://', 'webcal://'), 'https://', $filename); $filename = $cal_httpPrefix; $master_array['-4'][$calnumber]['webcal'] = 'yes'; ! $actual_mtime = @remote_filemtime($filename); } else { $actual_mtime = @filemtime($filename); *************** *** 105,109 **** if ($ifile == FALSE) exit(error($lang['l_error_cantopen'], $filename)); $nextline = fgets($ifile, 1024); ! if (trim($nextline) != 'BEGIN:VCALENDAR') exit(error($lang['l_error_invalidcal'], $filename)); // Set a value so we can check to make sure $master_array contains valid data --- 107,111 ---- if ($ifile == FALSE) exit(error($lang['l_error_cantopen'], $filename)); $nextline = fgets($ifile, 1024); ! #if (trim($nextline) != 'BEGIN:VCALENDAR') exit(error($lang['l_error_invalidcal'], $filename)); // Set a value so we can check to make sure $master_array contains valid data *************** *** 127,130 **** --- 129,133 ---- } $line = str_replace('\n',"\n",$line); + $line = str_replace('\t',"\t",$line); $line = trim(stripslashes($line)); switch ($line) { *************** *** 137,141 **** $beginning, $start_of_vevent, $valarm_description, $start_unixtime, $end_unixtime, $display_end_tmp, $end_time_tmp1, ! $recurrence_id, $uid, $rrule, $until_check, $until, $byweek, $byweekno, $byminute, $byhour, $bysecond --- 140,144 ---- $beginning, $start_of_vevent, $valarm_description, $start_unixtime, $end_unixtime, $display_end_tmp, $end_time_tmp1, ! $recurrence_id, $recurrence_d, $recurrence_, $uid, $rrule, $until_check, $until, $byweek, $byweekno, $byminute, $byhour, $bysecond *************** *** 218,221 **** --- 221,226 ---- case 'BEGIN:VTODO': $vtodo_set = TRUE; + $start_date = ''; + $start_time = ''; $summary = ''; $due_date = ''; *************** *** 322,328 **** case 'SUMMARY': - $data = str_replace("\\n", "<br />", $data); - $data = str_replace("\\t", " ", $data); - $data = str_replace("\\r", "<br />", $data); $data = str_replace('$', '$', $data); $data = stripslashes($data); --- 327,330 ---- *************** *** 336,342 **** case 'DESCRIPTION': - $data = str_replace("\n", "<br />", $data); - $data = str_replace("\\t", " ", $data); - $data = str_replace("\r", "<br />", $data); $data = str_replace('$', '$', $data); $data = stripslashes($data); --- 338,341 ---- *************** *** 426,439 **** break; case 'ATTENDEE': ! $attendee[] = array ('name' => ereg_replace ("ATTENDEE;CN=([^;]*).*", "\\1", $field), ! 'email' => ereg_replace (".*mailto:(.*).*", "\\1", $field), ! 'RSVP' => ereg_replace (".*RSVP=([^;]*).*", "\\1", $field), ! 'PARSTAT' => ereg_replace (".*PARTSTAT=([^;]*).*", "\\1", $field), ! 'ROLE' => ereg_replace (".*ROLE=([^;]*).*", "\\1", $field)); break; case 'ORGANIZER': ! $field = str_replace("ORGANIZER;CN=", "", $field); ! $data = str_replace ("mailto:", "", $data); ! $organizer[] = array ('name' => stripslashes($field), 'email' => stripslashes($data)); break; case 'LOCATION': --- 425,461 ---- break; case 'ATTENDEE': ! $email = preg_match("/mailto:(.*)/i", $data, $matches1); ! $name = preg_match("/CN=([^;]*)/i", $field, $matches2); ! $rsvp = preg_match("/RSVP=([^;]*)/i", $field, $matches3); ! $partstat = preg_match("/PARTSTAT=([^;]*)/i", $field, $matches4); ! $role = preg_match("/ROLE=([^;]*)/i", $field, $matches5); ! ! $email = ($email ? $matches1[1] : ''); ! $name = ($name ? $matches2[1] : $email); ! $rsvp = ($rsvp ? $matches3[1] : ''); ! $partstat = ($partstat ? $matches4[1] : ''); ! $role = ($role ? $matches5[1] : ''); ! ! // Emergency fallback ! if (empty($name) && empty($email)) $name = $data; ! ! $attendee[] = array ('name' => stripslashes($name), ! 'email' => stripslashes($email), ! 'RSVP' => stripslashes($rsvp), ! 'PARTSTAT' => stripslashes($partstat), ! 'ROLE' => stripslashes($role) ! ); break; case 'ORGANIZER': ! $email = preg_match("/mailto:(.*)/i", $data, $matches1); ! $name = preg_match("/CN=([^;]*)/i", $field, $matches2); ! ! $email = ($email ? $matches1[1] : ''); ! $name = ($name ? $matches2[1] : $email); ! ! // Emergency fallback ! if (empty($name) && empty($email)) $name = $data; ! ! $organizer[] = array ('name' => stripslashes($name), 'email' => stripslashes($email)); break; case 'LOCATION': *************** *** 484,487 **** --- 506,510 ---- @fclose($fd); @touch($parsedcal, $realcal_mtime); + @chmod($parsedcal, 0600); // 0640 } } Index: init.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v retrieving revision 1.122 retrieving revision 1.122.2.1 diff -C2 -d -r1.122 -r1.122.2.1 *** init.inc.php 4 Jan 2009 21:58:18 -0000 1.122 --- init.inc.php 12 Apr 2010 18:58:37 -0000 1.122.2.1 *************** *** 99,106 **** // Make some protocol alternatives, and set our real identifier to the // HTTP protocol. ! $cal_webcalPrefix = str_replace('http://','webcal://',$web_cal); ! $cal_httpPrefix = str_replace('webcal://','http://',$web_cal); ! $cal_httpsPrefix = str_replace('webcal://','https://',$web_cal); ! $cal_httpsPrefix = str_replace('http://','https://',$web_cal); // We can only include this web calendar if we allow all web calendars --- 99,105 ---- // Make some protocol alternatives, and set our real identifier to the // HTTP protocol. ! $cal_webcalPrefix = str_replace(array('http://', 'https://'), 'webcal://', $web_cal); ! $cal_httpPrefix = str_replace(array('webcal://', 'https://'), 'http://', $web_cal); ! $cal_httpsPrefix = str_replace(array('http://', 'webcal://'), 'https://', $web_cal); // We can only include this web calendar if we allow all web calendars *************** *** 123,132 **** } $cals[] = urlencode($web_cal); - //$filename = $cal_filename; $subscribe_path = $cal_webcalPrefix; // Add the webcal to the available calendars. ! $web_cal = $cal_httpPrefix; ! $cal_filelist[] = $web_cal; } --- 122,129 ---- } $cals[] = urlencode($web_cal); $subscribe_path = $cal_webcalPrefix; // Add the webcal to the available calendars. ! $cal_filelist[] = $cal_httpPrefix; } Index: template.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/template.php,v retrieving revision 1.113 retrieving revision 1.113.2.1 diff -C2 -d -r1.113 -r1.113.2.1 *** template.php 31 Dec 2008 07:23:54 -0000 1.113 --- template.php 12 Apr 2010 18:58:37 -0000 1.113.2.1 *************** *** 6,11 **** var $page; function draw_subscribe($template_p) { ! global $phpiCal_config, $getdate, $cal, $ALL_CALENDARS_COMBINED, $subscribe_path, $download_filename; ! if ($cal != $ALL_CALENDARS_COMBINED && $subscribe_path != '' && $download_filename != '') { $this->page = str_replace('{SUBSCRIBE_PATH}', $subscribe_path, $this->page); $this->page = str_replace('{DOWNLOAD_FILENAME}', $download_filename, $this->page); --- 6,11 ---- var $page; function draw_subscribe($template_p) { ! global $phpiCal_config, $getdate, $cal, $subscribe_path, $download_filename; [...1536 lines suppressed...] } ! function output() { global $phpiCal_config, $php_started, $lang, $template_started, $cpath; ! // Looks for {MONTH} before sending page out preg_match_all ('!\{MONTH_([A-Z]*)\|?([+|-])([0-9]{1,2})\}!Uis', $this->page, $match); *************** *** 1185,1189 **** } } ! $php_ended = @getmicrotime(); $generated1 = number_format(($php_ended-$php_started),3); --- 1218,1222 ---- } } ! $php_ended = @getmicrotime(); $generated1 = number_format(($php_ended-$php_started),3); Index: userauth_functions.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/userauth_functions.php,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -C2 -d -r1.8 -r1.8.2.1 *** userauth_functions.php 31 Dec 2008 11:16:34 -0000 1.8 --- userauth_functions.php 12 Apr 2010 18:58:37 -0000 1.8.2.1 *************** *** 4,14 **** // Returns the login query string. function login_querys() { - global $QUERY_STRING; - // Remove the username, password, and action values. ! $querys = preg_replace('/(username|password|action)=[^&]+/', '', $QUERY_STRING); // Return the login query string. ! $querys = preg_replace('/&&/', '', $querys); return $querys; } --- 4,12 ---- // Returns the login query string. function login_querys() { // Remove the username, password, and action values. ! $querys = preg_replace('/(username|password|action)=[^&]+/', '', $_SERVER['QUERY_STRING']); // Return the login query string. ! $querys = preg_replace('/&&|&$/', '', $querys); return $querys; } *************** *** 18,32 **** // Returns the logout query string. function logout_querys() { - global $QUERY_STRING; - // Make sure the action is logout. ! $querys = preg_replace('/action=[^&]+/', 'action=logout', $QUERY_STRING); ! if ($querys == $QUERY_STRING) $querys .= '&action=logout'; ! // Remove references to the username or password. $querys = preg_replace('/(username|password)=[^&]+/', '', $querys); ! // Return the logout query string. ! $querys = preg_replace('/&&/', '', $querys); return $querys; } --- 16,28 ---- // Returns the logout query string. function logout_querys() { // Make sure the action is logout. ! $querys = preg_replace('/action=[^&]+/', 'action=logout', $_SERVER['QUERY_STRING']); ! if ($querys == $_SERVER['QUERY_STRING']) $querys .= '&action=logout'; ! // Remove references to the username or password. $querys = preg_replace('/(username|password)=[^&]+/', '', $querys); ! // Return the logout query string. ! $querys = preg_replace('/&&|&$/', '', $querys); return $querys; } *************** *** 45,55 **** function user_login() { global $phpiCal_config, $locked_map; ! // Initialize return values. $invalid_login = false; $username = ''; $password = ''; ! // If not HTTP authenticated, try login via cookies or the web page. if (isset($_SERVER['PHP_AUTH_USER'])) { return array($username, $password, $invalid_login); } --- 41,54 ---- function user_login() { global $phpiCal_config, $locked_map; ! // Initialize return values. $invalid_login = false; $username = ''; $password = ''; ! // If not HTTP authenticated, try login via cookies or the web page. if (isset($_SERVER['PHP_AUTH_USER'])) { + $username = $_SERVER['PHP_AUTH_USER']; + if (isset($_SERVER['PHP_AUTH_PW'])) $password = $_SERVER['PHP_AUTH_PW']; + return array($username, $password, $invalid_login); } *************** *** 63,67 **** } } ! // Look for session authentication. if ($phpiCal_config->login_cookies != 'yes') { --- 62,66 ---- } } ! // Look for session authentication. if ($phpiCal_config->login_cookies != 'yes') { *************** *** 75,91 **** } } ! // Look for a new username and password. ! # Should only take these from post? # if (isset($_GET['username'], $_GET['password'])){ # $username = $_GET['username']; # $password = $_GET['password']; ! # } else ! if (isset($_POST['username'], $_POST['password'])){ $username = $_POST['username']; $password = $_POST['password']; } ! // Check to make sure the username and password is valid. if (!array_key_exists("$username:$password", $locked_map)) { --- 74,90 ---- } } ! // Look for a new username and password. ! # Should only take these from post? # if (isset($_GET['username'], $_GET['password'])){ # $username = $_GET['username']; # $password = $_GET['password']; ! # } else ! if (isset($_POST['username'], $_POST['password'])){ $username = $_POST['username']; $password = $_POST['password']; } ! // Check to make sure the username and password is valid. if (!array_key_exists("$username:$password", $locked_map)) { *************** *** 94,107 **** return array($username, $password, true); } ! // Set the login cookie or session authentication values. ! if ($login_cookies == 'yes') { $the_cookie = serialize(array('username' => $username, 'password' => $password)); ! setcookie('phpicalendar_login', $the_cookie, time()+(60*60*24*7*12*10), '/', $cookie_uri, 0); } else { $_SESSION['username'] = $username; $_SESSION['password'] = $password; } ! // Return the username and password. return array($username, $password, $invalid_login); --- 93,106 ---- return array($username, $password, true); } ! // Set the login cookie or session authentication values. ! if ($phpiCal_config->login_cookies == 'yes' && empty($_COOKIE['phpicalendar_login'])) { $the_cookie = serialize(array('username' => $username, 'password' => $password)); ! setcookie('phpicalendar_login', $the_cookie, time()+(60*60*24*7*12*10), '/', $phpiCal_config->cookie_uri, 0); } else { $_SESSION['username'] = $username; $_SESSION['password'] = $password; } ! // Return the username and password. return array($username, $password, $invalid_login); *************** *** 114,121 **** function user_logout() { global $phpiCal_config; ! // Clear the login cookie or session authentication values. if ($phpiCal_config->login_cookies == 'yes') { setcookie('phpicalendar_login', '', time()-(60*60*24*7), '/', $phpiCal_config->cookie_uri, 0); } else { // Check if the session has already been started. --- 113,121 ---- function user_logout() { global $phpiCal_config; ! // Clear the login cookie or session authentication values. if ($phpiCal_config->login_cookies == 'yes') { setcookie('phpicalendar_login', '', time()-(60*60*24*7), '/', $phpiCal_config->cookie_uri, 0); + unset($_COOKIE['phpicalendar_login']); } else { // Check if the session has already been started. *************** *** 124,133 **** setcookie(session_name(), session_id(), time()+(60*60*24*7*12*10), '/', $phpiCal_config->cookie_uri, 0); } ! // Clear the session authentication values. unset($_SESSION['username']); unset($_SESSION['password']); } ! // Return empty username and password. return array('', ''); --- 124,133 ---- setcookie(session_name(), session_id(), time()+(60*60*24*7*12*10), '/', $phpiCal_config->cookie_uri, 0); } ! // Clear the session authentication values. unset($_SESSION['username']); unset($_SESSION['password']); } ! // Return empty username and password. return array('', ''); |
From: <par...@us...> - 2010-04-12 18:58:46
|
Update of /cvsroot/phpicalendar/phpicalendar In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875 Modified Files: Tag: phpicalendar-editor AUTHORS README config.inc.php day.php default_config.php month.php preferences.php print.php search.php week.php year.php Log Message: merge with HEAD Index: AUTHORS =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/AUTHORS,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -C2 -d -r1.8 -r1.8.2.1 *** AUTHORS 28 Dec 2008 19:30:41 -0000 1.8 --- AUTHORS 12 Apr 2010 18:58:36 -0000 1.8.2.1 *************** *** 18,21 **** --- 18,22 ---- Jim Hu <phpicalendar at gmail dot com> Chad Little <chad at chadsdomain dot com> + Jason Oster <jason dot oster at camp navajo dot com> David Reindl <dre at andare dot ch> Jared Wangen <xeo at silter dot org> *************** *** 32,35 **** --- 33,37 ---- Bulgarian Georgi Kodinov <kgeorge at progem dot bg Croation Tihomir Cvetkovic <tihomir dot cvetkovic at gmail dot com> + Czech Petr KleteÄka <kletecka at email dot cz> Danish Henrik Højmark <styxx at worldonline dot dk> Jakob Peterhänsel <marook at creepers dot org> Index: README =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/README,v retrieving revision 1.116 retrieving revision 1.116.2.1 diff -C2 -d -r1.116 -r1.116.2.1 *** README 30 Jan 2009 20:49:25 -0000 1.116 --- README 12 Apr 2010 18:58:36 -0000 1.116.2.1 *************** *** 6,14 **** Introduction: ------------- ! PHP iCalendar is a PHP-based iCal file viewer/parser to display iCals in a Web browser. ! Its based on v2.0 of the IETF spec. It displays iCal files in a nice logical, clean manner with day, week, month, and year navigation. It is available in 13 ! languages and includes support for printing, searching and RSS news feeds. ! If you need a Calendar application (for creating calendar files), please check the 'Supported Calendar Applications' section of the README. --- 6,14 ---- Introduction: ------------- ! PHP iCalendar is a PHP-based iCal file viewer/parser to display iCals in a Web browser. ! Its based on v2.0 of the IETF spec. It displays iCal files in a nice logical, clean manner with day, week, month, and year navigation. It is available in 13 ! languages and includes support for printing, searching and RSS news feeds. ! If you need a Calendar application (for creating calendar files), please check the 'Supported Calendar Applications' section of the README. *************** *** 22,26 **** - Put PHP iCalendar into your Sites folder (or another web directory) - PHP iCalendar works 'out of the box' but you may want to configure some things ! - see section below called "Configuration". - Put your iCal files into the directory you specify in config.inc.php (default is "calendars") --- 22,26 ---- - Put PHP iCalendar into your Sites folder (or another web directory) - PHP iCalendar works 'out of the box' but you may want to configure some things ! - see section below called "Configuration". - Put your iCal files into the directory you specify in config.inc.php (default is "calendars") *************** *** 38,57 **** View config.inc-dist.php. The comments behind each variable definition will tell you what each setting does. Change the values between the quotation ! marks to change the setting of that variable. If there are restrictions as to what that variable can be set to, the comment behind will specify ! them. IN ORDER TO USE THESE SETTINGS YOU MUST RENAME THE FILE to config.inc.php ! If you have difficulty with your configuration, you can ask the ! developers and other PHP iCalendar users at the PHP iCalendar forums: http://phpicalendar.net/forums/ Creating calendars and events: -------------------------------- ! PHP iCalendar DOES NOT create or edit calendars (or events). Instead it ! provides a way to view calendars from applications that generate valid IETF 2445 files (.ics). Some of the supported applications are: ! - Apple iCal - http://www.apple.com/ical/ --- 38,57 ---- View config.inc-dist.php. The comments behind each variable definition will tell you what each setting does. Change the values between the quotation ! marks to change the setting of that variable. If there are restrictions as to what that variable can be set to, the comment behind will specify ! them. IN ORDER TO USE THESE SETTINGS YOU MUST RENAME THE FILE to config.inc.php ! If you have difficulty with your configuration, you can ask the ! developers and other PHP iCalendar users at the PHP iCalendar forums: http://phpicalendar.net/forums/ Creating calendars and events: -------------------------------- ! PHP iCalendar DOES NOT create or edit calendars (or events). Instead it ! provides a way to view calendars from applications that generate valid IETF 2445 files (.ics). Some of the supported applications are: ! - Apple iCal - http://www.apple.com/ical/ *************** *** 68,72 **** ----- If you find a bug, please let us know. The easiest way for you to do this ! is to visit our Bug Tracker on SourceForge. This guarantees that we both look at it and take time to figure out what is causing it. You can submit bugs at the following URL: --- 68,72 ---- ----- If you find a bug, please let us know. The easiest way for you to do this ! is to visit our Bug Tracker on SourceForge. This guarantees that we both look at it and take time to figure out what is causing it. You can submit bugs at the following URL: *************** *** 82,86 **** http://phpicalendar.sourceforge.net/requests ! Licensing: ---------- This product is distributed under the GPL. Please read through the file --- 82,86 ---- http://phpicalendar.sourceforge.net/requests ! Licensing: ---------- This product is distributed under the GPL. Please read through the file *************** *** 89,93 **** Changes: -------- ! 2.31 Fix events ending at midnight bug in day view Fix publish.php for 2.3 config system add option to hide location in month view --- 89,127 ---- Changes: -------- ! 2.4 ! Security fixes: ! More ICS input sanitizing; prevent HTML/XSS injection ! Bug fixes: ! Webcal caching now works like local caching with save_parsed_cals ! Print view missing some events ! Setting time format in preferences page ! Default calendar selections in listbox picker ! Timezone DST calculation with all-day events ! Handling dates before 1970 ! Log in cookie handling; thanks gueba! ! Log out URL containing multiple ampersands ! Parsed calendars used the wrong file name for "all calendars" ! Recurring events across multiple versions of PHP; thanks to Len and gueba! ! Better handling of URLs and email addresses in event descriptions ! Navigation forms breaking PHP transparent SID ! New features: ! Event information displayed with Nice Titles ! Attendee/organizer parsing and email address hyperlinking ! Better display of tabs/line breaks in calendar events ! Strip "blocked" protocols, added by some mail servers ! Translations: ! Updates to Czech translation ! Updates to French translation ! Remove UTF-8 BOM from German language files ! Remove UTF-8 BOM from Korean language files ! Theme changes: ! Change month view navigation to a sidebar ! All pages inherit the width specified in the CSS "maintable" class ! Different row borders in day/week views for :00, :15, :30 and :45 ! All-day events in week view has tighter spacing ! Navigation arrows in all pages ! ! 2.31 ! Fix events ending at midnight bug in day view Fix publish.php for 2.3 config system add option to hide location in month view *************** *** 96,100 **** Make multiline descriptions display with line breaks in event popup Fix German language file ! 2.3 Major changes to recurrence handling Added more languages Added login to month view --- 130,135 ---- Make multiline descriptions display with line breaks in event popup Fix German language file ! 2.3 ! Major changes to recurrence handling Added more languages Added login to month view *************** *** 129,133 **** fix overlapping events bug fix path problems in template.php ! 2.22 template.php will look in templates/default if a file is missing from templates/$template --- 164,168 ---- fix overlapping events bug fix path problems in template.php ! 2.22 template.php will look in templates/default if a file is missing from templates/$template *************** *** 152,156 **** -bug fixes from 2.2 Modified rss.php to improve compatibility ! -Modified templates to validate as XHTML 1.0 Transitional 2.2 --- 187,191 ---- -bug fixes from 2.2 Modified rss.php to improve compatibility ! -Modified templates to validate as XHTML 1.0 Transitional 2.2 *************** *** 158,165 **** -Added support for finding calendars in subdirectories. -Can now select multiple local and web calendars. ! -rss.php new feed types for different kinds of date ranges changed handling of multi-day events ! -bug fixes from 2.1 handling of webcals popup encoding --- 193,200 ---- -Added support for finding calendars in subdirectories. -Can now select multiple local and web calendars. ! -rss.php new feed types for different kinds of date ranges changed handling of multi-day events ! -bug fixes from 2.1 handling of webcals popup encoding *************** *** 177,181 **** -Various bug fixes. ! 2.0.1 -Event URLs display without LOCATION. -Fixed VTIMEZONE dates on Windows IIS. --- 212,216 ---- -Various bug fixes. ! 2.0.1 -Event URLs display without LOCATION. -Fixed VTIMEZONE dates on Windows IIS. *************** *** 248,252 **** -Parsing engine now twice as fast. -Various bug fixes. ! 1.1 -Fixed a bug with HTTP authentication. --- 283,287 ---- -Parsing engine now twice as fast. -Various bug fixes. ! 1.1 -Fixed a bug with HTTP authentication. *************** *** 290,294 **** -Specify the name of 'All Calendars Combined' in language files. ! 0.9.3 -Multiple calendar support (up to 8). -Fixed pesky <br /> tags in event popup. --- 325,329 ---- -Specify the name of 'All Calendars Combined' in language files. ! 0.9.3 -Multiple calendar support (up to 8). -Fixed pesky <br /> tags in event popup. *************** *** 296,300 **** -Major bug fixes. -Last to support Netscape 4.x ! 0.9.2 -Fixed an extra .php on the preferences page. --- 331,335 ---- -Major bug fixes. -Last to support Netscape 4.x ! 0.9.2 -Fixed an extra .php on the preferences page. *************** *** 367,371 **** -New themes, Green, Orange, Grey, and Tan. -Parses calendars much faster. ! -Page titles added for bookmarking. -Fixed bug not letting notes to fully display. -Fixed bug in recurring all-day events. --- 402,406 ---- -New themes, Green, Orange, Grey, and Tan. -Parses calendars much faster. ! -Page titles added for bookmarking. -Fixed bug not letting notes to fully display. -Fixed bug in recurring all-day events. *************** *** 392,396 **** -Added "black-listing" of specific local calendars -Added remote calendar support ! -Subscribe to calendars hosted remotely and have them show up in your popup -Allow any URL of a calendar to be parsed by your server --- 427,431 ---- -Added "black-listing" of specific local calendars -Added remote calendar support ! -Subscribe to calendars hosted remotely and have them show up in your popup -Allow any URL of a calendar to be parsed by your server *************** *** 418,422 **** -Norwegian -Bug fixes ! 0.4 -Improved recurring event support --- 453,457 ---- -Norwegian -Bug fixes ! 0.4 -Improved recurring event support *************** *** 437,441 **** -All-day yearly recurring support -Bug fixes ! 0.2 -All-day event support --- 472,476 ---- -All-day yearly recurring support -Bug fixes ! 0.2 -All-day event support Index: config.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/config.inc.php,v retrieving revision 1.203 retrieving revision 1.203.2.1 diff -C2 -d -r1.203 -r1.203.2.1 *** config.inc.php 30 Jan 2009 20:49:25 -0000 1.203 --- config.inc.php 12 Apr 2010 18:58:36 -0000 1.203.2.1 *************** *** 101,104 **** --- 101,105 ---- $list_webcals = array( # 'webcal://dimer.tamu.edu/calendars/seminars/Biochem.ics' + 'webcal://calendar.sxsw.com/iCa...@ro....ics' ); $more_webcals['recur_tests'] = array(); Index: day.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/day.php,v retrieving revision 1.137 retrieving revision 1.137.2.1 diff -C2 -d -r1.137 -r1.137.2.1 *** day.php 28 Dec 2008 19:30:41 -0000 1.137 --- day.php 12 Apr 2010 18:58:36 -0000 1.137.2.1 *************** *** 16,20 **** require_once(BASE.'functions/template.php'); ! if ($phpiCal_config->minical_view == 'current') $minical_view = 'day'; $weekstart = 1; --- 16,27 ---- require_once(BASE.'functions/template.php'); ! $minical_view = $current_view; ! switch ($phpiCal_config->minical_view) { ! case 'day': ! case 'week': ! case 'month': ! $minical_view = $phpiCal_config->minical_view; ! break; ! } $weekstart = 1; *************** *** 95,98 **** --- 102,107 ---- 'l_jump' => $lang['l_jump'], 'l_todo' => $lang['l_todo'], + 'l_prev' => $lang['l_prev'], + 'l_next' => $lang['l_next'], 'l_day' => $lang['l_day'], 'l_week' => $lang['l_week'], Index: default_config.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/default_config.php,v retrieving revision 1.21.2.1 retrieving revision 1.21.2.2 diff -C2 -d -r1.21.2.1 -r1.21.2.2 *** default_config.php 10 Feb 2009 19:59:45 -0000 1.21.2.1 --- default_config.php 12 Apr 2010 18:58:36 -0000 1.21.2.2 *************** *** 3,8 **** private static $instance; private function __construct(){ ! $this->phpicalendar_version = '2.32alpha'; ! // Configuration file for PHP iCalendar 2.32 // // To set values, change the text between the single quotes --- 3,8 ---- private static $instance; private function __construct(){ ! $this->phpicalendar_version = '2.4'; ! // Configuration file for PHP iCalendar 2.4 // // To set values, change the text between the single quotes Index: month.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/month.php,v retrieving revision 1.152 retrieving revision 1.152.2.1 diff -C2 -d -r1.152 -r1.152.2.1 *** month.php 7 Jan 2009 21:11:39 -0000 1.152 --- month.php 12 Apr 2010 18:58:36 -0000 1.152.2.1 *************** *** 6,10 **** require_once(BASE.'functions/template.php'); header("Content-Type: text/html; charset=$phpiCal_config->charset"); ! if ($phpiCal_config->minical_view == 'current') $minical_view = 'month'; $unix_time = strtotime($getdate); --- 6,18 ---- require_once(BASE.'functions/template.php'); header("Content-Type: text/html; charset=$phpiCal_config->charset"); ! ! $minical_view = $current_view; ! switch ($phpiCal_config->minical_view) { ! case 'day': ! case 'week': ! case 'month': ! $minical_view = $phpiCal_config->minical_view; ! break; ! } $unix_time = strtotime($getdate); *************** *** 77,81 **** --- 85,91 ---- 'rss_valid' => '', 'show_search' => $phpiCal_config->show_search, + 'next_day' => $tomorrows_date, 'next_month' => $next_month, + 'prev_day' => $yesterdays_date, 'prev_month' => $prev_month, 'show_goto' => '', *************** *** 103,106 **** --- 113,118 ---- 'l_jump' => $lang['l_jump'], 'l_todo' => $lang['l_todo'], + 'l_prev' => $lang['l_prev'], + 'l_next' => $lang['l_next'], 'l_day' => $lang['l_day'], 'l_week' => $lang['l_week'], *************** *** 141,149 **** $page->nomonthbottom($page); } - $page->draw_subscribe($page); $page->output(); - - ?> --- 153,159 ---- $page->nomonthbottom($page); } + $page->draw_subscribe($page); $page->output(); ?> Index: preferences.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/preferences.php,v retrieving revision 1.72 retrieving revision 1.72.2.1 diff -C2 -d -r1.72 -r1.72.2.1 *** preferences.php 7 Jan 2009 20:20:03 -0000 1.72 --- preferences.php 12 Apr 2010 18:58:36 -0000 1.72.2.1 *************** *** 23,27 **** if ($action == 'setcookie') { ! $cookie_language = $_POST['cookie_language']; $cookie_cpath = $_POST['cpath']; $cookie_calendar = $_POST['cookie_calendar']; --- 23,27 ---- if ($action == 'setcookie') { ! $cookie_language = urldecode($_POST['cookie_language']); $cookie_cpath = $_POST['cpath']; $cookie_calendar = $_POST['cookie_calendar']; *************** *** 30,34 **** $cookie_startday = $_POST['cookie_startday']; $cookie_time = $_POST['cookie_time']; ! $cookie_timeformat = $_POST['cookie_timeformat']; $cookie_endtime = $_POST['cookie_endtime']; $cookie_timezone = $_POST['cookie_timezone']; --- 30,34 ---- $cookie_startday = $_POST['cookie_startday']; $cookie_time = $_POST['cookie_time']; ! $cookie_timeformat = urldecode($_POST['cookie_timeformat']); $cookie_endtime = $_POST['cookie_endtime']; $cookie_timezone = $_POST['cookie_timezone']; *************** *** 129,133 **** // select for time $time_select = ''; ! for ($i = 000; $i <= 2400; $i += 100) { $s = sprintf("%04d", $i); $time_select .= '<option value="'.$s.'"'; --- 129,133 ---- // select for time $time_select = ''; ! for ($i = 0; $i <= 2400; $i += 100) { $s = sprintf("%04d", $i); $time_select .= '<option value="'.$s.'"'; *************** *** 139,143 **** $endtime_select = ''; ! for ($i = 000; $i <= 2400; $i += 100) { $s = sprintf("%04d", $i); $endtime_select .= '<option value="'.$s.'"'; --- 139,143 ---- $endtime_select = ''; ! for ($i = 0; $i <= 2400; $i += 100) { $s = sprintf("%04d", $i); $endtime_select .= '<option value="'.$s.'"'; Index: print.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/print.php,v retrieving revision 1.43 retrieving revision 1.43.2.1 diff -C2 -d -r1.43 -r1.43.2.1 *** print.php 28 Dec 2008 00:46:49 -0000 1.43 --- print.php 12 Apr 2010 18:58:36 -0000 1.43.2.1 *************** *** 1,4 **** <?php ! define('BASE', './'); $current_view ='print'; require_once(BASE.'functions/date_functions.php'); --- 1,4 ---- <?php ! if (!defined('BASE')) define('BASE', './'); $current_view ='print'; require_once(BASE.'functions/date_functions.php'); Index: search.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/search.php,v retrieving revision 1.44 retrieving revision 1.44.2.1 diff -C2 -d -r1.44 -r1.44.2.1 *** search.php 26 Dec 2008 09:05:15 -0000 1.44 --- search.php 12 Apr 2010 18:58:36 -0000 1.44.2.1 *************** *** 12,18 **** $back_page = $_SERVER['HTTP_REFERER']; } else { ! $back_page = BASE.$default_view.'.php?cal='.$cal.'&getdate='.$getdate; } $search_valid = false; if (isset($_GET['query']) && $_GET['query'] != '') { --- 12,19 ---- $back_page = $_SERVER['HTTP_REFERER']; } else { ! $back_page = BASE.$phpiCal_config->default_view.'.php?cal='.$cal.'&getdate='.$getdate; } + $query = ''; $search_valid = false; if (isset($_GET['query']) && $_GET['query'] != '') { *************** *** 22,33 **** $search_box = ''; ! $search_box .= '<form action="search.php" method="get">'."\n". ! '<input type="hidden" name="cpath" value="'.$cpath.'">'."\n". '<input type="hidden" name="cal" value="'.$cal.'">'."\n". '<input type="hidden" name="getdate" value="'.$getdate.'">'."\n". ! '<input type="text" size="15" name="query" value="'.$query.'">'."\n". ! '<INPUT type="image" src="templates/'.$phpiCal_config->template.'/images/search.gif" border=0 height="19" width="18" name="submit" value="Search">'."\n". ! '</form>'; $search_started = getmicrotime(); --- 23,36 ---- $search_box = ''; ! $search_box .= ! '<div style="width: 160px;">'."\n". '<form action="search.php" method="get">'."\n". ! '<input type="hidden" name="cpath" value="'.$cpath.'">'."\n". '<input type="hidden" name="cal" value="'.$cal.'">'."\n". '<input type="hidden" name="getdate" value="'.$getdate.'">'."\n". ! '<input type="text" style="width: 130px; float: left;" name="query" value="'.$query.'">'."\n". ! '<input type="image" src="templates/'.$phpiCal_config->template.'/images/search.gif" border="0" style="border-bottom: 3px;" name="submit" value="Search">'."\n". ! '</form>'."\n". ! '</div>'; $search_started = getmicrotime(); *************** *** 48,55 **** if (!isset($the_arr[$uid_tmp]) || isset($event_tmp['exception'])) { #print_r($format_search_arr); #echo "<br>this event:".$event_tmp['event_text']."<br>"; ! $results1 = search_boolean($format_search_arr,$event_tmp['event_text']); ! ! if (!$results1) { $results2 = search_boolean($format_search_arr,$event_tmp['description']); } --- 51,63 ---- if (!isset($the_arr[$uid_tmp]) || isset($event_tmp['exception'])) { #print_r($format_search_arr); + #print_r($event_tmp); #echo "<br>this event:".$event_tmp['event_text']."<br>"; ! $results1 = false; ! $results2 = false; ! if (isset($event_tmp['event_text'])) { ! $results1 = search_boolean($format_search_arr,$event_tmp['event_text']); ! } ! ! if (!$results1 && isset($event_tmp['description'])) { $results2 = search_boolean($format_search_arr,$event_tmp['description']); } *************** *** 74,78 **** } } else { ! $formatted_search = '<b>'.$no_query_lang.'</b>'; } $search_ended = getmicrotime(); --- 82,86 ---- } } else { ! $formatted_search = '<b>'.$lang['l_no_query'].'</b>'; } $search_ended = getmicrotime(); *************** *** 90,96 **** $search_str = strtolower($search_str); ! if ($search_str == ' ') return array(false,$and_arr,$or_arr,$not_arr); ! // clean up search string $search_str = trim($search_str); --- 98,104 ---- $search_str = strtolower($search_str); ! if ($search_str == ' ') return array(false,$and_arr,$or_arr,$not_arr); ! // clean up search string $search_str = trim($search_str); *************** *** 99,108 **** $search_str = ereg_replace('[[:space:]]+',' ', $search_str); $search_str = str_replace(' not ', ' -', $search_str); ! // start out with an AND array of all the items $and_arr = explode(' ', $search_str); $count = count($and_arr); $j = 0; ! // build an OR array from the items in AND for($i=0;$i<$count;$i++) { --- 107,116 ---- $search_str = ereg_replace('[[:space:]]+',' ', $search_str); $search_str = str_replace(' not ', ' -', $search_str); ! // start out with an AND array of all the items $and_arr = explode(' ', $search_str); $count = count($and_arr); $j = 0; ! // build an OR array from the items in AND for($i=0;$i<$count;$i++) { *************** *** 132,136 **** } } ! // prepare our formatted search string if (count($and_arr) > 1) { --- 140,144 ---- } } ! // prepare our formatted search string if (count($and_arr) > 1) { *************** *** 139,143 **** $final_str_arr[] = $and_arr[0]; } ! if (count($or_str_arr) > 1) { $final_str_arr[] = implode('</b> AND <b>', $or_str_arr); --- 147,151 ---- $final_str_arr[] = $and_arr[0]; } ! if (count($or_str_arr) > 1) { $final_str_arr[] = implode('</b> AND <b>', $or_str_arr); *************** *** 145,149 **** $final_str_arr[] = $or_str_arr[0]; } ! if (count($not_arr) > 1) { $final_str_arr[] = '-'.implode('</b> AND <b>-', $not_arr); --- 153,157 ---- $final_str_arr[] = $or_str_arr[0]; } ! if (count($not_arr) > 1) { $final_str_arr[] = '-'.implode('</b> AND <b>-', $not_arr); *************** *** 151,155 **** $final_str_arr[] = '-'.$not_arr[0]; } ! if (count($final_str_arr) > 1) { $formatted_search = '<b>'.implode('</b> AND <b>', $final_str_arr).'</b>'; --- 159,163 ---- $final_str_arr[] = '-'.$not_arr[0]; } ! if (count($final_str_arr) > 1) { $formatted_search = '<b>'.implode('</b> AND <b>', $final_str_arr).'</b>'; *************** *** 157,165 **** $formatted_search = '<b>'.$final_str_arr[0].'</b>'; } ! return array($formatted_search, $and_arr, $or_arr, $not_arr); } ! // takes an array made by format_search() and checks to see if it // it matches against a string function search_boolean($needle_arr, $haystack) { --- 165,173 ---- $formatted_search = '<b>'.$final_str_arr[0].'</b>'; } ! return array($formatted_search, $and_arr, $or_arr, $not_arr); } ! // takes an array made by format_search() and checks to see if it // it matches against a string function search_boolean($needle_arr, $haystack) { *************** *** 168,177 **** $or_arr = $needle_arr[2]; $not_arr = $needle_arr[3]; ! if (!$needle_arr[0]) return false; if ((sizeof($and_arr) == 0) && (sizeof($or_arr) == 0) && (sizeof($not_arr) == 0)) return false; ! // compare lowercase versions of the strings $haystack = strtolower($haystack); --- 176,185 ---- $or_arr = $needle_arr[2]; $not_arr = $needle_arr[3]; ! if (!$needle_arr[0]) return false; if ((sizeof($and_arr) == 0) && (sizeof($or_arr) == 0) && (sizeof($not_arr) == 0)) return false; ! // compare lowercase versions of the strings $haystack = strtolower($haystack); *************** *** 183,187 **** } } ! // check against the AND foreach($and_arr as $s) { --- 191,195 ---- } } ! // check against the AND foreach($and_arr as $s) { *************** *** 191,195 **** } } ! // check against the OR foreach($or_arr as $or) { --- 199,203 ---- } } ! // check against the OR foreach($or_arr as $or) { *************** *** 200,204 **** $is_false = false; break; ! } } elseif (is_string(strstr($haystack,$s)) == true) { $is_false = false; --- 208,212 ---- $is_false = false; break; ! } } elseif (is_string(strstr($haystack,$s)) == true) { $is_false = false; *************** *** 206,210 **** } } ! if ($is_false) return false; } // if we haven't returned false, then we return true --- 214,218 ---- } } ! if ($is_false) return false; } // if we haven't returned false, then we return true *************** *** 215,235 **** function format_recur($arr) { global $format_recur_lang, $monthsofyear_lang, $daysofweek_lang; ! $d = $format_recur_lang['delimiter']; ! $int = $arr['INTERVAL']; ! $tmp = (($int == '1') ? 0 : 1); ! ! $freq = $arr['FREQ']; ! $freq = $format_recur_lang[$freq][$tmp]; ! if (isset($arr['COUNT'])) $for = str_replace('%int%',$arr['COUNT'],$format_recur_lang['count']); elseif (isset($arr['UNTIL'])) $for = str_replace('%date%',$arr['UNTIL'], $format_recur_lang['until']); else $for = ''; ! $print = $format_recur_lang['start']; $print = str_replace('%int%', $int, $print); $print = str_replace('%freq%', $freq, $print); $print = str_replace('%for%', $for, $print); ! if (isset($arr['BYMONTH'])) { $list = ''; --- 223,248 ---- function format_recur($arr) { global $format_recur_lang, $monthsofyear_lang, $daysofweek_lang; ! $d = $format_recur_lang['delimiter']; ! ! $int = ''; ! $freq = ''; ! if (isset($arr['INTERVAL']) && isset($arr['FREQ'])) { ! $int = $arr['INTERVAL']; ! $tmp = (($int == '1') ? 0 : 1); ! ! $freq = $arr['FREQ']; ! $freq = $format_recur_lang[$freq][$tmp]; ! } ! if (isset($arr['COUNT'])) $for = str_replace('%int%',$arr['COUNT'],$format_recur_lang['count']); elseif (isset($arr['UNTIL'])) $for = str_replace('%date%',$arr['UNTIL'], $format_recur_lang['until']); else $for = ''; ! $print = $format_recur_lang['start']; $print = str_replace('%int%', $int, $print); $print = str_replace('%freq%', $freq, $print); $print = str_replace('%for%', $for, $print); ! if (isset($arr['BYMONTH'])) { $list = ''; *************** *** 242,246 **** $print .= str_replace('%list%', $list, $format_recur_lang['bymonth']); } ! if (isset($arr['BYMONTHDAY'])) { $list = ''; --- 255,259 ---- $print .= str_replace('%list%', $list, $format_recur_lang['bymonth']); } ! if (isset($arr['BYMONTHDAY'])) { $list = ''; *************** *** 257,261 **** $print .= str_replace('%list%', $list, $format_recur_lang['bymonthday']); } ! if (isset($arr['BYDAY'])) { $list = ''; --- 270,274 ---- $print .= str_replace('%list%', $list, $format_recur_lang['bymonthday']); } ! if (isset($arr['BYDAY'])) { $list = ''; *************** *** 273,277 **** $print .= str_replace('%list%', $list, $format_recur_lang['byday']); } ! return $print; } --- 286,290 ---- $print .= str_replace('%list%', $list, $format_recur_lang['byday']); } ! return $print; } *************** *** 282,286 **** $page->draw_search($page); ! $page->replace_files(array( 'header' => BASE.'templates/'.$phpiCal_config->template.'/header.tpl', --- 295,299 ---- $page->draw_search($page); ! $page->replace_files(array( 'header' => BASE.'templates/'.$phpiCal_config->template.'/header.tpl', *************** *** 316,333 **** 'rss_available' => '', 'rss_valid' => '', - 'show_search' => $show_search, - 'next_month' => $next_month, - 'prev_month' => $prev_month, 'show_goto' => '', 'is_logged_in' => '', - 'list_jumps' => $list_jumps, - 'list_icals' => $list_icals, - 'list_years' => $list_years, - 'list_months' => $list_months, - 'list_weeks' => $list_weeks, - 'legend' => $list_calcolors, 'current_view' => $current_view, ! 'style_select' => $style_select, ! 'sidebar_date' => $sidebar_date, 'l_goprint' => $lang['l_goprint'], 'l_preferences' => $lang['l_preferences'], --- 329,336 ---- 'rss_available' => '', 'rss_valid' => '', 'show_goto' => '', 'is_logged_in' => '', 'current_view' => $current_view, ! 'style_select' => '', 'l_goprint' => $lang['l_goprint'], 'l_preferences' => $lang['l_preferences'], *************** *** 345,349 **** 'l_this_months' => $lang['l_this_months'], 'l_powered_by' => $lang['l_powered_by'], ! 'l_this_site_is' => $lang['l_this_site_is'] )); --- 348,352 ---- 'l_this_months' => $lang['l_this_months'], 'l_powered_by' => $lang['l_powered_by'], ! 'l_this_site_is' => $lang['l_this_site_is'] )); *************** *** 354,356 **** #print_r($the_arr); #echo "</pre>"; ! ?> \ No newline at end of file --- 357,359 ---- #print_r($the_arr); #echo "</pre>"; ! ?> Index: week.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/week.php,v retrieving revision 1.137 retrieving revision 1.137.2.1 diff -C2 -d -r1.137 -r1.137.2.1 *** week.php 20 Dec 2008 03:22:54 -0000 1.137 --- week.php 12 Apr 2010 18:58:36 -0000 1.137.2.1 *************** *** 6,10 **** require_once(BASE.'functions/template.php'); header("Content-Type: text/html; charset=$phpiCal_config->charset"); ! if ($phpiCal_config->minical_view == "current") $minical_view = "week"; $starttime = "0500"; --- 6,18 ---- require_once(BASE.'functions/template.php'); header("Content-Type: text/html; charset=$phpiCal_config->charset"); ! ! $minical_view = $current_view; ! switch ($phpiCal_config->minical_view) { ! case 'day': ! case 'week': ! case 'month': ! $minical_view = $phpiCal_config->minical_view; ! break; ! } $starttime = "0500"; *************** *** 97,100 **** --- 105,110 ---- 'l_jump' => $lang['l_jump'], 'l_todo' => $lang['l_todo'], + 'l_prev' => $lang['l_prev'], + 'l_next' => $lang['l_next'], 'l_day' => $lang['l_day'], 'l_week' => $lang['l_week'], Index: year.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/year.php,v retrieving revision 1.52 retrieving revision 1.52.2.1 diff -C2 -d -r1.52 -r1.52.2.1 *** year.php 29 Dec 2008 08:20:52 -0000 1.52 --- year.php 12 Apr 2010 18:58:36 -0000 1.52.2.1 *************** *** 15,19 **** $prev_year = date ("Ymd", $prev_year); ! $sidebar_date = localizeDate($dateFormat_day, strtotime($getdate)); // For the side months --- 15,19 ---- $prev_year = date ("Ymd", $prev_year); ! $sidebar_date = localizeDate($dateFormat_week_list, strtotime($getdate)); // For the side months *************** *** 70,74 **** 'rss_valid' => '', 'todo_available' => '', - 'event_js' => '', 'this_year' => $this_year, 'next_day' => @$next_day, --- 70,73 ---- *************** *** 100,103 **** --- 99,104 ---- 'l_jump' => $lang['l_jump'], 'l_todo' => $lang['l_todo'], + 'l_prev' => $lang['l_prev'], + 'l_next' => $lang['l_next'], 'l_day' => $lang['l_day'], 'l_week' => $lang['l_week'], |
From: <par...@us...> - 2010-04-12 18:58:46
|
Update of /cvsroot/phpicalendar/phpicalendar/templates/tan In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv20875/templates/tan Modified Files: Tag: phpicalendar-editor default.css header.tpl Removed Files: Tag: phpicalendar-editor calendar_nav.tpl day.tpl month.tpl month_large.tpl month_medium.tpl month_small.tpl sidebar.tpl year.tpl Log Message: merge with HEAD Index: default.css =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/tan/default.css,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** default.css 18 May 2007 19:03:09 -0000 1.1 --- default.css 12 Apr 2010 18:58:37 -0000 1.1.2.1 *************** *** 1,4 **** --- 1,5 ---- /* Style sheet for the grey calendar */ + form {margin: 0;} table, td {font: 11px Verdana, Arial, sans-serif; color: #000;} *************** *** 16,24 **** .alldaybg_7 {background: url(images/allday_7.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;} ! .rowOn { background-color: #cfc; border-top: 1px solid #fff; border-left: 1px solid #fff; } ! .rowOn2 { background-color: #cfc; border-top: 1px solid #fff; } .rowOff { background-color: #E1E8F1; border-top: 1px solid #fff; border-left: 1px solid #fff; } .rowOff2 { background-color: #E1E8F1; border-top: 1px solid #fff; } ! .rowToday { background-color: #cff; border-top: 1px solid #fff; border-left: 1px solid #fff; } .padd { padding: 2px; } --- 17,25 ---- .alldaybg_7 {background: url(images/allday_7.gif) repeat-x; height: 19px; padding-top: 5px; text-align: center;} ! .rowOn { background-color: #B0E8B0; border-top: 1px solid #fff; border-left: 1px solid #fff; } ! .rowOn2 { background-color: #B0E8B0; border-top: 1px solid #fff; } .rowOff { background-color: #E1E8F1; border-top: 1px solid #fff; border-left: 1px solid #fff; } .rowOff2 { background-color: #E1E8F1; border-top: 1px solid #fff; } ! .rowToday { background-color: #B0E8E8; border-top: 1px solid #fff; border-left: 1px solid #fff; } .padd { padding: 2px; } *************** *** 33,38 **** .eventbg_7 { background-color: #666666; padding: 2px;} ! #allday a { font-size: 9px; color: #fff; font-weight: 900; text-decoration:none;} ! #allday a:hover { text-decoration:underline;} /*varies*/ .eventbg2_1 { background-color: #A6A978; border: 1px solid #FFFFFF; } --- 34,40 ---- .eventbg_7 { background-color: #666666; padding: 2px;} ! .allday a { font-size: 9px; color: #fff !important; font-weight: 900; text-decoration:none;} ! .allday a:hover { text-decoration:underline;} ! /*varies*/ .eventbg2_1 { background-color: #A6A978; border: 1px solid #FFFFFF; } *************** *** 63,70 **** --- 65,79 ---- .dayborder { background-color: #fff; border-top: 1px solid #A1A5A9; } .dayborder2 { background-color: #fff; border-top: 1px dashed #ccc; } + .dayborder2 { background-color: #fff; border-top: 1px dotted #888; } .title { background-image: url(images/time_bg.gif); padding: 5px; } .title h1 { font-family: Helvetica, sans-serif; font-size: 18px; color: #000; margin: 0px;} + /* Main class used for all page wrapper tables */ + .maintable { width: 990px; } + + /* Week view */ + .weektoday { background-color: #dff; } + /* Month View */ *************** *** 84,87 **** --- 93,99 ---- .yearmonth { background-color: #ccc; } .yearweek { background-color: #eee; width: 30px; font-size: 9px; font-weight: 900; text-align: center; height: 15px; } + .yearleft { padding-right: 5px; padding-top: 5px; padding-bottom: 5px; } + .yearmiddle { padding: 5px; } + .yearright { padding-left: 5px; padding-top: 5px; padding-bottom: 5px; } *************** *** 91,100 **** .eventbg { background-color: #6699CC; } .calborder { background-color: #fff; border: 1px #A1A5A9 solid; } .dateback { background-color: #eee; } ! .weekborder { border-top: 1px dashed #A1A5A9; border-right: 1px solid #A1A5A9; } ! .weekborder2 { border-right: 1px solid #A1A5A9; } ! .timeborder { border-right: 2px solid #A1A5A9; border-top: 1px dashed #A1A5A9; background-image: url(images/time_bg.gif); } ! .timeborder2 { border-right: 2px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); } .navback { background-image: url(images/time_bg.gif); } .sideback { background-image: url(images/side_bg.gif); } --- 103,114 ---- .eventbg { background-color: #6699CC; } + .tfixed { table-layout: fixed; word-wrap: break-word; } .calborder { background-color: #fff; border: 1px #A1A5A9 solid; } .dateback { background-color: #eee; } ! .weekborder { border-left: 1px solid #A1A5A9; border-top: 1px dashed #ccc; } ! .weekborder2 { border-left: 1px solid #A1A5A9; border-top: 1px solid #A1A5A9; } ! .weekborder2 { border-left: 1px solid #A1A5A9; border-top: 1px dotted #888; } ! .timeborder { border-right: 1px solid #A1A5A9; border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); } ! .timeborder2 { border-top: 1px solid #A1A5A9; background-image: url(images/time_bg.gif); } .navback { background-image: url(images/time_bg.gif); } .sideback { background-image: url(images/side_bg.gif); } *************** *** 109,113 **** a.psf:hover { color: #333; text-decoration: underline; } ! /* This is the link style for the mini-cals (varies)*/ a.ps2 { text-decoration: underline; } a.ps2:link { color: #0066FF; } --- 123,127 ---- a.psf:hover { color: #333; text-decoration: underline; } ! /* This is the link style for the mini-cals (varies)*/ a.ps2 { text-decoration: underline; } a.ps2:link { color: #0066FF; } *************** *** 116,120 **** a.ps2:hover { color: #000099; } ! /* This is the link style for year months */ a.ps3 { text-decoration: none; } a.ps3:link { color: #000; } --- 130,134 ---- a.ps2:hover { color: #000099; } ! /* This is the link style for year months */ a.ps3 { text-decoration: none; } a.ps3:link { color: #000; } *************** *** 123,127 **** a.ps3:hover { color: #000; text-decoration: underline; } ! /* This is the link style for events */ a.ps { text-decoration: none; } a.ps:link { color: #fff; } --- 137,141 ---- a.ps3:hover { color: #000; text-decoration: underline; } ! /* This is the link style for events */ a.ps { text-decoration: none; } a.ps:link { color: #fff; } *************** *** 129,133 **** a.ps:active { color: #fff; } a.ps:hover { color: #fff; text-decoration: underline; } ! /* Body attributes */ --- 143,147 ---- a.ps:active { color: #fff; } a.ps:hover { color: #fff; text-decoration: underline; } ! /* Body attributes */ *************** *** 157,158 **** --- 171,182 ---- .search_style { font-size: 12px; font-family: verdana, geneva, arial, sans-serif; width: 134px; margin-bottom: 0; } .login_style { font-size: 11px; font-family: verdana, geneva, arial, sans-serif; width: 80px; margin-bottom: 0; } + + + /* Make printed pages look nice */ + @media print { + .sidebar { width: 0px; display: none; } + .footer { display: none; } + .monthback { border-spacing: 0; } + .monthback td { border: 1px solid #606060; } + .calborder { border: 1px solid #606060; } + } Index: header.tpl =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/templates/tan/header.tpl,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** header.tpl 20 Dec 2008 00:33:14 -0000 1.2 --- header.tpl 12 Apr 2010 18:58:37 -0000 1.2.2.1 *************** *** 5,9 **** <meta http-equiv="content-type" content="text/html; charset={CHARSET}" /> <title>{CALENDAR_NAME} - {DISPLAY_DATE}</title> ! <link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}/templates/{TEMPLATE}/default.css" /> <!-- switch rss_available on --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&rssview={CURRENT_VIEW}"> --- 5,11 ---- <meta http-equiv="content-type" content="text/html; charset={CHARSET}" /> <title>{CALENDAR_NAME} - {DISPLAY_DATE}</title> ! <link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}/templates/{TEMPLATE}/default.css" /> ! <script id="nicetitle" type="text/javascript" src="{DEFAULT_PATH}/nicetitle/nicetitle.js"></script> ! <link rel="stylesheet" type="text/css" href="{DEFAULT_PATH}/nicetitle/nicetitle.css" /> <!-- switch rss_available on --> <link rel="alternate" type="application/rss+xml" title="RSS" href="{DEFAULT_PATH}/rss/rss.php?cal={CAL}&rssview={CURRENT_VIEW}"> --- calendar_nav.tpl DELETED --- --- day.tpl DELETED --- --- month.tpl DELETED --- --- month_large.tpl DELETED --- --- month_medium.tpl DELETED --- --- month_small.tpl DELETED --- --- sidebar.tpl DELETED --- --- year.tpl DELETED --- |