1.1 --- a/public_html/admin/configuration.php Sun Apr 19 16:57:27 2009 +0200
1.2 +++ b/public_html/admin/configuration.php Sun Sep 20 11:00:03 2009 +0200
1.3 @@ -8,7 +8,7 @@
1.4 // | |
1.5 // | Loads the administration UI and sends input to config.class |
1.6 // +---------------------------------------------------------------------------+
1.7 -// | Copyright (C) 2007-2008 by the following authors: |
1.8 +// | Copyright (C) 2007-2009 by the following authors: |
1.9 // | |
1.10 // | Authors: Aaron Blankstein - kantai AT gmail DOT com |
1.11 // +---------------------------------------------------------------------------+
1.12 @@ -84,6 +84,21 @@
1.13 return $themes;
1.14 }
1.15
1.16 +/**
1.17 +* Helper function: Provide timezone dropdown
1.18 +*
1.19 +* @return array Array of (timezone-long-name, timezone-short-name) pairs
1.20 +*
1.21 +*/
1.22 +function configmanager_select_timezone_helper()
1.23 +{
1.24 + global $_CONF;
1.25 +
1.26 + require_once $_CONF['path_system'] . 'classes/timezoneconfig.class.php';
1.27 +
1.28 + return array_flip(TimeZoneConfig::listAvailableTimeZones());
1.29 +}
1.30 +
1.31
1.32 // MAIN
1.33 $display = '';