source: trunk/calendar/inc/hook_home_day.inc.php @ 5132

Revision 5132, 2.0 KB checked in by wmerlotto, 12 years ago (diff)

Ticket #2305 - Enviando alteracoes, desenvolvidas internamente na Prognus, do modulo calendar.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2  /**************************************************************************\
3  * eGroupWare - Calendar                                                    *
4  * http://www.egroupware.org                                                *
5  * Based on Webcalendar by Craig Knudsen <cknudsen@radix.net>               *
6  *          http://www.radix.net/~cknudsen                                  *
7  * Written by Mark Peters <skeeter@phpgroupware.org>                        *
8  * --------------------------------------------                             *
9  *  This program is free software; you can redistribute it and/or modify it *
10  *  under the terms of the GNU General Public License as published by the   *
11  *  Free Software Foundation; either version 2 of the License, or (at your  *
12  *  option) any later version.                                              *
13  \**************************************************************************/
14
15
16        $d1 = strtolower(substr(PHPGW_APP_INC,0,3));
17        if($d1 == 'htt' || $d1 == 'ftp' )
18        {
19                echo 'Failed attempt to break in via an old Security Hole!<br>'."\n";
20                $GLOBALS['phpgw']->common->phpgw_exit();
21        }
22        unset($d1);
23
24        $GLOBALS['extra_data'] = $GLOBALS['css']."\n".'<td>'."\n".'<table border="0" cols="3"><tr><td align="center" width="35%" valign="top">'
25                . ExecMethod('calendar.uicalendar.mini_calendar',
26                        Array(
27                                'day'           => $GLOBALS['g_day'],
28                                'month' => $GLOBALS['g_month'],
29                                'year'  => $GLOBALS['g_year'],
30                                'link'  => 'day'
31                        )
32                ).'</td><td align="center"><table border="0" width="100%" cellspacing="0" cellpadding="0">'
33                . '<tr><td align="center">'.ExecMethod('calendar.bocalendar.long_date',time())
34                .'</td></tr><tr><td bgcolor="'.$GLOBALS['phpgw_info']['theme']['bg_text']
35                .'" valign="top">'.ExecMethod('calendar.uicalendar.print_day',
36                        Array(
37                                'year'  => $GLOBALS['g_year'],
38                                'month' => $GLOBALS['g_month'],
39                                'day'           => $GLOBALS['g_day']
40                        )
41                ).'</td></tr></table>'."\n".'</td>'."\n".'</tr>'."\n".'</table>'."\n".'</td>'."\n";
42?>
Note: See TracBrowser for help on using the repository browser.