diff --git a/calendar/inc/hook_home.inc.php b/calendar/inc/hook_home.inc.php index 329adc5ae7..a228361813 100755 --- a/calendar/inc/hook_home.inc.php +++ b/calendar/inc/hook_home.inc.php @@ -22,22 +22,19 @@ } unset($d1); - $tmp_app_inc = $phpgw->common->get_inc_dir('calendar'); + global $date; if ($phpgw_info['user']['preferences']['calendar']['mainscreen_showevents']) { - include($tmp_app_inc . '/functions.inc.php'); - echo "\n".'
'."\n"; - echo $phpgw->calendar->mini_calendar($phpgw->calendar->today["day"],$phpgw->calendar->today["month"],$phpgw->calendar->today["year"],"day.php").''; - echo '' - . '
' - . lang(date("F",$phpgw->calendar->today["raw"])).' '.$phpgw->calendar->today["day"].', '.$phpgw->calendar->today["year"].'
'; -// $phpgw->calendar->printer_friendly = True; - $now = $phpgw->calendar->datetime->makegmttime(0,0,0,$phpgw->calendar->today['month'],$phpgw->calendar->today['day'],$phpgw->calendar->today['year']); - $now['raw'] += $phpgw->calendar->datetime->tz_offset; - echo $phpgw->calendar->print_day_at_a_glance($now).'
'."\n"; -// $phpgw->calendar->printer_friendly = False; - echo "\n".'
'."\n"; - unset($phpgw->calendar); + $date = $phpgw->common->show_date(time()-((60*60)*intval($phpgw_info['user']['preferences']['common']['tz_offset'])),'Ymd'); + $cal = CreateObject('calendar.uicalendar'); + echo "\n".'
'."\n" + . $cal->mini_calendar($cal->bo->day,$cal->bo->month,$cal->bo->year,'day').'' + . '' + . '
' + . lang($phpgw->common->show_date(time()-((60*60)*intval($phpgw_info['user']['preferences']['common']['tz_offset'])),'F')).' '.$cal->bo->day.', '.$cal->bo->year.'
' + . $cal->print_day($cal->bo->year,$cal->bo->month,$cal->bo->day).'
'."\n" + . "\n".'
'."\n"; + unset($cal); } ?>