egroupware/calendar/inc/hook_home_day.inc.php

44 lines
2.0 KiB
PHP
Raw Normal View History

2001-11-05 04:48:14 +01:00
<?php
/**************************************************************************\
2004-01-27 01:31:58 +01:00
* eGroupWare - Calendar *
* http://www.egroupware.org *
2001-11-05 04:48:14 +01:00
* Based on Webcalendar by Craig Knudsen <cknudsen@radix.net> *
* http://www.radix.net/~cknudsen *
* Written by Mark Peters <skeeter@phpgroupware.org> *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
$d1 = strtolower(substr(PHPGW_APP_INC,0,3));
if($d1 == 'htt' || $d1 == 'ftp' )
{
echo 'Failed attempt to break in via an old Security Hole!<br>'."\n";
$GLOBALS['phpgw']->common->phpgw_exit();
2001-11-05 04:48:14 +01:00
}
unset($d1);
$GLOBALS['extra_data'] = $GLOBALS['css']."\n".'<td>'."\n".'<table border="0" cols="3"><tr><td align="center" width="35%" valign="top">'
2001-11-05 04:48:14 +01:00
. ExecMethod('calendar.uicalendar.mini_calendar',
Array(
'day' => $GLOBALS['g_day'],
'month' => $GLOBALS['g_month'],
'year' => $GLOBALS['g_year'],
'link' => 'day'
)
).'</td><td align="center"><table border="0" width="100%" cellspacing="0" cellpadding="0">'
2004-02-26 23:45:44 +01:00
. '<tr><td align="center">'.ExecMethod('calendar.bocalendar.long_date',time())
.'</td></tr><tr><td bgcolor="'.$GLOBALS['phpgw_info']['theme']['bg_text']
2001-11-05 04:48:14 +01:00
.'" valign="top">'.ExecMethod('calendar.uicalendar.print_day',
Array(
'year' => $GLOBALS['g_year'],
'month' => $GLOBALS['g_month'],
'day' => $GLOBALS['g_day']
)
).'</td></tr></table>'."\n".'</td>'."\n".'</tr>'."\n".'</table>'."\n".'</td>'."\n";
?>