1
|
<?php
|
2
|
/**
|
3
|
*
|
4
|
* @category admin
|
5
|
* @package interface
|
6
|
* @author WebsiteBaker Project
|
7
|
* @copyright 2004-2009, Ryan Djurovich
|
8
|
* @copyright 2009-2011, Website Baker Org. e.V.
|
9
|
* @link http://www.websitebaker2.org/
|
10
|
* @license http://www.gnu.org/licenses/gpl.html
|
11
|
* @platform WebsiteBaker 2.8.x
|
12
|
* @requirements PHP 5.2.2 and higher
|
13
|
* @version $Id: timezones.php 2 2017-07-02 15:14:29Z Manuela $
|
14
|
* @filesource $HeadURL: svn://isteam.dynxs.de/wb/2.10.x/branches/main/admin/interface/timezones.php $
|
15
|
* @lastmodified $Date: 2017-07-02 17:14:29 +0200 (Sun, 02 Jul 2017) $
|
16
|
*
|
17
|
* Timezone list file
|
18
|
* This file is used to generate a list of timezones for the user to select
|
19
|
*
|
20
|
*/
|
21
|
|
22
|
if(!defined('WB_URL')) {
|
23
|
header('Location: ../index.php');
|
24
|
exit(0);
|
25
|
}
|
26
|
|
27
|
// Create array
|
28
|
$TIMEZONES = array();
|
29
|
$actual_timezone = ( DEFAULT_TIMEZONE <> 0 ) ? DEFAULT_TIMEZONE/3600 : 0;
|
30
|
|
31
|
$TIMEZONES['-12'] = 'GMT -12 Hours';
|
32
|
$TIMEZONES['-11'] = 'GMT -11 Hours';
|
33
|
$TIMEZONES['-10'] = 'GMT -10 Hours';
|
34
|
$TIMEZONES['-9'] = 'GMT -9 Hours';
|
35
|
$TIMEZONES['-8'] = 'GMT -8 Hours - Pacific Standard';
|
36
|
$TIMEZONES['-7'] = 'GMT -7 Hours - Mountain Standard / Pacific Daylight';
|
37
|
$TIMEZONES['-6'] = 'GMT -6 Hours - Central Standard / Mountain Daylight';
|
38
|
$TIMEZONES['-5'] = 'GMT -5 Hours - Eastern Standard / Central Daylight';
|
39
|
$TIMEZONES['-4'] = 'GMT -4 Hours - Atlantic Standard / Eastern Daylight';
|
40
|
$TIMEZONES['-3.5'] = 'GMT -3.5 Hours - Newfoundland Standard';
|
41
|
$TIMEZONES['-3'] = 'GMT -3 Hours - Atlantic Daylight';
|
42
|
$TIMEZONES['-2.5'] = 'GMT -2.5 Hours - Newfoundland Daylight';
|
43
|
$TIMEZONES['-2'] = 'GMT -2 Hours';
|
44
|
$TIMEZONES['-1'] = 'GMT -1 Hour';
|
45
|
$TIMEZONES['0'] = 'GMT/UTC';
|
46
|
$TIMEZONES['1'] = 'GMT +1 Hour';
|
47
|
$TIMEZONES['2'] = 'GMT +2 Hours';
|
48
|
$TIMEZONES['3'] = 'GMT +3 Hours';
|
49
|
$TIMEZONES['3.5'] = 'GMT +3.5 Hours';
|
50
|
$TIMEZONES['4'] = 'GMT +4 Hours';
|
51
|
$TIMEZONES['4.5'] = 'GMT +4.5 Hours';
|
52
|
$TIMEZONES['5'] = 'GMT +5 Hours';
|
53
|
$TIMEZONES['5.5'] = 'GMT +5.5 Hours';
|
54
|
$TIMEZONES['6'] = 'GMT +6 Hours';
|
55
|
$TIMEZONES['6.5'] = 'GMT +6.5 Hours';
|
56
|
$TIMEZONES['7'] = 'GMT +7 Hours';
|
57
|
$TIMEZONES['8'] = 'GMT +8 Hours';
|
58
|
$TIMEZONES['9'] = 'GMT +9 Hours';
|
59
|
$TIMEZONES['9.5'] = 'GMT +9.5 Hours';
|
60
|
$TIMEZONES['10'] = 'GMT +10 Hours';
|
61
|
$TIMEZONES['11'] = 'GMT +11 Hours';
|
62
|
$TIMEZONES['12'] = 'GMT +12 Hours';
|
63
|
$TIMEZONES['13'] = 'GMT +13 Hours';
|
64
|
|
65
|
// Add "System Default" to list (if we need to)
|
66
|
if(isset($user_time) && $user_time == true)
|
67
|
{
|
68
|
if(isset($TEXT['SYSTEM_DEFAULT']))
|
69
|
{
|
70
|
$TIMEZONES['system_default'] = $TIMEZONES[$actual_timezone].' ('.$TEXT['SYSTEM_DEFAULT'].')';
|
71
|
} else {
|
72
|
$TIMEZONES['system_default'] = $TIMEZONES[$actual_timezone].' (System Default)';
|
73
|
}
|
74
|
}
|
75
|
|
76
|
// Reverse array so "System Default" is at the top
|
77
|
$TIMEZONES = array_reverse($TIMEZONES, true);
|
78
|
|