@@ 75-92 (lines=18) @@ | ||
72 | <option value='s'>" . _AM_APCAL_TZOPT_SERVER . "</option> |
|
73 | <option value='g'>" . _AM_APCAL_TZOPT_GMT . "</option> |
|
74 | <option value='y'>" . _AM_APCAL_TZOPT_USER . "</option>\n"; |
|
75 | switch ($tz) { |
|
76 | case 's': |
|
77 | $tzoffset = 0; |
|
78 | $tzdisp = ($serverTZ >= 0 ? '+' : '-') . sprintf('%02d:%02d', abs($serverTZ), abs($serverTZ) * 60 % 60); |
|
79 | $tzoptions = str_replace("'s'>", "'s' selected>", $tzoptions); |
|
80 | break; |
|
81 | case 'g': |
|
82 | $tzoffset = -$serverTZ * 3600; |
|
83 | $tzdisp = 'GMT'; |
|
84 | $tzoptions = str_replace("'g'>", "'g' selected>", $tzoptions); |
|
85 | break; |
|
86 | default: |
|
87 | case 'y': |
|
88 | $tzoffset = ($userTZ - $serverTZ) * 3600; |
|
89 | $tzdisp = ($userTZ >= 0 ? '+' : '-') . sprintf('%02d:%02d', abs($userTZ), abs($userTZ) * 60 % 60); |
|
90 | $tzoptions = str_replace("'y'>", "'y' selected>", $tzoptions); |
|
91 | break; |
|
92 | } |
|
93 | ||
94 | if (isset($_POST['admit']) && isset($_POST['ids']) && is_array($_POST['ids'])) { |
|
95 |
@@ 100-117 (lines=18) @@ | ||
97 | <option value='s'>" . _AM_APCAL_TZOPT_SERVER . "</option> |
|
98 | <option value='g'>" . _AM_APCAL_TZOPT_GMT . "</option> |
|
99 | <option value='y'>" . _AM_APCAL_TZOPT_USER . "</option>\n"; |
|
100 | switch ($tz) { |
|
101 | case 's': |
|
102 | $tzoffset = 0; |
|
103 | $tzdisp = ($serverTZ >= 0 ? '+' : '-') . sprintf('%02d:%02d', abs($serverTZ), abs($serverTZ) * 60 % 60); |
|
104 | $tzoptions = str_replace("'s'>", "'s' selected>", $tzoptions); |
|
105 | break; |
|
106 | case 'g': |
|
107 | $tzoffset = -$serverTZ * 3600; |
|
108 | $tzdisp = 'GMT'; |
|
109 | $tzoptions = str_replace("'g'>", "'g' selected>", $tzoptions); |
|
110 | break; |
|
111 | default: |
|
112 | case 'y': |
|
113 | $tzoffset = ($userTZ - $serverTZ) * 3600; |
|
114 | $tzdisp = ($userTZ >= 0 ? '+' : '-') . sprintf('%02d:%02d', abs($userTZ), abs($userTZ) * 60 % 60); |
|
115 | $tzoptions = str_replace("'y'>", "'y' selected>", $tzoptions); |
|
116 | break; |
|
117 | } |
|
118 | ||
119 | // �ǡ����١��������ʤɤ��������� |
|
120 | if (isset($_POST['delete'])) { |
@@ 66-83 (lines=18) @@ | ||
63 | <option value='s'>" . _AM_APCAL_TZOPT_SERVER . "</option> |
|
64 | <option value='g'>" . _AM_APCAL_TZOPT_GMT . "</option> |
|
65 | <option value='y'>" . _AM_APCAL_TZOPT_USER . "</option>\n"; |
|
66 | switch ($tz) { |
|
67 | case 's': |
|
68 | $tzoffset = 0; |
|
69 | $tzdisp = ($serverTZ >= 0 ? '+' : '-') . sprintf('%02d:%02d', abs($serverTZ), abs($serverTZ) * 60 % 60); |
|
70 | $tzoptions = str_replace("'s'>", "'s' selected>", $tzoptions); |
|
71 | break; |
|
72 | case 'g': |
|
73 | $tzoffset = -$serverTZ * 3600; |
|
74 | $tzdisp = 'GMT'; |
|
75 | $tzoptions = str_replace("'g'>", "'g' selected>", $tzoptions); |
|
76 | break; |
|
77 | default: |
|
78 | case 'y': |
|
79 | $tzoffset = ($userTZ - $serverTZ) * 3600; |
|
80 | $tzdisp = ($userTZ >= 0 ? '+' : '-') . sprintf('%02d:%02d', abs($userTZ), abs($userTZ) * 60 % 60); |
|
81 | $tzoptions = str_replace("'y'>", "'y' selected>", $tzoptions); |
|
82 | break; |
|
83 | } |
|
84 | ||
85 | // �ǡ����١��������ʤɤ��������� |
|
86 | if (isset($_POST['http_import']) && !empty($_POST['import_uri'])) { |