2001-01-13 04:37:22 +01:00
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
2001-01-17 13:35:43 +01:00
|
|
|
* phpGroupWare - Calendar *
|
2001-01-13 04:37:22 +01:00
|
|
|
* http://www.phpgroupware.org *
|
2001-01-17 13:35:43 +01:00
|
|
|
* Based on Webcalendar by Craig Knudsen <cknudsen@radix.net> *
|
|
|
|
* http://www.radix.net/~cknudsen *
|
|
|
|
* Modified by Mark Peters <skeeter@phpgroupware.org> *
|
2001-01-13 04:37:22 +01:00
|
|
|
* -------------------------------------------- *
|
|
|
|
* 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-02-11 14:30:09 +01:00
|
|
|
$phpgw_info['server']['calendar_type'] = 'sql';
|
|
|
|
include(PHPGW_INCLUDE_ROOT.'/calendar/inc/class.calendar_'.$phpgw_info['server']['calendar_type'].'.inc.php');
|
2001-01-13 04:37:22 +01:00
|
|
|
|
2001-02-11 14:30:09 +01:00
|
|
|
class calendar extends calendar_
|
|
|
|
{
|
2001-02-15 05:12:31 +01:00
|
|
|
function calendar($params=False)
|
2001-02-11 20:11:35 +01:00
|
|
|
{
|
2001-02-15 05:12:31 +01:00
|
|
|
global $phpgw_info;
|
|
|
|
|
|
|
|
if(gettype($params)=="array")
|
|
|
|
{
|
|
|
|
while(list($key,$value) = each($params))
|
|
|
|
{
|
|
|
|
$this->$key = $value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$this->printer_friendly = $params;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!$this->owner)
|
|
|
|
{
|
|
|
|
$this->owner = $phpgw_info['user']['account_id'];
|
|
|
|
}
|
|
|
|
|
|
|
|
if(!isset($this->rights))
|
|
|
|
{
|
|
|
|
$this->rights = PHPGW_ACL_READ + PHPGW_ACL_ADD + PHPGW_ACL_EDIT + PHPGW_ACL_DELETE + 16;
|
|
|
|
}
|
|
|
|
|
2001-02-12 05:58:36 +01:00
|
|
|
$this->today = $this->localdates(time());
|
|
|
|
}
|
2001-01-13 04:37:22 +01:00
|
|
|
}
|
|
|
|
?>
|