Completed
Push — development ( 362b6c...477849 )
by Nils
08:04
created
admin.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 }
36 36
 
37 37
 echo '
38
-<input type="hidden" id="setting_send_stats" value="',isset($_SESSION['settings']['send_stats']) ? $_SESSION['settings']['send_stats'] : '0','" />
38
+<input type="hidden" id="setting_send_stats" value="',isset($_SESSION['settings']['send_stats']) ? $_SESSION['settings']['send_stats'] : '0', '" />
39 39
 <div class="title ui-widget-content ui-corner-all">'.$LANG['thku'].'</div>
40 40
 
41 41
 <div style="margin:auto; line-height:20px; padding:10px;" id="tabs">
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 <tbody>
66 66
                 <tr style="border-bottom:1px;">
67 67
                     <td width="350px">
68
-                    <input type="checkbox" id="stat_country" style="margin-right:15px;" ',in_array("stat_country", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",' class="stat_option"><label for="stat_country"><b>'.$LANG['country'].'</b></label>
68
+                    <input type="checkbox" id="stat_country" style="margin-right:15px;" ',in_array("stat_country", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", ' class="stat_option"><label for="stat_country"><b>'.$LANG['country'].'</b></label>
69 69
                     </td>
70 70
                     <td>
71 71
                     <i>'.$LANG['country_statistics'].'</i>
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                 </tr>
77 77
                 <tr>
78 78
                     <td>
79
-                    <input type="checkbox" id="stat_users" style="margin-right:15px;" ',in_array("stat_users", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option" class="stat_option"><label for="stat_users"><b>'.$LANG['users'].'</b></label>
79
+                    <input type="checkbox" id="stat_users" style="margin-right:15px;" ',in_array("stat_users", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option" class="stat_option"><label for="stat_users"><b>'.$LANG['users'].'</b></label>
80 80
                     </td>
81 81
                     <td>
82 82
                     <i>'.$LANG['users_statistics'].'</i>
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 </tr>
88 88
                 <tr>
89 89
                     <td>
90
-                    <input type="checkbox" id="stat_items" style="margin-right:15px;" ',in_array("stat_items", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_items"><b>'.$LANG['items_all'].'</b></label>
90
+                    <input type="checkbox" id="stat_items" style="margin-right:15px;" ',in_array("stat_items", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_items"><b>'.$LANG['items_all'].'</b></label>
91 91
                     </td>
92 92
                     <td>
93 93
                     <i>'.$LANG['items_statistics'].'</i>
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 </tr>
99 99
                 <tr>
100 100
                     <td>
101
-                    <input type="checkbox" id="stat_items_shared" style="margin-right:15px;" ',in_array("stat_items_shared", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_items_shared"><b>'.$LANG['items_shared'].'</b></label>
101
+                    <input type="checkbox" id="stat_items_shared" style="margin-right:15px;" ',in_array("stat_items_shared", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_items_shared"><b>'.$LANG['items_shared'].'</b></label>
102 102
                     </td>
103 103
                     <td>
104 104
                     </td>
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                 </tr>
109 109
                 <tr>
110 110
                     <td>
111
-                    <input type="checkbox" id="stat_folders" style="margin-right:15px;" ',in_array("stat_folders", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_folders"><b>'.$LANG['folders_all'].'</b></label>
111
+                    <input type="checkbox" id="stat_folders" style="margin-right:15px;" ',in_array("stat_folders", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_folders"><b>'.$LANG['folders_all'].'</b></label>
112 112
                     </td>
113 113
                     <td>
114 114
                     <i>'.$LANG['folders_statistics'].'</i>
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                 </tr>
120 120
                 <tr>
121 121
                     <td>
122
-                    <input type="checkbox" id="stat_folders_shared" style="margin-right:15px;" ',in_array("stat_folders_shared", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_folders_shared"><b>'.$LANG['folders_shared'].'</b></label>
122
+                    <input type="checkbox" id="stat_folders_shared" style="margin-right:15px;" ',in_array("stat_folders_shared", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_folders_shared"><b>'.$LANG['folders_shared'].'</b></label>
123 123
                     </td>
