2001-07-16 13:38:40 +02:00
|
|
|
<?php
|
2004-08-04 00:52:13 +02:00
|
|
|
/**************************************************************************\
|
|
|
|
* eGroupWare - Calendar *
|
|
|
|
* http://www.egroupware.org *
|
|
|
|
* Maintained and further developed by RalfBecker@outdoor-training.de *
|
|
|
|
* Based on Webcalendar by Craig Knudsen <cknudsen@radix.net> *
|
|
|
|
* http://www.radix.net/~cknudsen *
|
|
|
|
* Originaly modified 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. *
|
|
|
|
\**************************************************************************/
|
2001-07-16 13:38:40 +02:00
|
|
|
|
2004-08-04 00:52:13 +02:00
|
|
|
/* $Id$ */
|
2001-07-16 13:38:40 +02:00
|
|
|
|
2001-08-17 02:24:20 +02:00
|
|
|
if(@$GLOBALS['phpgw_info']['server']['calendar_type'] == 'mcal' &&
|
2001-07-16 13:38:40 +02:00
|
|
|
extension_loaded('mcal') == False)
|
|
|
|
{
|
2001-08-17 02:24:20 +02:00
|
|
|
$GLOBALS['phpgw_info']['server']['calendar_type'] = 'sql';
|
2001-07-16 13:38:40 +02:00
|
|
|
}
|
2001-09-07 18:37:11 +02:00
|
|
|
/* This will be elminated when ical is fully implemented */
|
2001-07-16 13:38:40 +02:00
|
|
|
else
|
|
|
|
{
|
2001-08-17 02:24:20 +02:00
|
|
|
$GLOBALS['phpgw_info']['server']['calendar_type'] = 'sql';
|
2001-07-16 13:38:40 +02:00
|
|
|
}
|
|
|
|
include(PHPGW_INCLUDE_ROOT.'/calendar/inc/class.socalendar__.inc.php');
|
2001-08-17 02:24:20 +02:00
|
|
|
include(PHPGW_INCLUDE_ROOT.'/calendar/inc/class.socalendar_'.$GLOBALS['phpgw_info']['server']['calendar_type'].'.inc.php');
|
2001-07-16 13:38:40 +02:00
|
|
|
?>
|