summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c8686d)
raw | patch | inline | side by side (parent: 4c8686d)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Jan 2008 10:57:51 +0000 (10:57 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Jan 2008 10:57:51 +0000 (10:57 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8284 594d385d-05f5-0310-b6e9-bd551577e9d8
index ebcbe1dabefa11ab6c9daca4c7b1e9b6e932d53d..2592cb8d13d7c8447c6e134223ac956b9cc0a55e 100644 (file)
padding-bottom:0.3em;
padding-top:0.3em;
font-weight:bold;
- background-color: #E0E0E0;
+ background-color: #F0F0F0;
}
div.errorMsgSepeator {
index becb455c1b7886be08ec7c9130e232c94b9c328e..dec871a7542525cfa16a527283522047e88768a0 100644 (file)
"writeexcel_formula" => "include/utils/excel/class.writeexcel_formula.inc.php",
"writeexcel_workbook" => "include/utils/excel/class.writeexcel_workbook.inc.php",
"writeexcel_format" => "include/utils/excel/class.writeexcel_format.inc.php",
+ "timezone" => "include/utils/class_timezone.inc",
"Template_PHPLIB" => "include/utils/layer-menu/lib/PHPLIB.php",
"PHPTreeMenu" => "include/utils/layer-menu/lib/phptreemenu.inc.php",
"ProcessLayersMenu" => "include/utils/layer-menu/lib/layersmenu-process.inc.php",
index c55e566445c50bf605db61520161dbd56e4e8a75..87c667de61bfaab2ec2819d0d3f53ff136f86111 100644 (file)
}
-/* Return class name in correct case
- * mailMethodkolab => mailMethodKolab ( k => K )
- */
+/* Return class name in correct case */
function get_correct_class_name($cls)
{
global $class_mapping;
}
-/* This function returns the offset for the default timezone.
- * $stamp is used to detect summer or winter time.
- * In case of PHP5, the integrated timezone functions are used.
- */
-function get_default_timezone($stamp = NULL)
-{
- global $config;
- $tz ="";
-
- /* Default return value if zone could not be detected */
- $zone = array("name" => "unconfigured", "value" => 0);
-
- /* Use current timestamp if $stamp is not set */
- if($stamp === NULL){
- $stamp = time();
- }
-
- /* Is there a timezone configured in the gosa configuration (gosa.conf) */
- if(isset($config->current['TIMEZONE']) || isset($config->data['MAIN']['TIMEZONE'])){
-
- /* Get zonename */
- if(isset($config->current['TIMEZONE'])){
- $tz = $config->current['TIMEZONE'];
- }else{
- $tz = $config->data['MAIN']['TIMEZONE'];
- }
-
- if(!@date_default_timezone_set($tz)){
- msg_dialog::display(_("Configuration error"), sprintf(_("The timezone setting '%s' in your gosa.conf is not valid. Cannot calculate correct timezone offest."), $tz), ERROR_DIALOG);
- }
- $tz_delta = date("Z", $stamp);
- $tz_delta = $tz_delta / 3600 ;
- return(array("name" => $tz, "value" => $tz_delta));
-
- }
- return($zone);
-}
-
-
-/* Return zone informations */
-function _get_tz_zones()
-{
- $timezones = array(
- 'Africa/Abidjan' => 0,
- 'Africa/Accra' => 0,
- 'Africa/Addis_Ababa' => 10800,
- 'Africa/Algiers' => 3600,
- 'Africa/Asmera' => 10800,
- 'Africa/Bamako' => 0,
- 'Africa/Bangui' => 3600,
- 'Africa/Banjul' => 0,
- 'Africa/Bissau' => 0,
- 'Africa/Blantyre' => 7200,
- 'Africa/Brazzaville' => 3600,
- 'Africa/Bujumbura' => 7200,
- 'Africa/Cairo' => 7200,
- 'Africa/Casablanca' => 0,
- 'Africa/Ceuta' => 3600,
- 'Africa/Conakry' => 0,
- 'Africa/Dakar' => 0,
- 'Africa/Dar_es_Salaam' => 10800,
- 'Africa/Djibouti' => 10800,
- 'Africa/Douala' => 3600,
- 'Africa/El_Aaiun' => 0,
- 'Africa/Freetown' => 0,
- 'Africa/Gaborone' => 7200,
- 'Africa/Harare' => 7200,
- 'Africa/Johannesburg' => 7200,
- 'Africa/Kampala' => 10800,
- 'Africa/Khartoum' => 10800,
- 'Africa/Kigali' => 7200,
- 'Africa/Kinshasa' => 3600,
- 'Africa/Lagos' => 3600,
- 'Africa/Libreville' => 3600,
- 'Africa/Lome' => 0,
- 'Africa/Luanda' => 3600,
- 'Africa/Lubumbashi' => 7200,
- 'Africa/Lusaka' => 7200,
- 'Africa/Malabo' => 3600,
- 'Africa/Maputo' => 7200,
- 'Africa/Maseru' => 7200,
- 'Africa/Mbabane' => 7200,
- 'Africa/Mogadishu' => 10800,
- 'Africa/Monrovia' => 0,
- 'Africa/Nairobi' => 10800,
- 'Africa/Ndjamena' => 3600,
- 'Africa/Niamey' => 3600,
- 'Africa/Nouakchott' => 0,
- 'Africa/Ouagadougou' => 0,
- 'Africa/Porto-Novo' => 3600,
- 'Africa/Sao_Tome' => 0,
- 'Africa/Timbuktu' => 0,
- 'Africa/Tripoli' => 7200,
- 'Africa/Tunis' => 3600,
- 'Africa/Windhoek' => 3600,
- 'America/Adak' => -36000,
- 'America/Anchorage' => -32400,
- 'America/Anguilla' => -14400,
- 'America/Antigua' => -14400,
- 'America/Araguaina' => -10800,
- 'America/Argentina/Buenos_Aires' => 0,
- 'America/Argentina/Catamarca' => 0,
- 'America/Argentina/ComodRivadavia' => 0,
- 'America/Argentina/Cordoba' => 0,
- 'America/Argentina/Jujuy' => 0,
- 'America/Argentina/La_Rioja' => 0,
- 'America/Argentina/Mendoza' => 0,
- 'America/Argentina/Rio_Gallegos' => 0,
- 'America/Argentina/San_Juan' => 0,
- 'America/Argentina/Tucuman' => 0,
- 'America/Argentina/Ushuaia' => 0,
- 'America/Aruba' => -14400,
- 'America/Asuncion' => -14400,
- 'America/Atikokan' => 0,
- 'America/Atka' => -36000,
- 'America/Bahia' => 0,
- 'America/Barbados' => -14400,
- 'America/Belem' => -10800,
- 'America/Belize' => -21600,
- 'America/Blanc-Sablon' => 0,
- 'America/Boa_Vista' => -14400,
- 'America/Bogota' => -18000,
- 'America/Boise' => -25200,
- 'America/Buenos_Aires' => -10800,
- 'America/Cambridge_Bay' => -25200,
- 'America/Campo_Grande' => 0,
- 'America/Cancun' => -21600,
- 'America/Caracas' => -14400,
- 'America/Catamarca' => -10800,
- 'America/Cayenne' => -10800,
- 'America/Cayman' => -18000,
- 'America/Chicago' => -21600,
- 'America/Chihuahua' => -25200,
- 'America/Coral_Harbour' => 0,
- 'America/Cordoba' => -10800,
- 'America/Costa_Rica' => -21600,
- 'America/Cuiaba' => -14400,
- 'America/Curacao' => -14400,
- 'America/Danmarkshavn' => 0,
- 'America/Dawson' => -28800,
- 'America/Dawson_Creek' => -25200,
- 'America/Denver' => -25200,
- 'America/Detroit' => -18000,
- 'America/Dominica' => -14400,
- 'America/Edmonton' => -25200,
- 'America/Eirunepe' => -18000,
- 'America/El_Salvador' => -21600,
- 'America/Ensenada' => -28800,
- 'America/Fort_Wayne' => -18000,
- 'America/Fortaleza' => -10800,
- 'America/Glace_Bay' => -14400,
- 'America/Godthab' => -10800,
- 'America/Goose_Bay' => -14400,
- 'America/Grand_Turk' => -18000,
- 'America/Grenada' => -14400,
- 'America/Guadeloupe' => -14400,
- 'America/Guatemala' => -21600,
- 'America/Guayaquil' => -18000,
- 'America/Guyana' => -14400,
- 'America/Halifax' => -14400,
- 'America/Havana' => -18000,
- 'America/Hermosillo' => -25200,
- 'America/Indiana/Indianapolis' => -18000,
- 'America/Indiana/Knox' => -18000,
- 'America/Indiana/Marengo' => -18000,
- 'America/Indiana/Petersburg' => 0,
- 'America/Indiana/Vevay' => -18000,
- 'America/Indiana/Vincennes' => 0,
- 'America/Indianapolis' => -18000,
- 'America/Inuvik' => -25200,
- 'America/Iqaluit' => -18000,
- 'America/Jamaica' => -18000,
- 'America/Jujuy' => -10800,
- 'America/Juneau' => -32400,
- 'America/Kentucky/Louisville' => -18000,
- 'America/Kentucky/Monticello' => -18000,
- 'America/Knox_IN' => -18000,
- 'America/La_Paz' => -14400,
- 'America/Lima' => -18000,
- 'America/Los_Angeles' => -28800,
- 'America/Louisville' => -18000,
- 'America/Maceio' => -10800,
- 'America/Managua' => -21600,
- 'America/Manaus' => -14400,
- 'America/Martinique' => -14400,
- 'America/Mazatlan' => -25200,
- 'America/Mendoza' => -10800,
- 'America/Menominee' => -21600,
- 'America/Merida' => -21600,
- 'America/Mexico_City' => -21600,
- 'America/Miquelon' => -10800,
- 'America/Moncton' => 0,
- 'America/Monterrey' => -21600,
- 'America/Montevideo' => -10800,
- 'America/Montreal' => -18000,
- 'America/Montserrat' => -14400,
- 'America/Nassau' => -18000,
- 'America/New_York' => -18000,
- 'America/Nipigon' => -18000,
- 'America/Nome' => -32400,
- 'America/Noronha' => -7200,
- 'America/North_Dakota/Center' => -21600,
- 'America/North_Dakota/New_Salem' => 0,
- 'America/Panama' => -18000,
- 'America/Pangnirtung' => -18000,
- 'America/Paramaribo' => -10800,
- 'America/Phoenix' => -25200,
- 'America/Port-au-Prince' => -18000,
- 'America/Port_of_Spain' => -14400,
- 'America/Porto_Acre' => -18000,
- 'America/Porto_Velho' => -14400,
- 'America/Puerto_Rico' => -14400,
- 'America/Rainy_River' => -21600,
- 'America/Rankin_Inlet' => -21600,
- 'America/Recife' => -10800,
- 'America/Regina' => -21600,
- 'America/Rio_Branco' => -18000,
- 'America/Rosario' => -10800,
- 'America/Santiago' => -14400,
- 'America/Santo_Domingo' => -14400,
- 'America/Sao_Paulo' => -10800,
- 'America/Scoresbysund' => -3600,
- 'America/Shiprock' => -25200,
- 'America/St_Johns' => -12600,
- 'America/St_Kitts' => -14400,
- 'America/St_Lucia' => -14400,
- 'America/St_Thomas' => -14400,
- 'America/St_Vincent' => -14400,
- 'America/Swift_Current' => -21600,
- 'America/Tegucigalpa' => -21600,
- 'America/Thule' => -14400,
- 'America/Thunder_Bay' => -18000,
- 'America/Tijuana' => -28800,
- 'America/Toronto' => 0,
- 'America/Tortola' => -14400,
- 'America/Vancouver' => -28800,
- 'America/Virgin' => -14400,
- 'America/Whitehorse' => -28800,
- 'America/Winnipeg' => -21600,
- 'America/Yakutat' => -32400,
- 'America/Yellowknife' => -25200,
- 'Antarctica/Casey' => 28800,
- 'Antarctica/Davis' => 25200,
- 'Antarctica/DumontDUrville' => 36000,
- 'Antarctica/Mawson' => 21600,
- 'Antarctica/McMurdo' => 43200,
- 'Antarctica/Palmer' => -14400,
- 'Antarctica/Rothera' => 0,
- 'Antarctica/South_Pole' => 43200,
- 'Antarctica/Syowa' => 10800,
- 'Antarctica/VostokArctic/Longyearbyen' => 0,
- 'Asia/Aden' => 10800,
- 'Asia/Almaty' => 21600,
- 'Asia/Amman' => 7200,
- 'Asia/Anadyr' => 43200,
- 'Asia/Aqtau' => 14400,
- 'Asia/Aqtobe' => 18000,
- 'Asia/Ashgabat' => 18000,
- 'Asia/Ashkhabad' => 18000,
- 'Asia/Baghdad' => 10800,
- 'Asia/Bahrain' => 10800,
- 'Asia/Baku' => 14400,
- 'Asia/Bangkok' => 25200,
- 'Asia/Beirut' => 7200,
- 'Asia/Bishkek' => 18000,
- 'Asia/Brunei' => 28800,
- 'Asia/Calcutta' => 19800,
- 'Asia/Choibalsan' => 32400,
- 'Asia/Chongqing' => 28800,
- 'Asia/Chungking' => 28800,
- 'Asia/Colombo' => 21600,
- 'Asia/Dacca' => 21600,
- 'Asia/Damascus' => 7200,
- 'Asia/Dhaka' => 21600,
- 'Asia/Dili' => 32400,
- 'Asia/Dubai' => 14400,
- 'Asia/Dushanbe' => 18000,
- 'Asia/Gaza' => 7200,
- 'Asia/Harbin' => 28800,
- 'Asia/Hong_Kong' => 28800,
- 'Asia/Hovd' => 25200,
- 'Asia/Irkutsk' => 28800,
- 'Asia/Istanbul' => 7200,
- 'Asia/Jakarta' => 25200,
- 'Asia/Jayapura' => 32400,
- 'Asia/Jerusalem' => 7200,
- 'Asia/Kabul' => 16200,
- 'Asia/Kamchatka' => 43200,
- 'Asia/Karachi' => 18000,
- 'Asia/Kashgar' => 28800,
- 'Asia/Katmandu' => 20700,
- 'Asia/Krasnoyarsk' => 25200,
- 'Asia/Kuala_Lumpur' => 28800,
- 'Asia/Kuching' => 28800,
- 'Asia/Kuwait' => 10800,
- 'Asia/Macao' => 28800,
- 'Asia/Macau' => 0,
- 'Asia/Magadan' => 39600,
- 'Asia/Makassar' => 0,
- 'Asia/Manila' => 28800,
- 'Asia/Muscat' => 14400,
- 'Asia/Nicosia' => 7200,
- 'Asia/Novosibirsk' => 21600,
- 'Asia/Omsk' => 21600,
- 'Asia/Oral' => 0,
- 'Asia/Phnom_Penh' => 25200,
- 'Asia/Pontianak' => 25200,
- 'Asia/Pyongyang' => 32400,
- 'Asia/Qatar' => 10800,
- 'Asia/Qyzylorda' => 0,
- 'Asia/Rangoon' => 23400,
- 'Asia/Riyadh' => 10800,
- 'Asia/Saigon' => 25200,
- 'Asia/Sakhalin' => 36000,
- 'Asia/Samarkand' => 18000,
- 'Asia/Seoul' => 32400,
- 'Asia/Shanghai' => 28800,
- 'Asia/Singapore' => 28800,
- 'Asia/Taipei' => 28800,
- 'Asia/Tashkent' => 18000,
- 'Asia/Tbilisi' => 14400,
- 'Asia/Tehran' => 12600,
- 'Asia/Tel_Aviv' => 7200,
- 'Asia/Thimbu' => 21600,
- 'Asia/Thimphu' => 21600,
- 'Asia/Tokyo' => 32400,
- 'Asia/Ujung_Pandang' => 28800,
- 'Asia/Ulaanbaatar' => 28800,
- 'Asia/Ulan_Bator' => 28800,
- 'Asia/Urumqi' => 28800,
- 'Asia/Vientiane' => 25200,
- 'Asia/Vladivostok' => 36000,
- 'Asia/Yakutsk' => 32400,
- 'Asia/Yekaterinburg' => 18000,
- 'Asia/YerevanAtlantic/Azores' => 0,
- 'Atlantic/Bermuda' => -14400,
- 'Atlantic/Canary' => 0,
- 'Atlantic/Cape_Verde' => -3600,
- 'Atlantic/Faeroe' => 0,
- 'Atlantic/Jan_Mayen' => 3600,
- 'Atlantic/Madeira' => 0,
- 'Atlantic/Reykjavik' => 0,
- 'Atlantic/South_Georgia' => -7200,
- 'Atlantic/St_Helena' => 0,
- 'Atlantic/Stanley' => -14400,
- 'Australia/ACT' => 36000,
- 'Australia/Adelaide' => 34200,
- 'Australia/Brisbane' => 36000,
- 'Australia/Broken_Hill' => 34200,
- 'Australia/Canberra' => 36000,
- 'Australia/Currie' => 0,
- 'Australia/Darwin' => 34200,
- 'Australia/Hobart' => 36000,
- 'Australia/LHI' => 37800,
- 'Australia/Lindeman' => 36000,
- 'Australia/Lord_Howe' => 37800,
- 'Australia/Melbourne' => 36000,
- 'Australia/NSW' => 36000,
- 'Australia/North' => 34200,
- 'Australia/Perth' => 28800,
- 'Australia/Queensland' => 36000,
- 'Australia/South' => 34200,
- 'Australia/Sydney' => 36000,
- 'Australia/Tasmania' => 36000,
- 'Australia/Victoria' => 36000,
- 'Australia/West' => 28800,
- 'Australia/Yancowinna' => 34200,
- 'Europe/Amsterdam' => 3600,
- 'Europe/Andorra' => 3600,
- 'Europe/Athens' => 7200,
- 'Europe/Belfast' => 0,
- 'Europe/Belgrade' => 3600,
- 'Europe/Berlin' => 3600,
- 'Europe/Bratislava' => 3600,
- 'Europe/Brussels' => 3600,
- 'Europe/Bucharest' => 7200,
- 'Europe/Budapest' => 3600,
- 'Europe/Chisinau' => 7200,
- 'Europe/Copenhagen' => 3600,
- 'Europe/Dublin' => 0,
- 'Europe/Gibraltar' => 3600,
- 'Europe/Guernsey' => 0,
- 'Europe/Helsinki' => 7200,
- 'Europe/Isle_of_Man' => 0,
- 'Europe/Istanbul' => 7200,
- 'Europe/Jersey' => 0,
- 'Europe/Kaliningrad' => 7200,
- 'Europe/Kiev' => 7200,
- 'Europe/Lisbon' => 0,
- 'Europe/Ljubljana' => 3600,
- 'Europe/London' => 0,
- 'Europe/Luxembourg' => 3600,
- 'Europe/Madrid' => 3600,
- 'Europe/Malta' => 3600,
- 'Europe/Mariehamn' => 0,
- 'Europe/Minsk' => 7200,
- 'Europe/Monaco' => 3600,
- 'Europe/Moscow' => 10800,
- 'Europe/Nicosia' => 7200,
- 'Europe/Oslo' => 3600,
- 'Europe/Paris' => 3600,
- 'Europe/Prague' => 3600,
- 'Europe/Riga' => 7200,
- 'Europe/Rome' => 3600,
- 'Europe/Samara' => 14400,
- 'Europe/San_Marino' => 3600,
- 'Europe/Sarajevo' => 3600,
- 'Europe/Simferopol' => 7200,
- 'Europe/Skopje' => 3600,
- 'Europe/Sofia' => 7200,
- 'Europe/Stockholm' => 3600,
- 'Europe/Tallinn' => 7200,
- 'Europe/Tirane' => 3600,
- 'Europe/Tiraspol' => 7200,
- 'Europe/Uzhgorod' => 7200,
- 'Europe/Vaduz' => 3600,
- 'Europe/Vatican' => 3600,
- 'Europe/Vienna' => 3600,
- 'Europe/Vilnius' => 7200,
- 'Europe/Volgograd' => 0,
- 'Europe/Warsaw' => 3600,
- 'Europe/Zagreb' => 3600,
- 'Europe/Zaporozhye' => 7200,
- 'Europe/Zurich' => 3600,
- 'Indian/Antananarivo' => 10800,
- 'Indian/Chagos' => 21600,
- 'Indian/Christmas' => 25200,
- 'Indian/Cocos' => 23400,
- 'Indian/Comoro' => 10800,
- 'Indian/Kerguelen' => 18000,
- 'Indian/Mahe' => 14400,
- 'Indian/Maldives' => 18000,
- 'Indian/Mauritius' => 14400,
- 'Indian/Mayotte' => 10800,
- 'Indian/Reunion' => 14400,
- 'Pacific/Apia' => -39600,
- 'Pacific/Auckland' => 43200,
- 'Pacific/Chatham' => 45900,
- 'Pacific/Easter' => -21600,
- 'Pacific/Efate' => 39600,
- 'Pacific/Enderbury' => 46800,
- 'Pacific/Fakaofo' => -36000,
- 'Pacific/Fiji' => 43200,
- 'Pacific/Funafuti' => 43200,
- 'Pacific/Galapagos' => -21600,
- 'Pacific/Gambier' => -32400,
- 'Pacific/Guadalcanal' => 39600,
- 'Pacific/Guam' => 36000,
- 'Pacific/Honolulu' => -36000,
- 'Pacific/Johnston' => -36000,
- 'Pacific/Kiritimati' => 50400,
- 'Pacific/Kosrae' => 39600,
- 'Pacific/Kwajalein' => 43200,
- 'Pacific/Majuro' => 43200,
- 'Pacific/Marquesas' => -34200,
- 'Pacific/Midway' => -39600,
- 'Pacific/Nauru' => 43200,
- 'Pacific/Niue' => -39600,
- 'Pacific/Norfolk' => 41400,
- 'Pacific/Noumea' => 39600,
- 'Pacific/Pago_Pago' => -39600,
- 'Pacific/Palau' => 32400,
- 'Pacific/Pitcairn' => -28800,
- 'Pacific/Ponape' => 39600,
- 'Pacific/Port_Moresby' => 36000,
- 'Pacific/Rarotonga' => -36000,
- 'Pacific/Saipan' => 36000,
- 'Pacific/Samoa' => -39600,
- 'Pacific/Tahiti' => -36000,
- 'Pacific/Tarawa' => 43200,
- 'Pacific/Tongatapu' => 46800,
- 'Pacific/Truk' => 36000,
- 'Pacific/Wake' => 43200,
- 'Pacific/Wallis' => 43200,
- 'Pacific/Yap' => 36000 );
-
- $dst_timezones = array (
- 'America/Adak' => 1,
- 'America/Atka' => 1,
- 'America/Anchorage' => 1,
- 'America/Juneau' => 1,
- 'America/Nome' => 1,
- 'America/Yakutat' => 1,
- 'America/Dawson' => 1,
- 'America/Ensenada' => 1,
- 'America/Los_Angeles' => 1,
- 'America/Tijuana' => 1,
- 'America/Vancouver' => 1,
- 'America/Whitehorse' => 1,
- 'America/Boise' => 1,
- 'America/Cambridge_Bay' => 1,
- 'America/Chihuahua' => 1,
- 'America/Denver' => 1,
- 'America/Edmonton' => 1,
- 'America/Inuvik' => 1,
- 'America/Mazatlan' => 1,
- 'America/Shiprock' => 1,
- 'America/Yellowknife' => 1,
- 'America/Cancun' => 1,
- 'America/Chicago' => 1,
- 'America/Menominee' => 1,
- 'America/Merida' => 1,
- 'America/Monterrey' => 1,
- 'America/North_Dakota/Center' => 1,
- 'America/Rainy_River' => 1,
- 'America/Rankin_Inlet' => 1,
- 'America/Winnipeg' => 1,
- 'Pacific/Easter' => 1,
- 'America/Detroit' => 1,
- 'America/Grand_Turk' => 1,
- 'America/Havana' => 1,
- 'America/Iqaluit' => 1,
- 'America/Kentucky/Louisville' => 1,
- 'America/Kentucky/Monticello' => 1,
- 'America/Louisville' => 1,
- 'America/Montreal' => 1,
- 'America/Nassau' => 1,
- 'America/New_York' => 1,
- 'America/Nipigon' => 1,
- 'America/Pangnirtung' => 1,
- 'America/Thunder_Bay' => 1,
- 'America/Asuncion' => 1,
- 'America/Cuiaba' => 1,
- 'America/Glace_Bay' => 1,
- 'America/Goose_Bay' => 1,
- 'America/Halifax' => 1,
- 'America/Santiago' => 1,
- 'Antarctica/Palmer' => 1,
- 'Atlantic/Bermuda' => 1,
- 'Atlantic/Stanley' => 1,
- 'America/St_Johns' => 1,
- 'America/Araguaina' => 1,
- 'America/Fortaleza' => 1,
- 'America/Godthab' => 1,
- 'America/Maceio' => 1,
- 'America/Miquelon' => 1,
- 'America/Recife' => 1,
- 'America/Sao_Paulo' => 1,
- 'America/Scoresbysund' => 1,
- 'Atlantic/Canary' => 1,
- 'Atlantic/Faeroe' => 1,
- 'Atlantic/Madeira' => 1,
- 'Europe/Belfast' => 1,
- 'Europe/Dublin' => 1,
- 'Europe/Lisbon' => 1,
- 'Europe/London' => 1,
- 'Africa/Ceuta' => 1,
- 'Africa/Windhoek' => 1,
- 'Atlantic/Jan_Mayen' => 1,
- 'Europe/Amsterdam' => 1,
- 'Europe/Andorra' => 1,
- 'Europe/Belgrade' => 1,
- 'Europe/Berlin' => 1,
- 'Europe/Bratislava' => 1,
- 'Europe/Brussels' => 1,
- 'Europe/Budapest' => 1,
- 'Europe/Copenhagen' => 1,
- 'Europe/Gibraltar' => 1,
- 'Europe/Ljubljana' => 1,
- 'Europe/Luxembourg' => 1,
- 'Europe/Madrid' => 1,
- 'Europe/Malta' => 1,
- 'Europe/Monaco' => 1,
- 'Europe/Oslo' => 1,
- 'Europe/Paris' => 1,
- 'Europe/Prague' => 1,
- 'Europe/Rome' => 1,
- 'Europe/San_Marino' => 1,
- 'Europe/Sarajevo' => 1,
- 'Europe/Skopje' => 1,
- 'Europe/Stockholm' => 1,
- 'Europe/Tirane' => 1,
- 'Europe/Vaduz' => 1,
- 'Europe/Vatican' => 1,
- 'Europe/Vienna' => 1,
- 'Europe/Warsaw' => 1,
- 'Europe/Zagreb' => 1,
- 'Europe/Zurich' => 1,
- 'Africa/Cairo' => 1,
- 'Asia/Amman' => 1,
- 'Asia/Beirut' => 1,
- 'Asia/Damascus' => 1,
- 'Asia/Gaza' => 1,
- 'Asia/Istanbul' => 1,
- 'Asia/Jerusalem' => 1,
- 'Asia/Nicosia' => 1,
- 'Asia/Tel_Aviv' => 1,
- 'Europe/Athens' => 1,
- 'Europe/Bucharest' => 1,
- 'Europe/Chisinau' => 1,
- 'Europe/Helsinki' => 1,
- 'Europe/Istanbul' => 1,
- 'Europe/Kaliningrad' => 1,
- 'Europe/Kiev' => 1,
- 'Europe/Minsk' => 1,
- 'Europe/Nicosia' => 1,
- 'Europe/Riga' => 1,
- 'Europe/Simferopol' => 1,
- 'Europe/Sofia' => 1,
- 'Europe/Tiraspol' => 1,
- 'Europe/Uzhgorod' => 1,
- 'Europe/Zaporozhye' => 1,
- 'Asia/Baghdad' => 1,
- 'Europe/Moscow' => 1,
- 'Asia/Tehran' => 1,
- 'Asia/Aqtau' => 1,
- 'Asia/Baku' => 1,
- 'Asia/Tbilisi' => 1,
- 'Europe/Samara' => 1,
- 'Asia/Aqtobe' => 1,
- 'Asia/Bishkek' => 1,
- 'Asia/Yekaterinburg' => 1,
- 'Asia/Almaty' => 1,
- 'Asia/Novosibirsk' => 1,
- 'Asia/Omsk' => 1,
- 'Asia/Krasnoyarsk' => 1,
- 'Asia/Irkutsk' => 1,
- 'Asia/Yakutsk' => 1,
- 'Australia/Adelaide' => 1,
- 'Australia/Broken_Hill' => 1,
- 'Australia/South' => 1,
- 'Australia/Yancowinna' => 1,
- 'Asia/Sakhalin' => 1,
- 'Asia/Vladivostok' => 1,
- 'Australia/ACT' => 1,
- 'Australia/Canberra' => 1,
- 'Australia/Hobart' => 1,
- 'Australia/Melbourne' => 1,
- 'Australia/NSW' => 1,
- 'Australia/Sydney' => 1,
- 'Australia/Tasmania' => 1,
- 'Australia/Victoria' => 1,
- 'Australia/LHI' => 1,
- 'Australia/Lord_Howe' => 1,
- 'Asia/Magadan' => 1,
- 'Antarctica/McMurdo' => 1,
- 'Antarctica/South_Pole' => 1,
- 'Asia/Anadyr' => 1,
- 'Asia/Kamchatka' => 1,
- 'Pacific/Auckland' => 1,
- 'Pacific/Chatham' => 1,
- );
- return(array("TIMEZONES" => $timezones, "DST_ZONES" => $dst_timezones));
-}
-
-
function display_error_page()
{
$smarty= get_smarty();
diff --git a/gosa-core/plugins/addons/logview/class_gosa_logview.inc b/gosa-core/plugins/addons/logview/class_gosa_logview.inc
index 2ad6e9348b1c1daeea1a40c12490973096278a0c..5d8c62277760fb624f7e2d7c899bf82bc08e409a 100644 (file)
}
}
- $tz = get_default_timezone();
+ $tz = timezone::get_default_timezone();
$this->timezone_offset = $tz['value'] * 60 * 60 ;
$ldap = $this->config->get_ldap_link();
diff --git a/gosa-core/plugins/personal/samba/class_sambaLogonHours.inc b/gosa-core/plugins/personal/samba/class_sambaLogonHours.inc
index 615254dec015e47174e15cc35a93f27ce7bc6120..fa030804711746e4abadfea83655158aca4a2524 100644 (file)
$this->sambaLogonHours = $slh;
/* Get default timezone */
- $zone = get_default_timezone();
+ $zone = timezone::get_default_timezone();
$this->timezone = $zone['value'];
/* Convert to bin */
diff --git a/gosa-core/setup/class_setupStep_Config2.inc b/gosa-core/setup/class_setupStep_Config2.inc
index e6b96b10cd333da4261ba4a26cda2fd7828709d3..9389964118d9f12e478385deb8920ea0e2ce18ca 100644 (file)
$pwdhash= 'perl -MCrypt::SmbHash -e "print join(q[:], ntlmgen \$ARGV[0]), $/;"';
}
- $this->timezones = _get_tz_zones();
+ $this->timezones = timezone::_get_tz_zones();
$this->samba_settings['smbhash'] = $pwdhash;
}