124 124
                     <td>
125 125
                     </td>
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                 </tr>
130 130
                 <tr>
131 131
                     <td>
132
-                    <input type="checkbox" id="stat_admins" style="margin-right:15px;" ',in_array("stat_admins", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_admins"><b>'.$LANG['administrators_number'].'</b></label>
132
+                    <input type="checkbox" id="stat_admins" style="margin-right:15px;" ',in_array("stat_admins", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_admins"><b>'.$LANG['administrators_number'].'</b></label>
133 133
                     </td>
134 134
                     <td>
135 135
                     <i>'.$LANG['administrators_number_statistics'].'</i>
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                 </tr>
141 141
                 <tr>
142 142
                     <td>
143
-                    <input type="checkbox" id="stat_managers" style="margin-right:15px;" ',in_array("stat_managers", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_managers"><b>'.$LANG['managers_number'].'</b></label>
143
+                    <input type="checkbox" id="stat_managers" style="margin-right:15px;" ',in_array("stat_managers", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_managers"><b>'.$LANG['managers_number'].'</b></label>
144 144
                     </td>
145 145
                     <td>
146 146
                     <i>'.$LANG['managers_number_statistics'].'</i>
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 </tr>
152 152
                 <tr>
153 153
                     <td>
154
-                    <input type="checkbox" id="stat_ro" style="margin-right:15px;" ',in_array("stat_ro", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_ro"><b>'.$LANG['readonly_number'].'</b></label>
154
+                    <input type="checkbox" id="stat_ro" style="margin-right:15px;" ',in_array("stat_ro", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_ro"><b>'.$LANG['readonly_number'].'</b></label>
155 155
                     </td>
156 156
                     <td>
157 157
                     <i>'.$LANG['readonly_number_statistics'].'</i>
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                 </tr>
163 163
                 <tr>
164 164
                     <td>
165
-                    <input type="checkbox" id="stat_mysqlversion" style="margin-right:15px;" ',in_array("stat_mysqlversion", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_mysqlversion"><b>'.$LANG['mysql_version'].'</b></label>
165
+                    <input type="checkbox" id="stat_mysqlversion" style="margin-right:15px;" ',in_array("stat_mysqlversion", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_mysqlversion"><b>'.$LANG['mysql_version'].'</b></label>
166 166
                     </td>
167 167
                     <td>
168 168
                     </td>
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
                 </tr>
173 173
                 <tr>
174 174
                     <td>
175
-                    <input type="checkbox" id="stat_phpversion" style="margin-right:15px;" ',in_array("stat_phpversion", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_phpversion"><b>'.$LANG['php_version'].'</b></label>
175
+                    <input type="checkbox" id="stat_phpversion" style="margin-right:15px;" ',in_array("stat_phpversion", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_phpversion"><b>'.$LANG['php_version'].'</b></label>
176 176
                     </td>
177 177
                     <td>
178 178
                     </td>
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
                 </tr>
183 183
                 <tr>
184 184
                     <td>
185
-                    <input type="checkbox" id="stat_teampassversion" style="margin-right:15px;" ',in_array("stat_teampassversion", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_teampassversion"><b>'.$LANG['teampass_version'].'</b></label>
185
+                    <input type="checkbox" id="stat_teampassversion" style="margin-right:15px;" ',in_array("stat_teampassversion", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_teampassversion"><b>'.$LANG['teampass_version'].'</b></label>
186 186
                     </td>
187 187
                     <td>
188 188
                     </td>
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                 </tr>
193 193
                 <tr>
194 194
                     <td>
195
-                    <input type="checkbox" id="stat_languages" style="margin-right:15px;" ',in_array("stat_languages", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_languages"><b>'.$LANG['languages_used'].'</b></label>
195
+                    <input type="checkbox" id="stat_languages" style="margin-right:15px;" ',in_array("stat_languages", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_languages"><b>'.$LANG['languages_used'].'</b></label>
196 196
                     </td>
