|
From: <cl...@us...> - 2003-03-10 18:27:22
|
Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv24671/functions
Modified Files:
ical_parser.php list_icals.php list_months.php list_weeks.php
list_years.php
Log Message:
More validation fixes, basic attendee parsing added.
Index: ical_parser.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v
retrieving revision 1.85
retrieving revision 1.86
diff -C2 -d -r1.85 -r1.86
*** ical_parser.php 10 Mar 2003 05:37:46 -0000 1.85
--- ical_parser.php 10 Mar 2003 18:27:09 -0000 1.86
***************
*** 92,96 ****
$beginning, $rrule_array, $start_of_vevent, $description,
$valarm_description, $start_unixtime, $end_unixtime,
! $recurrence_id, $uid
);
--- 92,96 ----
$beginning, $rrule_array, $start_of_vevent, $description,
$valarm_description, $start_unixtime, $end_unixtime,
! $recurrence_id, $uid, $class, $attendee, $location, $organizer
);
***************
*** 891,896 ****
}
break;
case 'ATTENDEE':
! $attendee = $data;
break;
}
--- 891,905 ----
}
break;
+ // Attendee support only testing in Apple iCal 1.0.2
case 'ATTENDEE':
! $field = ereg_replace("ATTENDEE;CN=", "", $field);
! $data = ereg_replace ("mailto:", "", $data);
! $attendee[] = array ('name' => $field, 'email' => $data);
! #print_r($attendee);
! break;
! case 'ORGANIZER':
! $field = ereg_replace("ORGANIZER;CN=", "", $field);
! $data = ereg_replace ("mailto:", "", $data);
! $organizer[] = array ('name' => $field, 'email' => $data);
break;
}
Index: list_icals.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/list_icals.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** list_icals.php 2 Dec 2002 01:15:39 -0000 1.11
--- list_icals.php 10 Mar 2003 18:27:10 -0000 1.12
***************
*** 8,12 ****
$query="";
}
! print "<form>\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value+'$query');\">\n";
// open file
--- 8,12 ----
$query="";
}
! print "<form action=\"day.php\" method=\"GET\">\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value+'$query');\">\n";
// open file
Index: list_months.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/list_months.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** list_months.php 23 Nov 2002 23:42:03 -0000 1.5
--- list_months.php 10 Mar 2003 18:27:11 -0000 1.6
***************
*** 1,4 ****
<?php
! print "<form>\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n";
$month_time = strtotime("$this_year-01-01");
$getdate_month = date("m", strtotime($getdate));
--- 1,4 ----
<?php
! print "<form action=\"day.php\" method=\"GET\">\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n";
$month_time = strtotime("$this_year-01-01");
$getdate_month = date("m", strtotime($getdate));
Index: list_weeks.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/list_weeks.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** list_weeks.php 23 Nov 2002 23:42:03 -0000 1.5
--- list_weeks.php 10 Mar 2003 18:27:12 -0000 1.6
***************
*** 12,16 ****
$end_week_time = $start_week_time + (6 * 25 * 60 * 60);
! print "<form>\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n";
// build the <option> tags
--- 12,16 ----
$end_week_time = $start_week_time + (6 * 25 * 60 * 60);
! print "<form action=\"day.php\" method=\"GET\">\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n";
// build the <option> tags
Index: list_years.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/list_years.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** list_years.php 23 Nov 2002 23:42:03 -0000 1.2
--- list_years.php 10 Mar 2003 18:27:13 -0000 1.3
***************
*** 5,9 ****
$num_years2 = $num_years;
//echo "$num_years2";
! print "<form>\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n";
// build the <option> tags
for ($i=0; $i < ($num_years2 +2); $i++) {
--- 5,9 ----
$num_years2 = $num_years;
//echo "$num_years2";
! print "<form action=\"day.php\" method=\"GET\">\n<select name=\"action\" class=\"query_style\" onChange=\"window.location=(this.options[this.selectedIndex].value);\">\n";
// build the <option> tags
for ($i=0; $i < ($num_years2 +2); $i++) {
|