mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
4457bdf5f8
- automatic import of updated timezone database calendar/setup/timezones.sqlite, so in future commting new timezones is all it needs
37 lines
1014 B
PHP
37 lines
1014 B
PHP
<?php
|
|
/**
|
|
* 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$
|
|
*/
|
|
|
|
// 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__);
|
|
}
|
|
|
|
// import timezone data from sqlite database
|
|
try
|
|
{
|
|
calendar_timezones::import_sqlite();
|
|
}
|
|
// catch broken sqlite extension exception and output message, as user can't do anything about it
|
|
// all other exceptions are fatal, to get user to fix them!
|
|
catch (egw_exception_wrong_userinput $e) // all other exceptions are fatal
|
|
{
|
|
_egw_log_exception($e);
|
|
echo '<p>'.$e->getMessage()."</p>\n";
|
|
} |