event = $event; $this->referer = urldecode($referer); $this->cal = $cal; //print $this->referer; //exit; $this->summary = ''; $this->location = ''; $this->description = ''; $this->start = ''; $this->end = ''; $this->timezone = ''; $this->localtime = ($_SESSION['user_settings']->getTimeZone() !== NULL) ? $_SESSION['user_settings']->getTimeZone() : TIMEZONE; $root = WEB_ROOT; $week_start_sunday = ($_SESSION['user_settings']->getStartWeek() !== NULL) ? $_SESSION['user_settings']->getStartWeek() : WEEK_START_SUNDAY; $week_start_sunday = ($week_start_sunday) ? 0 : 1; $this->startdate = <<< __CAL1 __CAL1; $this->enddate = <<< __CAL1 __CAL1; $this->until = <<< __CAL1 __CAL1; } private function parseEvent() { if (! $this->event) return FALSE; $comp = $this->event->getBaseComponent(); $this->summary = $comp->GetPValue('SUMMARY'); $this->location = $comp->GetPValue('LOCATION'); $this->description = $comp->GetPValue('DESCRIPTION'); $this->start = $comp->GetPValue('DTSTART'); $this->end = $comp->GetPValue('DTEND'); $this->timezone = $this->event->getTZID(); $rrule = $this->event->getRRule(); $this->dates = $rrule->getEventDates(); $this->rrule = $rrule->getAll(); //echo $this->start .':'. $this->end .'
'; return TRUE; } private function createDT($elem, $name) { $res = array(); //print_r($elem); //echo '
'; if (count($elem) > 1) { $date = $elem[0]; $time = substr($elem[1], 0, 4); } else { $date = $elem[0]; $time = '2359'; } for ($i = 0; $i < substr($time, 2); $i += 15); if ($i < 10) $i = "0$i"; $time = substr($time, 0, 2) . $i; //echo "$time
"; $options = array(); for ($i = 0; $i < 24; $i++) { $h = ($i < 10) ? "0$i" : $i; $stop = ($i == 23) ? 61 : 60; for ($j = 0; $j < $stop; $j += 15) { $m = ($j < 10) ? "0$j" : $j; if ($m == 60) $m = 59; $hm = "$h$m"; //echo "$hm
"; $option = "