aboutsummaryrefslogtreecommitdiffstats
path: root/ical_parser.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-09-26 02:54:46 +0000
committerChad Little <clittle@users.sourceforge.net>2002-09-26 02:54:46 +0000
commita45d54a3f479740b88a319070942bcef31362d15 (patch)
treea74e7b99a6fde9805ad0fd9234e62292edf26342 /ical_parser.php
parent36051c01451f9b08b71e5f8f1667526c54de1be5 (diff)
downloadphpicalendar-a45d54a3f479740b88a319070942bcef31362d15.tar.gz
phpicalendar-a45d54a3f479740b88a319070942bcef31362d15.tar.bz2
phpicalendar-a45d54a3f479740b88a319070942bcef31362d15.zip
initial session checkin. most are commented out.
Diffstat (limited to 'ical_parser.php')
-rw-r--r--ical_parser.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/ical_parser.php b/ical_parser.php
index 750aed2..f6cc7ba 100644
--- a/ical_parser.php
+++ b/ical_parser.php
@@ -22,6 +22,12 @@ $this_day = $day_array2[3];
$this_month = $day_array2[2];
$this_year = $day_array2[1];
+// Start the session
+//session_start();
+//if (($aYear != $this_year) || ($use_sessions != "yes") || (!is_array($aArray))) {
+//echo "not using sessions";
+
+
// open the iCal file, read it into a string
$fp = @fopen($filename, "r");
$contents = @fread ($fp, filesize ($filename));
@@ -429,6 +435,21 @@ if (is_array($master_array)) {
ksort($master_array);
reset($master_array);
}
+
+// Store information in the session
+if ($use_sessions == "yes") {
+ session_start();
+ session_register( "aArray", "aYear", "aLanguage", "aCalendar" );
+ $aArray = $master_array;
+ $aYear = $this_year;
+ $aLanguage = $language;
+ $aCalendar = $cal;
+}
+
+
+// End the session
+//}
+
//If you want to see the values in the arrays, uncomment below.
//print "<pre>";
//print_r($master_array);

© 2014-2024 Faster IT GmbH | imprint | privacy policy