197 197
                     <td>
198 198
                     <i>'.$LANG['languages_statistics'].'</i>
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
                 </tr>
204 204
                 <tr>
205 205
                     <td>
206
-                    <input type="checkbox" id="stat_kb" style="margin-right:15px;" ',in_array("stat_kb", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_kb"><b>'.$LANG['kb_option_enabled'].'</b></label>
206
+                    <input type="checkbox" id="stat_kb" style="margin-right:15px;" ',in_array("stat_kb", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_kb"><b>'.$LANG['kb_option_enabled'].'</b></label>
207 207
                     </td>
208 208
                     <td>
209 209
                     </td>
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
                 </tr>
214 214
                 <tr>
215 215
                     <td>
216
-                    <input type="checkbox" id="stat_suggestion" style="margin-right:15px;" ',in_array("stat_suggestion", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_suggestion"><b>'.$LANG['suggestion_option_enabled'].'</b></label>
216
+                    <input type="checkbox" id="stat_suggestion" style="margin-right:15px;" ',in_array("stat_suggestion", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_suggestion"><b>'.$LANG['suggestion_option_enabled'].'</b></label>
217 217
                     </td>
218 218
                     <td>
219 219
                     </td>
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                 </tr>
224 224
                 <tr>
225 225
                     <td>
226
-                    <input type="checkbox" id="stat_customfields" style="margin-right:15px;" ',in_array("stat_customfields", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_customfields"><b>'.$LANG['customfields_option_enabled'].'</b></label>
226
+                    <input type="checkbox" id="stat_customfields" style="margin-right:15px;" ',in_array("stat_customfields", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_customfields"><b>'.$LANG['customfields_option_enabled'].'</b></label>
227 227
                     </td>
228 228
                     <td>
229 229
                     </td>
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
                 </tr>
234 234
                 <tr>
235 235
                     <td>
236
-                    <input type="checkbox" id="stat_api" style="margin-right:15px;" ',in_array("stat_api", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_api"><b>'.$LANG['api_option_enabled'].'</b></label>
236
+                    <input type="checkbox" id="stat_api" style="margin-right:15px;" ',in_array("stat_api", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_api"><b>'.$LANG['api_option_enabled'].'</b></label>
237 237
                     </td>
238 238
                     <td>
239 239
                     </td>
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
                 </tr>
244 244
                 <tr>
245 245
                     <td>
246
-                    <input type="checkbox" id="stat_2fa" style="margin-right:15px;" ',in_array("stat_2fa", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_2fa"><b>'.$LANG['2fa_option_enabled'].'</b></label>
246
+                    <input type="checkbox" id="stat_2fa" style="margin-right:15px;" ',in_array("stat_2fa", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_2fa"><b>'.$LANG['2fa_option_enabled'].'</b></label>
247 247
                     </td>
248 248
                     <td>
249 249
                     </td>
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
                 </tr>
254 254
                 <tr>
255 255
                     <td>
256
-                    <input type="checkbox" id="stat_agses" style="margin-right:15px;" ',in_array("stat_agses", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_agses"><b>'.$LANG['agses_option_enabled'].'</b></label>
256
+                    <input type="checkbox" id="stat_agses" style="margin-right:15px;" ',in_array("stat_agses", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_agses"><b>'.$LANG['agses_option_enabled'].'</b></label>
257 257
                     </td>
258 258
                     <td>
259 259
                     </td>
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
                 </tr>
264 264
                 <tr>
265 265
                     <td>
266
-                    <input type="checkbox" id="stat_duo" style="margin-right:15px;" ',in_array("stat_duo", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_duo"><b>'.$LANG['duo_option_enabled'].'</b></label>
266
+                    <input type="checkbox" id="stat_duo" style="margin-right:15px;" ',in_array("stat_duo", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_duo"><b>'.$LANG['duo_option_enabled'].'</b></label>
267 267
                     </td>
