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
|
|
|
|
|
|
|
$d1 = strtolower(substr($phpgw_info['server']['app_inc'],0,3));
|
|
|
|
if($d1 == 'htt' || $d1 == 'ftp')
|
|
|
|
{
|
|
|
|
echo 'Failed attempt to break in via an old Security Hole!<br>'."\n";
|
2002-09-28 22:01:44 +02:00
|
|
|
$GLOBALS['phpgw_info']['flags']['nodisplay'] = True;
|
|
|
|
exit;
|
2001-03-11 05:20:24 +01:00
|
|
|
}
|
|
|
|
unset($d1);
|
|
|
|
|
2001-08-01 13:06:17 +02:00
|
|
|
$cal = CreateObject('calendar.uicalendar');
|
|
|
|
echo 'Event ID: '.$calendar_id."<br>\n";
|
2001-03-11 05:20:24 +01:00
|
|
|
|
2001-08-01 13:06:17 +02:00
|
|
|
$event = $cal->bo->read_entry($calendar_id);
|
2001-03-11 05:20:24 +01:00
|
|
|
|
2001-08-01 13:06:17 +02:00
|
|
|
reset($event['participants']);
|
|
|
|
while(list($particpants,$status) = each($event['participants']))
|
2001-06-25 03:49:32 +02:00
|
|
|
{
|
|
|
|
$parts[] = $participants;
|
|
|
|
}
|
|
|
|
@reset($parts);
|
2001-03-11 05:20:24 +01:00
|
|
|
|
2001-08-01 13:06:17 +02:00
|
|
|
$freetime = $cal->bo->datetime->localdates(mktime(0,0,0,$event['start']['month'],$event['start']['mday'],$event['start']['year']) - $phpgw->calendar->tz_offset);
|
|
|
|
echo $cal->timematrix($freetime,$cal->bo->splittime('000000',False),0,$parts);
|
2001-03-11 05:20:24 +01:00
|
|
|
|
|
|
|
echo '</td></tr><tr><td>';
|
|
|
|
|
2001-08-01 13:06:17 +02:00
|
|
|
echo $cal->view_event($event);
|
2001-03-11 05:20:24 +01:00
|
|
|
|
2001-03-12 04:18:02 +01:00
|
|
|
echo '</td></tr><td align="center"><tr>';
|
2001-03-11 05:20:24 +01:00
|
|
|
|
2001-08-01 13:06:17 +02:00
|
|
|
echo $cal->get_response($calendar_id);
|
2001-03-11 05:20:24 +01:00
|
|
|
?>
|