2001-03-11 05:20:24 +01:00
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
|
|
|
* phpGroupWare - Calendar *
|
|
|
|
* http://www.phpgroupware.org *
|
|
|
|
* 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$ */
|
|
|
|
|
2001-08-01 13:06:17 +02:00
|
|
|
global $calendar_id;
|
2001-03-11 05:20:24 +01:00
|
|
|
|
2002-11-24 11:34:28 +01:00
|
|
|
$d1 = strtolower(substr($GLOBALS['phpgw_info']['server']['app_inc'],0,3));
|
2001-03-11 05:20:24 +01:00
|
|
|
if($d1 == 'htt' || $d1 == 'ftp')
|
|
|
|
{
|
|
|
|
echo 'Failed attempt to break in via an old Security Hole!<br>'."\n";
|
2003-08-28 16:31:11 +02:00
|
|
|
$phpgw->common->phpgw_exit();
|
2001-03-11 05:20:24 +01:00
|
|
|
}
|
|
|
|
unset($d1);
|
|
|
|
|
2003-08-28 16:31:11 +02:00
|
|
|
if ($calendar_id)
|
|
|
|
{
|
|
|
|
$GLOBALS['phpgw']->translation->add_app('calendar');
|
2001-03-11 05:20:24 +01:00
|
|
|
|
2003-08-28 16:31:11 +02:00
|
|
|
$cal = CreateObject('calendar.uicalendar');
|
|
|
|
//echo "Event ID: $calendar_id<br>\n";
|
2001-03-11 05:20:24 +01:00
|
|
|
|
2003-08-28 16:31:11 +02:00
|
|
|
if ($event = $cal->bo->read_entry($calendar_id))
|
|
|
|
{
|
|
|
|
echo $cal->timematrix(
|
|
|
|
Array(
|
|
|
|
'date' => $GLOBALS['phpgw']->datetime->localdates(mktime(0,0,0,$event['start']['month'],$event['start']['mday'],$event['start']['year']) - $phpgw->calendar->tz_offset),
|
|
|
|
'starttime' => $cal->bo->splittime('000000',False),
|
|
|
|
'endtime' => 0,
|
|
|
|
'participants' => $event['participants'])
|
|
|
|
) .
|
2001-03-11 05:20:24 +01:00
|
|
|
|
2003-08-28 16:31:11 +02:00
|
|
|
'</td></tr><tr><td>' .
|
2001-03-11 05:20:24 +01:00
|
|
|
|
2003-08-28 16:31:11 +02:00
|
|
|
$cal->view_event($event) .
|
2001-03-11 05:20:24 +01:00
|
|
|
|
2003-08-28 16:31:11 +02:00
|
|
|
'</td></tr><tr><td align="center">' .
|
2001-03-11 05:20:24 +01:00
|
|
|
|
2003-08-28 16:31:11 +02:00
|
|
|
$cal->get_response($calendar_id);
|
|
|
|
}
|
|
|
|
unset($cal); unset($event);
|
|
|
|
}
|
2001-03-11 05:20:24 +01:00
|
|
|
?>
|