268 268
                     <td>
269 269
                     </td>
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
                 </tr>
274 274
                 <tr>
275 275
                     <td>
276
-                    <input type="checkbox" id="stat_ldap" style="margin-right:15px;" ',in_array("stat_ldap", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_ldap"><b>'.$LANG['ldap_option_enabled'].'</b></label>
276
+                    <input type="checkbox" id="stat_ldap" style="margin-right:15px;" ',in_array("stat_ldap", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_ldap"><b>'.$LANG['ldap_option_enabled'].'</b></label>
277 277
                     </td>
278 278
                     <td>
279 279
                     </td>
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
                 </tr>
284 284
                 <tr>
285 285
                     <td>
286
-                    <input type="checkbox" id="stat_syslog" style="margin-right:15px;" ',in_array("stat_syslog", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_syslog"><b>'.$LANG['syslog_option_enabled'].'</b></label>
286
+                    <input type="checkbox" id="stat_syslog" style="margin-right:15px;" ',in_array("stat_syslog", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_syslog"><b>'.$LANG['syslog_option_enabled'].'</b></label>
287 287
                     </td>
288 288
                     <td>
289 289
                     </td>
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
                 </tr>
294 294
                 <tr>
295 295
                     <td>
296
-                    <input type="checkbox" id="stat_stricthttps" style="margin-right:15px;" ',in_array("stat_stricthttps", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_stricthttps"><b>'.$LANG['stricthttps_option_enabled'].'</b></label>
296
+                    <input type="checkbox" id="stat_stricthttps" style="margin-right:15px;" ',in_array("stat_stricthttps", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_stricthttps"><b>'.$LANG['stricthttps_option_enabled'].'</b></label>
297 297
                     </td>
298 298
                     <td>
299 299
                     </td>
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
                 </tr>
304 304
                 <tr>
305 305
                     <td>
306
-                    <input type="checkbox" id="stat_fav" style="margin-right:15px;" ',in_array("stat_fav", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_fav"><b>'.$LANG['favourites_option_enabled'].'</b></label>
306
+                    <input type="checkbox" id="stat_fav" style="margin-right:15px;" ',in_array("stat_fav", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_fav"><b>'.$LANG['favourites_option_enabled'].'</b></label>
307 307
                     </td>
308 308
                     <td>
309 309
                     </td>
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
                 </tr>
314 314
                 <tr>
315 315
                     <td>
316
-                    <input type="checkbox" id="stat_pf" style="margin-right:15px;" ',in_array("stat_pf", $statistics_items) || count($statistics_items) === 0 ? "checked" : "",'  class="stat_option"><label for="stat_pf"><b>'.$LANG['personalfolders_option_enabled'].'</b></label>
316
+                    <input type="checkbox" id="stat_pf" style="margin-right:15px;" ',in_array("stat_pf", $statistics_items) || count($statistics_items) === 0 ? "checked" : "", '  class="stat_option"><label for="stat_pf"><b>'.$LANG['personalfolders_option_enabled'].'</b></label>
317 317
                     </td>
318 318
                     <td>
319 319
                     </td>
@@ -377,10 +377,10 @@  discard block
 block discarded – undo
377 377
                 <h3>'.$LANG['changelog'].'</h3>';
378 378
             $show = false;
379 379
             $cnt = 0;
380
-            while (list($cle,$val) = each($tab)) {
380
+            while (list($cle, $val) = each($tab)) {
381 381
                 if ($cnt < 30) {
382 382
                     echo $val."<br />";
383
-                    $cnt ++;
383
+                    $cnt++;
384 384
                 } elseif ($cnt == 30) {
385 385
                     echo '...<br /><br /><b><a href="changelog.md" target="_blank"><span class="fa fa-book"></span>&nbsp;'.$LANG['readme_open'].'</a></b>';
386 386
                     break;
Please login to merge, or discard this patch.