From: <cl...@us...> - 2003-05-09 20:29:00
|
Update of /cvsroot/phpicalendar/phpicalendar In directory sc8-pr-cvs1:/tmp/cvs-serv22020 Modified Files: README config.inc.php day.php month.php week.php Log Message: Added server offset in seconds. Index: README =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/README,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** README 30 Mar 2003 00:31:38 -0000 1.44 --- README 9 May 2003 20:28:56 -0000 1.45 *************** *** 80,83 **** --- 80,84 ---- -Added support for ATTENDEE -Added support for STATUS + -Added the ability to correct the servers time display -Added admin.php for administration of calendars (uses cookies). See config.inc.php for configuration. -Add or Update a calendar via a web interface Index: config.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/config.inc.php,v retrieving revision 1.99 retrieving revision 1.100 diff -C2 -d -r1.99 -r1.100 *** config.inc.php 30 Mar 2003 00:31:38 -0000 1.99 --- config.inc.php 9 May 2003 20:28:56 -0000 1.100 *************** *** 1,5 **** <?php ! // Configuration file for PHP iCalendar 0.9.1 // // To set values, change the text between the single quotes --- 1,5 ---- <?php ! // Configuration file for PHP iCalendar 0.9.2 // // To set values, change the text between the single quotes *************** *** 23,26 **** --- 23,27 ---- $tmp_dir = '/tmp'; // The temporary directory on your system (/tmp is fine for UNIXes including Mac OS X) $calendar_path = ''; // Leave this blank on most installs, place your full path to calendars if they are outside the phpicalendar folder. + $second_offset = '0'; // The time in seconds between your time and your server's time. // Advanced settings for custom installs, cookies, etc. Index: day.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/day.php,v retrieving revision 1.87 retrieving revision 1.88 diff -C2 -d -r1.87 -r1.88 *** day.php 10 Mar 2003 19:48:22 -0000 1.87 --- day.php 9 May 2003 20:28:56 -0000 1.88 *************** *** 3,7 **** $jumpto_day_time = strtotime($HTTP_GET_VARS['jumpto_day']); if ($jumpto_day_time == -1) { ! $getdate = date('Ymd'); } else { $getdate = date('Ymd', $jumpto_day_time); --- 3,7 ---- $jumpto_day_time = strtotime($HTTP_GET_VARS['jumpto_day']); if ($jumpto_day_time == -1) { ! $getdate = date('Ymd', strtotime("now + $second_offset seconds")); } else { $getdate = date('Ymd', $jumpto_day_time); *************** *** 16,20 **** $weekstart = 1; $unix_time = strtotime($getdate); ! $today_today = date ('Ymd'); $tomorrows_date = date( 'Ymd', strtotime('+1 day', $unix_time)); $yesterdays_date = date( 'Ymd', strtotime('-1 day', $unix_time)); --- 16,20 ---- $weekstart = 1; $unix_time = strtotime($getdate); ! $today_today = date ('Ymd', $unix_time); $tomorrows_date = date( 'Ymd', strtotime('+1 day', $unix_time)); $yesterdays_date = date( 'Ymd', strtotime('-1 day', $unix_time)); Index: month.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/month.php,v retrieving revision 1.86 retrieving revision 1.87 diff -C2 -d -r1.86 -r1.87 *** month.php 10 Mar 2003 19:48:24 -0000 1.86 --- month.php 9 May 2003 20:28:56 -0000 1.87 *************** *** 12,16 **** $unix_time = strtotime($getdate); ! $today_today = date ("Ymd"); $tomorrows_date = date( "Ymd", strtotime("+1 day", $unix_time)); $yesterdays_date = date( "Ymd", strtotime("-1 day", $unix_time)); --- 12,16 ---- $unix_time = strtotime($getdate); ! $today_today = date ('Ymd', $unix_time); $tomorrows_date = date( "Ymd", strtotime("+1 day", $unix_time)); $yesterdays_date = date( "Ymd", strtotime("-1 day", $unix_time)); Index: week.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/week.php,v retrieving revision 1.87 retrieving revision 1.88 diff -C2 -d -r1.87 -r1.88 *** week.php 10 Mar 2003 19:48:24 -0000 1.87 --- week.php 9 May 2003 20:28:56 -0000 1.88 *************** *** 10,14 **** $unix_time = strtotime($getdate); $thisday2 = localizeDate($dateFormat_week_list, $unix_time); ! $today_today = date ("Ymd"); $next_week = date("Ymd", strtotime("+1 week", $unix_time)); $prev_week = date("Ymd", strtotime("-1 week", $unix_time)); --- 10,14 ---- $unix_time = strtotime($getdate); $thisday2 = localizeDate($dateFormat_week_list, $unix_time); ! $today_today = date ('Ymd', $unix_time); $next_week = date("Ymd", strtotime("+1 week", $unix_time)); $prev_week = date("Ymd", strtotime("-1 week", $unix_time)); |