0) { $thisyear = intval(substr($date, 0, 4)); $thismonth = intval(substr($date, 4, 2)); $thisday = intval(substr($date, 6, 2)); } else { if (!isset($day) || !$day) $thisday = $phpgw->calendar->today["day"]; else $thisday = $day; if (!isset($month) || !$month) $thismonth = $phpgw->calendar->today["month"]; else $thismonth = $month; if (!isset($year) || !$year) $thisyear = $phpgw->calendar->today["year"]; else $thisyear = $year; } $phpgw->calendar->tempyear = $thisyear; $phpgw->calendar->tempmonth = $thismonth; $phpgw->calendar->tempday = $thisday; ?>