2004-03-22 08:44:54 +01:00
|
|
|
<?php
|
2009-10-31 15:47:16 +01:00
|
|
|
/**
|
|
|
|
* eGroupWare - Calendar setup
|
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @package calendar
|
|
|
|
* @author Ralf Becker <RalfBecker-AT-outdoor-training.de>
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
2004-03-22 08:44:54 +01:00
|
|
|
|
2009-10-31 15:47:16 +01:00
|
|
|
// enable auto-loading of holidays from localhost by default
|
|
|
|
foreach(array(
|
|
|
|
'auto_load_holidays' => 'True',
|
|
|
|
'holidays_url_path' => 'localhost',
|
|
|
|
) as $name => $value)
|
|
|
|
{
|
|
|
|
$oProc->insert($GLOBALS['egw_setup']->config_table,array(
|
|
|
|
'config_value' => $value,
|
|
|
|
),array(
|
|
|
|
'config_app' => 'phpgwapi',
|
|
|
|
'config_name' => $name,
|
|
|
|
),__FILE__,__LINE__);
|
|
|
|
}
|
2004-03-22 08:44:54 +01:00
|
|
|
|
2009-10-31 15:47:16 +01:00
|
|
|
// import timezone data from sqlite database
|
2011-03-27 11:50:08 +02:00
|
|
|
try
|
|
|
|
{
|
|
|
|
calendar_timezones::import_sqlite();
|
|
|
|
}
|
2014-10-07 15:15:04 +02:00
|
|
|
// catch missing or broken sqlite support and use timezones.db_backup to install timezones
|
2011-03-27 11:50:08 +02:00
|
|
|
catch (egw_exception_wrong_userinput $e) // all other exceptions are fatal
|
|
|
|
{
|
2014-10-07 23:04:58 +02:00
|
|
|
calendar_timezones::import_db_backup();
|
|
|
|
}
|
|
|
|
calendar_timezones::import_tz_aliases();
|