Subversion Repositories ALCASAR

Rev

Rev 2800 | Go to most recent revision | Details | Last modification | View Log









































































































































































































































































































































































































































































































































































































































































Rev Author Line No. Line
2788 rexy 1
/***************************************************************************
2
 *   Copyright (C) 2008 by phpSysInfo - A PHP System Information Script    *
3
 *   http://phpsysinfo.sourceforge.net/                                    *
4
 *                                                                         *
5
 *   This program is free software; you can redistribute it and/or modify  *
6
 *   it under the terms of the GNU General Public License as published by  *
7
 *   the Free Software Foundation; either version 2 of the License, or     *
8
 *   (at your option) any later version.                                   *
9
 *                                                                         *
10
 *   This program is distributed in the hope that it will be useful,       *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13
 *   GNU General Public License for more details.                          *
14
 *                                                                         *
15
 *   You should have received a copy of the GNU General Public License     *
16
 *   along with this program; if not, write to the                         *
17
 *   Free Software Foundation, Inc.,                                       *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19
 ***************************************************************************/
20
//
21
// $Id: phpsysinfo.js 699 2012-09-15 11:57:13Z namiltd $
22
//
23
 
24
/*global $, jQuery */
25
 
26
"use strict";
27
 
28
var langxml = [], filesystemTable, current_language = "", plugin_liste = [], blocks = [], langarr = [],
29
     showCPUListExpanded, showCPUInfoExpanded, showNetworkInfosExpanded, showMemoryInfosExpanded, showNetworkActiveSpeed, showCPULoadCompact, oldnetwork = [];
30
 
31
/**
32
 * Fix PNG loading on IE6 or below
33
 */
34
function PNGload(png) {
35
    if (typeof(png.ifixpng)==='function') { //IE6 PNG fix
36
        png.ifixpng('./gfx/blank.gif');
37
    }
38
}
39
 
40
/**
41
 * generate a cookie, if not exist, and add an entry to it<br><br>
42
 * inspired by <a href="http://www.quirksmode.org/js/cookies.html">http://www.quirksmode.org/js/cookies.html</a>
43
 * @param {String} name name that holds the value
44
 * @param {String} value value that needs to be stored
45
 * @param {Number} days how many days the entry should be valid in the cookie
46
 */
47
function createCookie(name, value, days) {
48
    var date = new Date(), expires = "";
49
    if (days) {
50
        date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
51
        if (typeof(date.toUTCString)==="function") {
52
            expires = "; expires=" + date.toUTCString();
53
        } else {
54
            //deprecated
55
            expires = "; expires=" + date.toGMTString();
56
        }
57
    } else {
58
        expires = "";
59
    }
60
    document.cookie = name + "=" + value + expires + "; path=/";
61
}
62
 
63
/**
64
 * read a value out of a cookie and return the value<br><br>
65
 * inspired by <a href="http://www.quirksmode.org/js/cookies.html">http://www.quirksmode.org/js/cookies.html</a>
66
 * @param {String} name name of the value that should be retrieved
67
 * @return {String}
68
 */
69
function readCookie(name) {
70
    var nameEQ = "", ca = [], c = '', i = 0;
71
    nameEQ = name + "=";
72
    ca = document.cookie.split(';');
73
    for (i = 0; i < ca.length; i++) {
74
        c = ca[i];
75
        while (c.charAt(0) === ' ') {
76
            c = c.substring(1, c.length);
77
        }
78
        if (!c.indexOf(nameEQ)) {
79
            return c.substring(nameEQ.length, c.length);
80
        }
81
    }
82
    return null;
83
}
84
 
85
/**
86
 * round a given value to the specified precision, difference to Math.round() is that there
87
 * will be appended Zeros to the end if the precision is not reached (0.1 gets rounded to 0.100 when precision is set to 3)
88
 * @param {Number} x value to round
89
 * @param {Number} n precision
90
 * @return {String}
91
 */
92
function round(x, n) {
93
    var e = 0, k = "";
94
    if (n < 0 || n > 14) {
95
        return 0;
96
    }
97
    if (n === 0) {
98
        return Math.round(x);
99
    } else {
100
        e = Math.pow(10, n);
101
        k = (Math.round(x * e) / e).toString();
102
        if (k.indexOf('.') === -1) {
103
            k += '.';
104
        }
105
        k += e.toString().substring(1);
106
        return k.substring(0, k.indexOf('.') + n + 1);
107
    }
108
}
109
 
110
/**
111
 * activates a given style and disables the old one in the document
112
 * @param {String} template template that should be activated
113
 */
114
function switchStyle(template) {
115
    $('link[rel*=style][title]').each(function getTitle(i) {
116
        if (this.getAttribute('title') === 'PSI_Template') {
117
            this.setAttribute('href', './templates/' + template + ".css");
118
        }
119
    });
120
}
121
 
122
/**
123
 * load the given translation an translate the entire page<br><br>retrieving the translation is done through a
124
 * ajax call
125
 * @private
126
 * @param {String} plugin if plugin is given, the plugin translation file will be read instead of the main translation file
127
 * @param {String} langarrId internal plugin name
128
 * @return {jQuery} translation jQuery-Object
129
 */
130
function getLanguage(plugin, langarrId) {
131
    var getLangUrl = "";
132
    if (current_language) {
133
        getLangUrl = 'language/language.php?lang=' + current_language;
134
        if (plugin) {
135
            getLangUrl += "&plugin=" + plugin;
136
        }
137
    } else {
138
        getLangUrl = 'language/language.php';
139
        if (plugin) {
140
            getLangUrl += "?plugin=" + plugin;
141
        }
142
    }
143
    $.ajax({
144
        url: getLangUrl,
145
        type: 'GET',
146
        dataType: 'xml',
147
        timeout: 100000,
148
        error: function error() {
149
            $.jGrowl("Error loading language - " + getLangUrl);
150
        },
151
        success: function buildblocks(xml) {
152
            var idexp;
153
            langxml[langarrId] = xml;
154
            if (langarr[langarrId] === undefined) {
155
                langarr.push(langarrId);
156
                langarr[langarrId] = [];
157
            }
158
            $("expression", langxml[langarrId]).each(function langstore(id) {
159
                idexp = $("expression", xml).get(id);
160
                langarr[langarrId][this.getAttribute('id')] = $("exp", idexp).text().toString().replace(/\//g, "/<wbr>");
161
            });
162
            changeSpanLanguage(plugin);
163
        }
164
    });
165
}
166
 
167
/**
168
 * generate a span tag
169
 * @param {Number} id translation id in the xml file
170
 * @param {String} [plugin] name of the plugin for which the tag should be generated
171
 * @return {String} string which contains generated span tag for translation string
172
 */
173
function genlang(id, plugin) {
174
    var html = "", idString = "", plugname = "",
175
        langarrId = current_language + "_";
176
 
177
    if (plugin === undefined) {
178
        plugname = "";
179
        langarrId += "phpSysInfo";
180
    } else {
181
        plugname = plugin.toLowerCase();
182
        langarrId += plugname;
183
    }
184
    if (id < 100) {
185
        if (id < 10) {
186
            idString = "00" + id.toString();
187
        } else {
188
            idString = "0" + id.toString();
189
        }
190
    } else {
191
        idString = id.toString();
192
    }
193
    if (plugin) {
194
        idString = "plugin_" + plugname + "_" + idString;
195
    }
196
 
197
    html += "<span class=\"lang_" + idString + "\">";
198
 
199
    if ((langxml[langarrId] !== undefined) && (langarr[langarrId] !== undefined)) {
200
        html += langarr[langarrId][idString];
201
    }    
202
 
203
    html += "</span>";
204
 
205
    return html;
206
}
207
 
208
/**
209
 * translates all expressions based on the translation xml file<br>
210
 * translation expressions must be in the format &lt;span class="lang_???"&gt;&lt;/span&gt;, where ??? is
211
 * the number of the translated expression in the xml file<br><br>if a translated expression is not found in the xml
212
 * file nothing would be translated, so the initial value which is inside the span tag is displayed
213
 * @param {String} [plugin] name of the plugin
214
 */
215
function changeLanguage(plugin) {
216
    var langarrId = current_language + "_";
217
 
218
    if (plugin === undefined) {
219
        langarrId += "phpSysInfo";
220
    } else {
221
        langarrId += plugin;
222
    }
223
 
224
    if (langxml[langarrId] !== undefined) {
225
        changeSpanLanguage(plugin);
226
    } else {
227
        langxml.push(langarrId);
228
        getLanguage(plugin, langarrId);
229
    }
230
}
231
 
232
function changeSpanLanguage(plugin) {
233
    var langId = "", langStr = "", langarrId = current_language + "_";
234
 
235
    if (plugin === undefined) {
236
        langarrId += "phpSysInfo";
237
        $('span[class*=lang_]').each(function translate(i) {
238
            langId = this.className.substring(5);
239
            if (langId.indexOf('plugin_') !== 0) { //does not begin with plugin_
240
                langStr = langarr[langarrId][langId];
241
                if (langStr !== undefined) {
242
                    if (langStr.length > 0) {
243
                        this.innerHTML = langStr;
244
                    }
245
                }
246
            }
247
        });
248
        $("#loader").hide();
249
        $("#output").fadeIn("slow"); //show if any language loaded
250
    } else {
251
        langarrId += plugin;
252
        $('span[class*=lang_plugin_'+plugin.toLowerCase()+'_]').each(function translate(i) {
253
            langId = this.className.substring(5);
254
            langStr = langarr[langarrId][langId];
255
            if (langStr !== undefined) {
256
                if (langStr.length > 0) {
257
                    this.innerHTML = langStr;
258
                }
259
            }
260
        });
261
        $('#panel_'+plugin).show(); //show plugin if any language loaded
262
    }
263
}
264
 
265
/**
266
 * generate the filesystemTable and activate the dataTables plugin on it
267
 */
268
function filesystemtable() {
269
    var html = "";
270
    html += "<h2>" + genlang(30) + "</h2>\n";
271
    html += "        <div style=\"overflow-x:auto;\">\n";
272
    html += "          <table id=\"filesystemTable\" style=\"border-collapse:collapse;\">\n";
273
    html += "            <thead>\n";
274
    html += "              <tr>\n";
275
    html += "                <th>" + genlang(31) + "</th>\n";
276
    html += "                <th>" + genlang(34) + "</th>\n";
277
    html += "                <th>" + genlang(32) + "</th>\n";
278
    html += "                <th>" + genlang(33) + "</th>\n";
279
    html += "                <th class=\"right\">" + genlang(35) + "</th>\n";
280
    html += "                <th class=\"right\">" + genlang(36) + "</th>\n";
281
    html += "                <th class=\"right\">" + genlang(37) + "</th>\n";
282
    html += "              </tr>\n";
283
    html += "            </thead>\n";
284
    html += "            <tfoot>\n";
285
    html += "              <tr style=\"font-weight : bold\">\n";
286
    html += "                <td>&nbsp;</td>\n";
287
    html += "                <td>&nbsp;</td>\n";
288
    html += "                <td>" + genlang(38) + "</td>\n";
289
    html += "                <td id=\"s_fs_total\"></td>\n";
290
    html += "                <td class=\"right\"><span id=\"s_fs_tfree\"></span></td>\n";
291
    html += "                <td class=\"right\"><span id=\"s_fs_tused\"></span></td>\n";
292
    html += "                <td class=\"right\"><span id=\"s_fs_tsize\"></span></td>\n";
293
    html += "              </tr>\n";
294
    html += "            </tfoot>\n";
295
    html += "            <tbody>\n";
296
    html += "            </tbody>\n";
297
    html += "          </table>\n";
298
    html += "        </div>\n";
299
 
300
    $("#filesystem").append(html);
301
 
302
    filesystemTable = $("#filesystemTable").dataTable({
303
        "bPaginate": false,
304
        "bLengthChange": false,
305
        "bFilter": false,
306
        "bSort": true,
307
        "bInfo": false,
308
        "bProcessing": true,
309
        "bAutoWidth": false,
310
        "bStateSave": true,
311
        "aoColumns": [{
312
            "sType": 'span-string',
313
            "sWidth": "100px"
314
        }, {
315
            "sType": 'span-string',
316
            "sWidth": "50px"
317
        }, {
318
            "sType": 'span-string',
319
            "sWidth": "200px"
320
        }, {
321
            "sType": 'span-number'
322
        }, {
323
            "sType": 'span-number',
324
            "sWidth": "80px",
325
            "sClass": "right"
326
        }, {
327
            "sType": 'span-number',
328
            "sWidth": "80px",
329
            "sClass": "right"
330
        }, {
331
            "sType": 'span-number',
332
            "sWidth": "80px",
333
            "sClass": "right"
334
        }]
335
    });
336
}
337
 
338
/**
339
 * fill all errors from the xml in the error div element in the document and show the error icon
340
 * @param {jQuery} xml phpSysInfo-XML
341
 */
342
function populateErrors(xml) {
343
    var values = false;
344
    $("Errors Error", xml).each(function getError(id) {
345
//        $("#errorlist").append("<b>" + $(this).attr("Function") + "</b><br><br><pre>" + $(this).text() + "</pre><hr>");
346
        $("#errorlist").append("<b>" + $(this).attr("Function") + "</b><br><br><pre>" + $(this).attr("Message") + "</pre><hr>");
347
        values = true;
348
    });
349
    if (values) {
350
        $("#warn").css("display", "inline");
351
        $("#loadwarn").css("display", "inline");
352
    }
353
}
354
 
355
/**
356
 * show the page
357
 * @param {jQuery} xml phpSysInfo-XML
358
 */
359
function displayPage(xml) {
360
    var versioni = "";
361
//    $("#loader").hide();
362
//    $("#output").fadeIn("slow");
363
    versioni = $("Generation", xml).attr("version").toString();
364
    $("#version").html(versioni);
365
}
366
 
367
/**
368
 * format seconds to a better readable statement with days, hours and minutes
369
 * @param {Number} sec seconds that should be formatted
370
 * @return {String} html string with no breaking spaces and translation statements
371
 */
372
function formatUptime(sec) {
373
    var txt = "", intMin = 0, intHours = 0, intDays = 0;
374
    intMin = sec / 60;
375
    intHours = intMin / 60;
376
    intDays = Math.floor(intHours / 24);
377
    intHours = Math.floor(intHours - (intDays * 24));
378
    intMin = Math.floor(intMin - (intDays * 60 * 24) - (intHours * 60));
379
    if (intDays) {
380
        txt += intDays.toString() + " " + genlang(48) + " ";
381
    }
382
    if (intHours) {
383
        txt += intHours.toString() + " " + genlang(49) + " ";
384
    }
385
    return txt + intMin.toString() + " " + genlang(50);
386
}
387
 
388
/**
389
 * format a given MHz value to a better readable statement with the right suffix
390
 * @param {Number} mhertz mhertz value that should be formatted
391
 * @return {String} html string with no breaking spaces and translation statements
392
 */
393
function formatHertz(mhertz) {
394
    if ((mhertz >= 0) && (mhertz < 1000)) {
395
< 1000)) {        return mhertz.toString() + " " + genlang(92);
396
< 1000)) {    } else {
397
< 1000)) {        if (mhertz >= 1000) {
398
< 1000)) {            return round(mhertz / 1000, 2) + "&nbsp;" + genlang(93);
399
< 1000)) {        } else {
400
< 1000)) {            return "";
401
< 1000)) {        }
402
< 1000)) {    }
403
< 1000)) {}
404
 
405
< 1000)) {/**
406
< 1000)) { * format the byte values into a user friendly value with the corespondenting unit expression<br>support is included
407
< 1000)) { * for binary and decimal output<br>user can specify a constant format for all byte outputs or the output is formated
408
< 1000)) { * automatically so that every value can be read in a user friendly way
409
< 1000)) { * @param {Number} bytes value that should be converted in the corespondenting format, which is specified in the phpsysinfo.ini
410
< 1000)) { * @param {jQuery} xml phpSysInfo-XML
411
< 1000)) { * @return {String} string of the converted bytes with the translated unit expression
412
< 1000)) { */
413
< 1000)) {function formatBytes(bytes, xml) {
414
< 1000)) {    var byteFormat = "", show = "";
415
 
416
< 1000)) {    $("Options", xml).each(function getByteFormat(id) {
417
< 1000)) {        byteFormat = $(this).attr("byteFormat");
418
< 1000)) {    });
419
 
420
< 1000)) {    switch (byteFormat.toLowerCase()) {
421
< 1000)) {    case "pib":
422
< 1000)) {        show += round(bytes / Math.pow(1024, 5), 2);
423
< 1000)) {        show += " " + genlang(90);
424
< 1000)) {        break;
425
< 1000)) {    case "tib":
426
< 1000)) {        show += round(bytes / Math.pow(1024, 4), 2);
427
< 1000)) {        show += "&nbsp;" + genlang(86);
428
< 1000)) {        break;
429
< 1000)) {    case "gib":
430
< 1000)) {        show += round(bytes / Math.pow(1024, 3), 2);
431
< 1000)) {        show += " " + genlang(87);
432
< 1000)) {        break;
433
< 1000)) {    case "mib":
434
< 1000)) {        show += round(bytes / Math.pow(1024, 2), 2);
435
< 1000)) {        show += "&nbsp;" + genlang(88);
436
< 1000)) {        break;
437
< 1000)) {    case "kib":
438
< 1000)) {        show += round(bytes / Math.pow(1024, 1), 2);
439
< 1000)) {        show += " " + genlang(89);
440
< 1000)) {        break;
441
< 1000)) {    case "pb":
442
< 1000)) {        show += round(bytes / Math.pow(1000, 5), 2);
443
< 1000)) {        show += "&nbsp;" + genlang(91);
444
< 1000)) {        break;
445
< 1000)) {    case "tb":
446
< 1000)) {        show += round(bytes / Math.pow(1000, 4), 2);
447
< 1000)) {        show += " " + genlang(85);
448
< 1000)) {        break;
449
< 1000)) {    case "gb":
450
< 1000)) {        show += round(bytes / Math.pow(1000, 3), 2);
451
< 1000)) {        show += "&nbsp;" + genlang(41);
452
< 1000)) {        break;
453
< 1000)) {    case "mb":
454
< 1000)) {        show += round(bytes / Math.pow(1000, 2), 2);
455
< 1000)) {        show += " " + genlang(40);
456
< 1000)) {        break;
457
< 1000)) {    case "kb":
458
< 1000)) {        show += round(bytes / Math.pow(1000, 1), 2);
459
< 1000)) {        show += "&nbsp;" + genlang(39);
460
< 1000)) {        break;
461
< 1000)) {    case "b":
462
< 1000)) {        show += bytes;
463
< 1000)) {        show += "&nbsp;" + genlang(96);
464
< 1000)) {        break;
465
< 1000)) {    case "auto_decimal":
466
< 1000)) {        if (bytes > Math.pow(1000, 5)) {
467
< 1000)) {            show += round(bytes / Math.pow(1000, 5), 2);
468
< 1000)) {            show += " " + genlang(91);
469
< 1000)) {        } else {
470
< 1000)) {            if (bytes > Math.pow(1000, 4)) {
471
< 1000)) {                show += round(bytes / Math.pow(1000, 4), 2);
472
< 1000)) {                show += "&nbsp;" + genlang(85);
473
< 1000)) {            } else {
474
< 1000)) {                if (bytes > Math.pow(1000, 3)) {
475
< 1000)) {                    show += round(bytes / Math.pow(1000, 3), 2);
476
< 1000)) {                    show += " " + genlang(41);
477
< 1000)) {                } else {
478
< 1000)) {                    if (bytes > Math.pow(1000, 2)) {
479
< 1000)) {                        show += round(bytes / Math.pow(1000, 2), 2);
480
< 1000)) {                        show += "&nbsp;" + genlang(40);
481
< 1000)) {                    } else {
482
< 1000)) {                        if (bytes > Math.pow(1000, 1)) {
483
< 1000)) {                            show += round(bytes / Math.pow(1000, 1), 2);
484
< 1000)) {                            show += " " + genlang(39);
485
< 1000)) {                        } else {
486
< 1000)) {                                show += bytes;
487
< 1000)) {                                show += " " + genlang(96);
488
< 1000)) {                        }
489
< 1000)) {                    }
490
< 1000)) {                }
491
< 1000)) {            }
492
< 1000)) {        }
493
< 1000)) {        break;
494
< 1000)) {    default:
495
< 1000)) {        if (bytes > Math.pow(1024, 5)) {
496
< 1000)) {            show += round(bytes / Math.pow(1024, 5), 2);
497
< 1000)) {            show += "&nbsp;" + genlang(90);
498
< 1000)) {        } else {
499
< 1000)) {            if (bytes > Math.pow(1024, 4)) {
500
< 1000)) {                show += round(bytes / Math.pow(1024, 4), 2);
501
< 1000)) {                show += " " + genlang(86);
502
< 1000)) {            } else {
503
< 1000)) {                if (bytes > Math.pow(1024, 3)) {
504
< 1000)) {                    show += round(bytes / Math.pow(1024, 3), 2);
505
< 1000)) {                    show += "&nbsp;" + genlang(87);
506
< 1000)) {                } else {
507
< 1000)) {                    if (bytes > Math.pow(1024, 2)) {
508
< 1000)) {                        show += round(bytes / Math.pow(1024, 2), 2);
509
< 1000)) {                        show += " " + genlang(88);
510
< 1000)) {                    } else {
511
< 1000)) {                        if (bytes > Math.pow(1024, 1)) {
512
< 1000)) {                            show += round(bytes / Math.pow(1024, 1), 2);
513
< 1000)) {                            show += "&nbsp;" + genlang(89);
514
< 1000)) {                        } else {
515
< 1000)) {                            show += bytes;
516
< 1000)) {                            show += "&nbsp;" + genlang(96);
517
< 1000)) {                        }
518
< 1000)) {                    }
519
< 1000)) {                }
520
< 1000)) {            }
521
< 1000)) {        }
522
< 1000)) {    }
523
< 1000)) {    return show;
524
< 1000)) {}
525
 
526
< 1000)) {function formatBPS(bps) {
527
< 1000)) {    var show = "";
528
 
529
< 1000)) {    if (bps > Math.pow(1000, 5)) {
530
< 1000)) {        show += round(bps / Math.pow(1000, 5), 2);
531
< 1000)) {        show += String.fromCharCode(160) + 'Pb/s';
532
< 1000)) {    } else {
533
< 1000)) {        if (bps > Math.pow(1000, 4)) {
534
< 1000)) {            show += round(bps / Math.pow(1000, 4), 2);
535
< 1000)) {            show += String.fromCharCode(160) + 'Tb/s';
536
< 1000)) {        } else {
537
< 1000)) {            if (bps > Math.pow(1000, 3)) {
538
< 1000)) {                show += round(bps / Math.pow(1000, 3), 2);
539
< 1000)) {                show += String.fromCharCode(160) + 'Gb/s';
540
< 1000)) {            } else {
541
< 1000)) {                if (bps > Math.pow(1000, 2)) {
542
< 1000)) {                    show += round(bps / Math.pow(1000, 2), 2);
543
< 1000)) {                    show += String.fromCharCode(160) + 'Mb/s';
544
< 1000)) {                } else {
545
< 1000)) {                    if (bps > Math.pow(1000, 1)) {
546
< 1000)) {                        show += round(bps / Math.pow(1000, 1), 2);
547
< 1000)) {                        show += String.fromCharCode(160) + 'Kb/s';
548
< 1000)) {                    } else {
549
< 1000)) {                            show += bps;
550
< 1000)) {                            show += String.fromCharCode(160) + 'b/s';
551
< 1000)) {                    }
552
< 1000)) {                }
553
< 1000)) {            }
554
< 1000)) {        }
555
< 1000)) {    }
556
< 1000)) {    return show;
557
< 1000)) {}
558
 
559
< 1000)) {/**
560
< 1000)) { * format a celcius temperature to fahrenheit and also append the right suffix
561
< 1000)) { * @param {String} degreeC temperature in celvius
562
< 1000)) { * @param {jQuery} xml phpSysInfo-XML
563
< 1000)) { * @return {String} html string with no breaking spaces and translation statements
564
< 1000)) { */
565
< 1000)) {function formatTemp(degreeC, xml) {
566
< 1000)) {    var tempFormat = "", degree = 0;
567
 
568
< 1000)) {    $("Options", xml).each(function getOptions(id) {
569
< 1000)) {        tempFormat = $(this).attr("tempFormat").toString().toLowerCase();
570
< 1000)) {    });
571
 
572
< 1000)) {    degree = parseFloat(degreeC);
573
< 1000)) {    if (isNaN(degreeC)) {
574
< 1000)) {        return "---";
575
< 1000)) {    } else {
576
< 1000)) {        switch (tempFormat) {
577
< 1000)) {        case "f":
578
< 1000)) {            return round((((9 * degree) / 5) + 32), 1) + "&nbsp;" + genlang(61);
579
< 1000)) {        case "c":
580
< 1000)) {            return round(degree, 1) + "&nbsp;" + genlang(60);
581
< 1000)) {        case "c-f":
582
< 1000)) {            return round(degree, 1) + "&nbsp;" + genlang(60) + "<br><i>(" + round((((9 * degree) / 5) + 32), 1) + "&nbsp;" + genlang(61) + ")</i>";
583
< 1000)) {        case "f-c":
584
< 1000)) {            return round((((9 * degree) / 5) + 32), 1) + "&nbsp;" + genlang(61) + "<br><i>(" + round(degree, 1) + "&nbsp;" + genlang(60) + ")</i>";
585
< 1000)) {        }
586
< 1000)) {    }
587
< 1000)) {}
588
 
589
< 1000)) {/**
590
< 1000)) { * create a visual HTML bar from a given size, the layout of that bar can be costumized through the bar css-class
591
< 1000)) { * @param {Number} size barclass
592
< 1000)) { * @return {String} HTML string which contains the full layout of the bar
593
< 1000)) { */
594
< 1000)) {function createBar(size, barclass) {
595
< 1000)) {    if (barclass === undefined) {
596
< 1000)) {        barclass = "bar";
597
< 1000)) {    }
598
< 1000)) {    return "<div class=\"" + barclass + "\" style=\"float:left; width: " + Math.max(Math.min(Math.round(size), 100), 0) + "px;\">&nbsp;</div>&nbsp;" + size + "%";
599
< 1000)) {}
600
 
601
< 1000)) {/**
602
< 1000)) { * (re)fill the vitals block with the values from the given xml
603
< 1000)) { * @param {jQuery} xml phpSysInfo-XML
604
< 1000)) { */
605
< 1000)) {function refreshVitals(xml) {
606
< 1000)) {    var hostname = "", ip = "";
607
< 1000)) {    if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('vitals', blocks) < 0))) {
608
< 1000)) {        $("#vitals").remove();
609
< 1000)) {        $("Vitals", xml).each(function getVitals(id) {
610
< 1000)) {            hostname = $(this).attr("Hostname");
611
< 1000)) {            ip = $(this).attr("IPAddr");
612
< 1000)) {            document.title = "System information: " + hostname + " (" + ip + ")";
613
< 1000)) {            $("#s_hostname_title").html(hostname);
614
< 1000)) {            $("#s_ip_title").html(ip);
615
< 1000)) {        });
616
< 1000)) {        return;
617
< 1000)) {    }
618
 
619
< 1000)) {    var kernel = "", distro = "", icon = "", uptime = "", users = 0, loadavg = "", os = "";
620
< 1000)) {    var processes = 0, prunning = 0, psleeping = 0, pstopped = 0, pzombie = 0, pwaiting = 0, pother = 0;
621
< 1000)) {    var syslang = "", codepage = "";
622
< 1000)) {    var lastboot = 0;
623
< 1000)) {    var timestamp = parseInt($("Generation", xml).attr("timestamp"), 10)*1000; //server time
624
< 1000)) {    var not_first = false;
625
< 1000)) {    var datetimeFormat = "";
626
< 1000)) {    if (isNaN(timestamp)) timestamp = Number(new Date()); //client time
627
 
628
< 1000)) {    $("Options", xml).each(function getDatetimeFormat(id) {
629
< 1000)) {        datetimeFormat = $(this).attr("datetimeFormat");
630
< 1000)) {    });
631
 
632
< 1000)) {    $("Vitals", xml).each(function getVitals(id) {
633
< 1000)) {        hostname = $(this).attr("Hostname");
634
< 1000)) {        ip = $(this).attr("IPAddr");
635
< 1000)) {        kernel = $(this).attr("Kernel");
636
< 1000)) {        distro = $(this).attr("Distro");
637
< 1000)) {        icon = $(this).attr("Distroicon");
638
< 1000)) {        os = $(this).attr("OS");
639
< 1000)) {        uptime = formatUptime(parseInt($(this).attr("Uptime"), 10));
640
< 1000)) {        lastboot = new Date(timestamp - (parseInt($(this).attr("Uptime"), 10)*1000));
641
< 1000)) {        users = parseInt($(this).attr("Users"), 10);
642
< 1000)) {        loadavg = $(this).attr("LoadAvg");
643
< 1000)) {        if ($(this).attr("CPULoad") !== undefined) {
644
< 1000)) {            loadavg = loadavg + "<br>" + createBar(parseInt($(this).attr("CPULoad"), 10));
645
< 1000)) {        }
646
< 1000)) {        if ($(this).attr("SysLang") !== undefined) {
647
< 1000)) {            syslang = $(this).attr("SysLang");
648
< 1000)) {            document.getElementById("s_syslang_tr").style.display='';
649
< 1000)) {        }
650
 
651
< 1000)) {        if ($(this).attr("CodePage") !== undefined) {
652
< 1000)) {            codepage = $(this).attr("CodePage");
653
< 1000)) {            if ($(this).attr("SysLang") !== undefined) {
654
< 1000)) {                document.getElementById("s_codepage_tr1").style.display='';
655
< 1000)) {            } else {
656
< 1000)) {                document.getElementById("s_codepage_tr2").style.display='';
657
< 1000)) {            }
658
< 1000)) {        }
659
 
660
< 1000)) {        //processes
661
< 1000)) {        if ($(this).attr("Processes") !== undefined) {
662
< 1000)) {            processes = parseInt($(this).attr("Processes"), 10);
663
< 1000)) {            if ((($(this).attr("CodePage") !== undefined) && ($(this).attr("SysLang") === undefined)) ||
664
< 1000)) {                (($(this).attr("CodePage") === undefined) && ($(this).attr("SysLang") !== undefined))) {
665
< 1000)) {                document.getElementById("s_processes_tr1").style.display='';
666
< 1000)) {            } else {
667
< 1000)) {                document.getElementById("s_processes_tr2").style.display='';
668
< 1000)) {            }
669
< 1000)) {        }
670
< 1000)) {        if ($(this).attr("ProcessesRunning") !== undefined) {
671
< 1000)) {            prunning = parseInt($(this).attr("ProcessesRunning"), 10);
672
< 1000)) {        }
673
< 1000)) {        if ($(this).attr("ProcessesSleeping") !== undefined) {
674
< 1000)) {            psleeping = parseInt($(this).attr("ProcessesSleeping"), 10);
675
< 1000)) {        }
676
< 1000)) {        if ($(this).attr("ProcessesStopped") !== undefined) {
677
< 1000)) {            pstopped = parseInt($(this).attr("ProcessesStopped"), 10);
678
< 1000)) {        }
679
< 1000)) {        if ($(this).attr("ProcessesZombie") !== undefined) {
680
< 1000)) {            pzombie = parseInt($(this).attr("ProcessesZombie"), 10);
681
< 1000)) {        }
682
< 1000)) {        if ($(this).attr("ProcessesWaiting") !== undefined) {
683
< 1000)) {            pwaiting = parseInt($(this).attr("ProcessesWaiting"), 10);
684
< 1000)) {        }
685
< 1000)) {        if ($(this).attr("ProcessesOther") !== undefined) {
686
< 1000)) {            pother = parseInt($(this).attr("ProcessesOther"), 10);
687
< 1000)) {        }
688
 
689
< 1000)) {        document.title = "System information: " + hostname + " (" + ip + ")";
690
< 1000)) {        $("#s_hostname_title").html(hostname);
691
< 1000)) {        $("#s_ip_title").html(ip);
692
< 1000)) {        $("#s_hostname").html(hostname);
693
< 1000)) {        $("#s_ip").html(ip);
694
< 1000)) {        $("#s_kernel").html(kernel);
695
< 1000)) {        $("#s_distro").html("<img src='./gfx/images/" + icon + "' alt='Icon' title='' style='width:16px;height:16px;vertical-align:middle;' onload='PNGload($(this));' />&nbsp;" + distro); //onload IE6 PNG fix
696
< 1000)) {        $("#s_os").html("<img src='./gfx/images/" + os + ".png' alt='OSIcon' title='' style='width:16px;height:16px;vertical-align:middle;' onload='PNGload($(this));' /> " + os); //onload IE6 PNG fix
697
< 1000)) {        $("#s_uptime").html(uptime);
698
< 1000)) {        if ((datetimeFormat !== undefined) && (datetimeFormat.toLowerCase() === "locale")) {
699
< 1000)) {            $("#s_lastboot").html(lastboot.toLocaleString());
700
< 1000)) {        } else {
701
< 1000)) {            if (typeof(lastboot.toUTCString)==="function") {
702
< 1000)) {                $("#s_lastboot").html(lastboot.toUTCString());
703
< 1000)) {            } else {
704
< 1000)) {                //deprecated
705
< 1000)) {                $("#s_lastboot").html(lastboot.toGMTString());
706
< 1000)) {            }
707
< 1000)) {        }
708
< 1000)) {        $("#s_users").html(users);
709
< 1000)) {        $("#s_loadavg").html(loadavg);
710
< 1000)) {        $("#s_syslang").html(syslang);
711
< 1000)) {        $("#s_codepage_1").html(codepage);
712
< 1000)) {        $("#s_codepage_2").html(codepage);
713
< 1000)) {        $("#s_processes_1").html(processes);
714
< 1000)) {        $("#s_processes_2").html(processes);
715
< 1000)) {        if (prunning || psleeping || pstopped || pzombie || pwaiting || pother) {
716
< 1000)) {            $("#s_processes_1").append(" (");
717
< 1000)) {            $("#s_processes_2").append(" (");
718
< 1000)) {            var typelist = {running:111,sleeping:112,stopped:113,zombie:114,waiting:115,other:116};
719
< 1000)) {            for (var proc_type in typelist) {
720
< 1000)) {                if (eval("p" + proc_type)) {
721
< 1000)) {                    if (not_first) {
722
< 1000)) {                        $("#s_processes_1").append(", ");
723
< 1000)) {                        $("#s_processes_2").append(", ");
724
< 1000)) {                    }
725
< 1000)) {                    $("#s_processes_1").append(eval("p" + proc_type) + " " + genlang(typelist[proc_type]));
726
< 1000)) {                    $("#s_processes_2").append(eval("p" + proc_type) + " " + genlang(typelist[proc_type]));
727
< 1000)) {                    not_first = true;
728
< 1000)) {                }
729
< 1000)) {            }
730
< 1000)) {            $("#s_processes_1").append(") ");
731
< 1000)) {            $("#s_processes_2").append(") ");
732
< 1000)) {        }
733
< 1000)) {    });
734
< 1000)) {}
735
 
736
 
737
< 1000)) {/**
738
< 1000)) { * build the cpu information as table rows
739
< 1000)) { * @param {jQuery} xml phpSysInfo-XML
740
< 1000)) { * @param {Array} tree array that holds the positions for treetable plugin
741
< 1000)) { * @param {Number} rootposition position of the parent element
742
< 1000)) { * @param {Array} collapsed array that holds all collapsed elements hwne opening page
743
< 1000)) { */
744
< 1000)) {function fillCpu(xml, tree, rootposition, collapsed) {
745
< 1000)) {    var cpucount = 0, html = "";
746
< 1000)) {    $("Hardware CPU CpuCore", xml).each(function getCpuCore(cpuCoreId) {
747
< 1000)) {        var model = "", speed = 0, bus = 0, cache = 0, bogo = 0, temp = 0, load = 0, speedmax = 0, speedmin = 0, cpucoreposition = 0, virt = "", manufacturer = "";
748
< 1000)) {        cpucount++;
749
< 1000)) {        model = $(this).attr("Model");
750
< 1000)) {        speed = parseInt($(this).attr("CpuSpeed"), 10);
751
< 1000)) {        speedmax = parseInt($(this).attr("CpuSpeedMax"), 10);
752
< 1000)) {        speedmin = parseInt($(this).attr("CpuSpeedMin"), 10);
753
< 1000)) {        cache = parseInt($(this).attr("Cache"), 10);
754
< 1000)) {        virt = $(this).attr("Virt");
755
< 1000)) {        bus = parseInt($(this).attr("BusSpeed"), 10);
756
< 1000)) {        temp = parseInt($(this).attr("Cputemp"), 10);
757
< 1000)) {        bogo = parseInt($(this).attr("Bogomips"), 10);
758
< 1000)) {        manufacturer = $(this).attr("Manufacturer");
759
< 1000)) {        load = parseInt($(this).attr("Load"), 10);
760
 
761
< 1000)) {        if (!showCPUListExpanded) {
762
< 1000)) {            collapsed.push(rootposition);
763
< 1000)) {        }
764
< 1000)) {        if (!isNaN(load) && showCPULoadCompact) {
765
< 1000)) {            html += "
" + model + "span></div>td><td>" + createBar(load) + "</td>tr>\n";
766
< 1000)) {
} else {
767
< 1000)) {
html += "<tr><td colspan=\"2\"><div class=\"treediv\"><span class=\"treespan\">" + model + "</span></div></td></tr>\n";
768
< 1000)) {
}
769
< 1000)) {
cpucoreposition = tree.push(rootposition);
770
< 1000)) {
if (!showCPUInfoExpanded) {
771
< 1000)) {
collapsed.push(cpucoreposition);
772
< 1000)) {
}
773
< 1000)) {
if (!isNaN(speed)) {
774
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(13) + ":</span></div></td><td>" + formatHertz(speed) + "</td></tr>\n";
775
< 1000)) {
tree.push(cpucoreposition);
776
< 1000)) {
}
777
< 1000)) {
if (!isNaN(speedmax)) {
778
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(100) + ":</span></div></td><td>" + formatHertz(speedmax) + "</td></tr>\n";
779
< 1000)) {
tree.push(cpucoreposition);
780
< 1000)) {
}
781
< 1000)) {
if (!isNaN(speedmin)) {
782
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(101) + ":</span></div></td><td>" + formatHertz(speedmin) + "</td></tr>\n";
783
< 1000)) {
tree.push(cpucoreposition);
784
< 1000)) {
}
785
< 1000)) {
if (!isNaN(cache)) {
786
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(15) + ":</span></div></td><td>" + formatBytes(cache, xml) + "</td></tr>\n";
787
< 1000)) {
tree.push(cpucoreposition);
788
< 1000)) {
}
789
< 1000)) {
if (virt !== undefined) {
790
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(94) + ":</span></div></td><td>" + virt + "</td></tr>\n";
791
< 1000)) {
tree.push(cpucoreposition);
792
< 1000)) {
}
793
< 1000)) {
if (!isNaN(bus)) {
794
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(14) + ":</span></div></td><td>" + formatHertz(bus) + "</td></tr>\n";
795
< 1000)) {
tree.push(cpucoreposition);
796
< 1000)) {
}
797
< 1000)) {
if (!isNaN(bogo)) {
798
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(16) + ":</span></div></td><td>" + bogo.toString() + "</td></tr>\n";
799
< 1000)) {
tree.push(cpucoreposition);
800
< 1000)) {
}
801
< 1000)) {
/*
802
< 1000)) {
if (!isNaN(temp)) {
803
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(51) + ":</span></div></td><td>" + formatTemp(temp, xml) + "</td></tr>\n";
804
< 1000)) {
tree.push(cpucoreposition);
805
< 1000)) {
}
806
< 1000)) {
*/
807
< 1000)) {
if (manufacturer !== undefined) {
808
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(122) + ":</span></div></td><td>" + manufacturer + "</td></tr>\n";
809
< 1000)) {
tree.push(cpucoreposition);
810
< 1000)) {
}
811
< 1000)) {
if (!isNaN(load) && !showCPULoadCompact) {
812
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(9) + ":</span></div></td><td>" + createBar(load) + "</td></tr>\n";
813
< 1000)) {
tree.push(cpucoreposition);
814
< 1000)) {
}
815
< 1000)) {
});
816
< 1000)) {
if (cpucount === 0) {
817
< 1000)) {
html += "<tr><td colspan=\"2\">" + genlang(42) + "</td></tr>\n";
818
< 1000)) {
tree.push(rootposition);
819
< 1000)) {
}
820
< 1000)) {
return html;
821
< 1000)) {
}
822
 
823
< 1000)) {
function countCpu(xml) {
824
< 1000)) {
var cpucount = 0;
825
< 1000)) {
$("Hardware CPU CpuCore", xml).each(function getCpuCore(cpuCoreId) {
826
< 1000)) {
cpucount++;
827
< 1000)) {
});
828
< 1000)) {
return cpucount;
829
< 1000)) {
}
830
 
831
< 1000)) {
/**
832
< 1000)) {
* build rows for a treetable out of the hardwaredevices
833
< 1000)) {
* @param {jQuery} xml phpSysInfo-XML
834
< 1000)) {
* @param {String} type type of the hardware device
835
< 1000)) {
* @param {Array} tree array that holds the positions for treetable plugin
836
< 1000)) {
* @param {Number} rootposition position of the parent element
837
< 1000)) {
*/
838
< 1000)) {
function fillHWDevice(xml, type, tree, rootposition) {
839
< 1000)) {
var devicecount = 0, html = "";
840
< 1000)) {
$("Hardware " + type + " Device", xml).each(function getHWDevice(deviceId) {
841
< 1000)) {
var name = "", count = 0, capacity = 0, manufacturer = "", product = "", serial = "", devcoreposition = 0;
842
 
843
< 1000)) {
devicecount++;
844
< 1000)) {
name = $(this).attr("Name");
845
< 1000)) {
capacity = parseInt($(this).attr("Capacity"), 10);
846
< 1000)) {
manufacturer = $(this).attr("Manufacturer");
847
< 1000)) {
product = $(this).attr("Product");
848
< 1000)) {
serial = $(this).attr("Serial");
849
< 1000)) {
count = parseInt($(this).attr("Count"), 10);
850
< 1000)) {
if (!isNaN(count) && count > 1) {
851
< 1000)) {
name = "(" + count + "x) " + name;
852
< 1000)) {
}
853
< 1000)) {
html += "<tr><td colspan=\"2\"><div class=\"treediv\"><span class=\"treespan\">" + name + "</span></div></td></tr>\n";
854
< 1000)) {
devcoreposition = tree.push(rootposition);
855
< 1000)) {
if (!isNaN(capacity)) {
856
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(43) + ":</span></div></td><td>" + formatBytes(capacity, xml) + "</td></tr>\n";
857
< 1000)) {
tree.push(devcoreposition);
858
< 1000)) {
}
859
< 1000)) {
if (manufacturer!== undefined) {
860
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(122) + ":</span></div></td><td>" + manufacturer + "</td></tr>\n";
861
< 1000)) {
tree.push(devcoreposition);
862
< 1000)) {
}
863
< 1000)) {
if (product !== undefined) {
864
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(123) + ":</span></div></td><td>" + product + "</td></tr>\n";
865
< 1000)) {
tree.push(devcoreposition);
866
< 1000)) {
}
867
< 1000)) {
if (serial !== undefined) {
868
< 1000)) {
html += "<tr><td style=\"width:68%\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(124) + ":</span></div></td><td>" + serial + "</td></tr>\n";
869
< 1000)) {
tree.push(devcoreposition);
870
< 1000)) {
}
871
< 1000)) {
});
872
< 1000)) {
if (devicecount === 0) {
873
< 1000)) {
html += "<tr><td colspan=\"2\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(42) + "</span></div></td></tr>\n";
874
< 1000)) {
tree.push(rootposition);
875
< 1000)) {
}
876
< 1000)) {
return html;
877
< 1000)) {
}
878
 
879
< 1000)) {
function countHWDevice(xml, type) {
880
< 1000)) {
var devicecount = 0;
881
< 1000)) {
$("Hardware " + type + " Device", xml).each(function getHWDevice(deviceId) {
882
< 1000)) {
devicecount++;
883
< 1000)) {
});
884
< 1000)) {
return devicecount;
885
< 1000)) {
}
886
 
887
< 1000)) {
/**
888
< 1000)) {
* (re)fill the hardware block with the values from the given xml
889
< 1000)) {
* @param {jQuery} xml phpSysInfo-XML
890
< 1000)) {
*/
891
< 1000)) {
function refreshHardware(xml) {
892
< 1000)) {
if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('hardware', blocks) < 0))) {
893
< 1000)) {
$("#hardware").remove();
894
< 1000)) {
return;
895
< 1000)) {
}
896
 
897
< 1000)) {
var html = "", tree = [], closed = [], index = 0, machine = "";
898
< 1000)) {
$("#hardware").empty();
899
< 1000)) {
html += "<h2>" + genlang(10) + "</h2>\n";
900
< 1000)) {
html += " <div style=\"overflow-x:auto;\">\n";
901
< 1000)) {
html += " <table id=\"HardwareTree\" class=\"tablemain\">\n";
902
< 1000)) {
html += " <tbody class=\"tree\">\n";
903
 
904
< 1000)) {
$("Hardware", xml).each(function getMachine(id) {
905
< 1000)) {
machine = $(this).attr("Name");
906
< 1000)) {
});
907
< 1000)) {
if ((machine !== undefined) && (machine !== "")) {
908
< 1000)) {
html += " <tr><td colspan=\"2\"><div class=\"treediv\"><span class=\"treespanbold\">" + genlang(107) + "</span></div></td></tr>\n";
909
< 1000)) {
html += "<tr><td colspan=\"2\"><div class=\"treediv\"><span class=\"treespan\">" + machine + "</span></div></td></tr>\n";
910
< 1000)) {
tree.push(tree.push(0));
911
< 1000)) {
}
912
 
913
< 1000)) {
if (countCpu(xml)) {
914
< 1000)) {
html += " <tr><td colspan=\"2\"><div class=\"treediv\"><span class=\"treespanbold\">" + genlang(11) + "</span></div></td></tr>\n";
915
< 1000)) {
html += fillCpu(xml, tree, tree.push(0), closed);
916
< 1000)) {
}
917
 
918
< 1000)) {
var typelist = {PCI:17,IDE:18,SCSI:19,NVMe:126,USB:20,TB:117,I2C:118};
919
< 1000)) {
for (var dev_type in typelist) {
920
< 1000)) {
if (countHWDevice(xml, dev_type)) {
921
< 1000)) {
html += " <tr><td colspan=\"2\"><div class=\"treediv\"><span class=\"treespanbold\">" + genlang(typelist[dev_type]) + "</span></div></td></tr>\n";
922
< 1000)) {
index = tree.push(0);
923
< 1000)) {
closed.push(index);
924
< 1000)) {
html += fillHWDevice(xml, dev_type, tree, index);
925
< 1000)) {
}
926
< 1000)) {
}
927
 
928
< 1000)) {
html += " </tbody>\n";
929
< 1000)) {
html += " </table>\n";
930
< 1000)) {
html += " </div>\n";
931
< 1000)) {
$("#hardware").append(html);
932
 
933
< 1000)) {
$("#HardwareTree").jqTreeTable(tree, {
934
< 1000)) {
openImg: "./gfx/treeTable/tv-collapsable.gif",
935
< 1000)) {
shutImg: "./gfx/treeTable/tv-expandable.gif",
936
< 1000)) {
leafImg: "./gfx/treeTable/tv-item.gif",
937
< 1000)) {
lastOpenImg: "./gfx/treeTable/tv-collapsable-last.gif",
938
< 1000)) {
lastShutImg: "./gfx/treeTable/tv-expandable-last.gif",
939
< 1000)) {
lastLeafImg: "./gfx/treeTable/tv-item-last.gif",
940
< 1000)) {
vertLineImg: "./gfx/treeTable/vertline.gif",
941
< 1000)) {
blankImg: "./gfx/treeTable/blank.gif",
942
< 1000)) {
collapse: closed,
943
< 1000)) {
column: 0,
944
< 1000)) {
striped: true,
945
< 1000)) {
highlight: false,
946
< 1000)) {
state: false
947
< 1000)) {
});
948
< 1000)) {
}
949
 
950
< 1000)) {
/**
951
< 1000)) {
*(re)fill the network block with the values from the given xml
952
< 1000)) {
* @param {jQuery} xml phpSysInfo-XML
953
< 1000)) {
*/
954
< 1000)) {
function refreshNetwork(xml) {
955
< 1000)) {
if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('network', blocks) < 0))) {
956
< 1000)) {
$("#network").remove();
957
< 1000)) {
return;
958
< 1000)) {
}
959
 
960
< 1000)) {
var tree = [], closed = [], html0= "", html1= "" ,html = "", isinfo = false, preoldnetwork = [], timestamp;
961
 
962
< 1000)) {
$("#network").empty();
963
 
964
< 1000)) {
html0 += "<h2>" + genlang(21) + "</h2>\n";
965
 
966
< 1000)) {
html1 += " <thead>\n";
967
< 1000)) {
html1 += " <tr>\n";
968
< 1000)) {
html1 += " <th>" + genlang(22) + "</th>\n";
969
< 1000)) {
html1 += " <th class=\"right\" style=\"width:50px;\">" + genlang(23) + "</th>\n";
970
< 1000)) {
html1 += " <th class=\"right\" style=\"width:50px;\">" + genlang(24) + "</th>\n";
971
< 1000)) {
html1 += " <th class=\"right\" style=\"width:50px;\">" + genlang(25) + "</th>\n";
972
< 1000)) {
html1 += " </tr>\n";
973
< 1000)) {
html1 += " </thead>\n";
974
 
975
< 1000)) {
if (showNetworkActiveSpeed) {
976
< 1000)) {
$("Generation", xml).each(function getTimestamp(id) {
977
< 1000)) {
timestamp = $(this).attr("timestamp");
978
< 1000)) {
});
979
< 1000)) {
}
980
 
981
< 1000)) {
$("Network NetDevice", xml).each(function getDevice(id) {
982
< 1000)) {
var name = "", rx = 0, tx = 0, er = 0, dr = 0, info = "", networkindex = 0, htmlrx = '', htmltx = '';
983
< 1000)) {
name = $(this).attr("Name");
984
< 1000)) {
rx = parseInt($(this).attr("RxBytes"), 10);
985
< 1000)) {
tx = parseInt($(this).attr("TxBytes"), 10);
986
< 1000)) {
er = parseInt($(this).attr("Err"), 10);
987
< 1000)) {
dr = parseInt($(this).attr("Drops"), 10);
988
 
989
< 1000)) {
if (showNetworkActiveSpeed && ($.inArray(name, oldnetwork) >= 0)) {
990
< 1000)) {
var diff, difftime;
991
< 1000)) {
if (((diff = rx - oldnetwork[name].rx) > 0) && ((difftime = timestamp - oldnetwork[name].timestamp) > 0)) {
992
< 1000)) {
if (showNetworkActiveSpeed == 2) {
993
< 1000)) {
htmlrx ="<br><i>("+formatBPS(round(8*diff/difftime, 2))+")i>";
994
< 1000)) {
} else {
995
< 1000)) {
htmlrx ="<br><i>("+formatBytes(round(diff/difftime, 2), xml)+"/s)i>";
996
< 1000)) {
}
997
< 1000)) {
}
998
< 1000)) {
if (((diff = tx - oldnetwork[name].tx) > 0) && (difftime > 0)) {
999
< 1000)) {
if (showNetworkActiveSpeed == 2) {
1000
< 1000)) {
htmltx ="<br><i>("+formatBPS(round(8*diff/difftime, 2))+")</i>";
1001
< 1000)) {
} else {
1002
< 1000)) {
htmltx ="
("+formatBytes(round(diff/
difftime, 2), xml)+"/s)</i>";
1003
< 1000)) {

}
1004
< 1000)) {

}
1005
< 1000)) {

}
1006
 
1007
< 1000)) {

html +="<tr><td><div class=\"treediv\"><span class=\"treespan\">" + name + "</span></div></td><td class=\"right\">" + formatBytes(rx, xml) + htmlrx + "</td><td class=\"right\">" + formatBytes(tx, xml) + htmltx +"</td><td class=\"right\">" + er.toString() + "/<wbr>" + dr.toString() + "</td></tr>";
1008
 
1009
< 1000)) {

networkindex = tree.push(0);
1010
 
1011
< 1000)) {

if (showNetworkActiveSpeed) {
1012
< 1000)) {

preoldnetwork.pushIfNotExist(name);
1013
< 1000)) {

preoldnetwork[name] = {timestamp:timestamp, rx:rx, tx:tx};
1014
< 1000)) {

}
1015
 
1016
< 1000)) {

info = $(this).attr("Info");
1017
< 1000)) {

if ( (info !== undefined) && (info !== "") ) {
1018
< 1000)) {

var i = 0, infos = info.replace(/:/g, "<wbr>:").split(";"); /* split long addresses */
1019
< 1000)) {

isinfo = true;
1020
< 1000)) {

for(i = 0; i < infos.length; i++){
1021
< 1000)) {

html +="<tr><td colspan=\"4\"><div class=\"treediv\"><span class=\"treespan\">" + infos[i] + "</span></div></td></tr>";
1022
< 1000)) {

tree.push(networkindex);
1023
< 1000)) {

}
1024
< 1000)) {

if (!showNetworkInfosExpanded) {
1025
< 1000)) {

closed.push(networkindex);
1026
< 1000)) {

}
1027
< 1000)) {

}
1028
< 1000)) {

});
1029
< 1000)) {

html += " </tbody>\n";
1030
< 1000)) {

html += " </table>\n";
1031
< 1000)) {

html += "</div>\n";
1032
< 1000)) {

html0 += "<div style=\"overflow-x:auto;\">\n";
1033
< 1000)) {

if (isinfo) {
1034
< 1000)) {

html0 += " <table id=\"NetworkTree\" class=\"tablemain\">\n";
1035
< 1000)) {

html1 += " <tbody class=\"tree\">\n";
1036
< 1000)) {

} else {
1037
< 1000)) {

html0 += " <table id=\"NetworkTree\" class=\"stripeMe\" style=\"border-collapse:collapse;\">\n";
1038
< 1000)) {

html1 += " <tbody class=\"tbody_network\">\n";
1039
< 1000)) {

}
1040
< 1000)) {

$("#network").append(html0+html1+html);
1041
 
1042
< 1000)) {

if (isinfo) $("#NetworkTree").jqTreeTable(tree, {
1043
< 1000)) {

openImg: "./gfx/treeTable/tv-collapsable.gif",
1044
< 1000)) {

shutImg: "./gfx/treeTable/tv-expandable.gif",
1045
< 1000)) {

leafImg: "./gfx/treeTable/tv-item.gif",
1046
< 1000)) {

lastOpenImg: "./gfx/treeTable/tv-collapsable-last.gif",
1047
< 1000)) {

lastShutImg: "./gfx/treeTable/tv-expandable-last.gif",
1048
< 1000)) {

lastLeafImg: "./gfx/treeTable/tv-item-last.gif",
1049
< 1000)) {

vertLineImg: "./gfx/treeTable/vertline.gif",
1050
< 1000)) {

blankImg: "./gfx/treeTable/blank.gif",
1051
< 1000)) {

collapse: closed,
1052
< 1000)) {

column: 0,
1053
< 1000)) {

striped: true,
1054
< 1000)) {

highlight: false,
1055
< 1000)) {

state: false
1056
< 1000)) {

});
1057
 
1058
< 1000)) {

if (showNetworkActiveSpeed) {
1059
< 1000)) {

while (oldnetwork.length > 0) {
1060
< 1000)) {

delete oldnetwork[oldnetwork.length-1]; //remove last object
1061
< 1000)) {

oldnetwork.pop(); //remove last object reference from array
1062
< 1000)) {

}
1063
< 1000)) {

oldnetwork = preoldnetwork;
1064
< 1000)) {

}
1065
< 1000)) {

}
1066
 
1067
< 1000)) {

/**
1068
< 1000)) {

* (re)fill the memory block with the values from the given xml
1069
< 1000)) {

* @param {jQuery} xml phpSysInfo-XML
1070
< 1000)) {

*/
1071
< 1000)) {

function refreshMemory(xml) {
1072
< 1000)) {

if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('memory', blocks) < 0))) {
1073
< 1000)) {

$("#memory").remove();
1074
< 1000)) {

return;
1075
< 1000)) {

}
1076
 
1077
< 1000)) {

var html = "", tree = [], closed = [];
1078
 
1079
< 1000)) {

$("#memory").empty();
1080
< 1000)) {

html += "<h2>" + genlang(27) + "</h2>\n";
1081
< 1000)) {

html += "<div style=\"overflow-x:auto;\">\n";
1082
< 1000)) {

html += " <table id=\"MemoryTree\" class=\"tablemain\">\n";
1083
< 1000)) {

html += " <thead>\n";
1084
< 1000)) {

html += " <tr>\n";
1085
< 1000)) {

html += " <th style=\"width:200px;\">" + genlang(34) + "</th>\n";
1086
< 1000)) {

html += " <th style=\"width:285px;\">" + genlang(33) + "</th>\n";
1087
< 1000)) {

html += " <th class=\"right\" style=\"width:100px;\">" + genlang(125) + "</th>\n";
1088
< 1000)) {

html += " <th class=\"right\" style=\"width:100px;\">" + genlang(36) + "</th>\n";
1089
< 1000)) {

html += " <th class=\"right\" style=\"width:100px;\">" + genlang(37) + "</th>\n";
1090
< 1000)) {

html += " </tr>\n";
1091
< 1000)) {

html += " </thead>\n";
1092
< 1000)) {

html += " <tbody class=\"tree\">\n";
1093
 
1094
< 1000)) {

$("Memory", xml).each(function getMemory(id) {
1095
< 1000)) {

var free = 0, total = 0, used = 0, percent = 0, memoryindex = 0;
1096
< 1000)) {

free = parseInt($(this).attr("Free"), 10);
1097
< 1000)) {

used = parseInt($(this).attr("Used"), 10);
1098
< 1000)) {

total = parseInt($(this).attr("Total"), 10);
1099
< 1000)) {

percent = parseInt($(this).attr("Percent"), 10);
1100
< 1000)) {

html += "<tr><td style=\"width:200px;\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(28) + "</span></div></td><td style=\"width:285px;\">" + createBar(percent) + "</td><td class=\"right\" style=\"width:100px;\">" + formatBytes(free, xml) + "</td><td class=\"right\" style=\"width:100px;\">" + formatBytes(used, xml) + "</td><td class=\"right\" style=\"width:100px;\">" + formatBytes(total, xml) + "</td></tr>";
1101
< 1000)) {

memoryindex = tree.push(0);
1102
 
1103
< 1000)) {

$("Memory Details", xml).each(function getMemorydetails(id) {
1104
< 1000)) {

var app = 0, appp = 0, buff = 0, buffp = 0, cached = 0, cachedp = 0;
1105
< 1000)) {

app = parseInt($(this).attr("App"), 10);
1106
< 1000)) {

appp = parseInt($(this).attr("AppPercent"), 10);
1107
< 1000)) {

buff = parseInt($(this).attr("Buffers"), 10);
1108
< 1000)) {

buffp = parseInt($(this).attr("BuffersPercent"), 10);
1109
< 1000)) {

cached = parseInt($(this).attr("Cached"), 10);
1110
< 1000)) {

cachedp = parseInt($(this).attr("CachedPercent"), 10);
1111
< 1000)) {

if (!isNaN(app)) {
1112
< 1000)) {

html += "<tr><td style=\"width:184px;\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(64) + "</span></div></td><td style=\"width:285px;\">" + createBar(appp) + "</td><td class=\"right\" style=\"width:100px;\">&nbsp;</td><td class=\"right\" style=\"width:100px\">" + formatBytes(app, xml) + "</td><td class=\"right\" style=\"width:100px;\">&nbsp;</td></tr>";
1113
< 1000)) {

tree.push(memoryindex);
1114
< 1000)) {

}
1115
< 1000)) {

if (!isNaN(cached)) {
1116
< 1000)) {

html += "<tr><td style=\"width:184px;\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(66) + "</span></div></td><td style=\"width:285px;\">" + createBar(cachedp) + "</td><td class=\"right\" style=\"width:100px;\">&nbsp;</td><td class=\"right\" style=\"width:100px;\">" + formatBytes(cached, xml) + "</td><td class=\"right\" style=\"width:100px;\">&nbsp;</td></tr>";
1117
< 1000)) {

tree.push(memoryindex);
1118
< 1000)) {

}
1119
< 1000)) {

if (!isNaN(buff)) {
1120
< 1000)) {

html += "<tr><td style=\"width:184px;\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(65) + "</span></div></td><td style=\"width:285px\">" + createBar(buffp) + "</td><td class=\"rigth\" style=\"width:100px;\">&nbsp;</td><td class=\"right\" style=\"width:100px;\">" + formatBytes(buff, xml) + "</td><td class=\"right\" style=\"width:100px;\">&nbsp;</td></tr>";
1121
< 1000)) {

tree.push(memoryindex);
1122
< 1000)) {

}
1123
< 1000)) {

if (!isNaN(app) || !isNaN(buff) || !isNaN(cached)) {
1124
< 1000)) {

if (!showMemoryInfosExpanded) {
1125
< 1000)) {

closed.push(memoryindex);
1126
< 1000)) {

}
1127
< 1000)) {

}
1128
< 1000)) {

});
1129
< 1000)) {

});
1130
< 1000)) {

$("Memory Swap", xml).each(function getSwap(id) {
1131
< 1000)) {

var free = 0, total = 0, used = 0, percent = 0, swapindex = 0;
1132
< 1000)) {

free = parseInt($(this).attr("Free"), 10);
1133
< 1000)) {

used = parseInt($(this).attr("Used"), 10);
1134
< 1000)) {

total = parseInt($(this).attr("Total"), 10);
1135
< 1000)) {

percent = parseInt($(this).attr("Percent"), 10);
1136
< 1000)) {

html += "<tr><td style=\"width:200px;\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(29) + "</span></div></td><td style=\"width:285px;\">" + createBar(percent) + "</td><td class=\"right\" style=\"width:100px;\">" + formatBytes(free, xml) + "</td><td class=\"right\" style=\"width:100px;\">" + formatBytes(used, xml) + "</td><td class=\"right\" style=\"width:100px;\">" + formatBytes(total, xml) + "</td></tr>";
1137
< 1000)) {

swapindex = tree.push(0);
1138
 
1139
< 1000)) {

$("Memory Swap Mount", xml).each(function getDevices(id) {
1140
< 1000)) {

var free = 0, total = 0, used = 0, percent = 0, mpoint = "", mpid = 0;
1141
< 1000)) {

if (!showMemoryInfosExpanded) {
1142
< 1000)) {

closed.push(swapindex);
1143
< 1000)) {

}
1144
< 1000)) {

free = parseInt($(this).attr("Free"), 10);
1145
< 1000)) {

used = parseInt($(this).attr("Used"), 10);
1146
< 1000)) {

total = parseInt($(this).attr("Total"), 10);
1147
< 1000)) {

percent = parseInt($(this).attr("Percent"), 10);
1148
< 1000)) {

mpid = parseInt($(this).attr("MountPointID"), 10);
1149
< 1000)) {

mpoint = $(this).attr("MountPoint");
1150
 
1151
< 1000)) {

if (mpoint === undefined) {
1152
< 1000)) {

mpoint = mpid;
1153
< 1000)) {

}
1154
 
1155
< 1000)) {

html += "<tr><td style=\"width:184px;\"><div class=\"treediv\"><span class=\"treespan\">" + mpoint + "</span></div></td><td style=\"width:285px;\">" + createBar(percent) + "</td><td class=\"right\" style=\"width:100px\">" + formatBytes(free, xml) + "</td><td class=\"right\" style=\"width:100px;\">" + formatBytes(used, xml) + "</td><td class=\"right\" style=\"width:100px;\">" + formatBytes(total, xml) + "</td></tr>";
1156
< 1000)) {

tree.push(swapindex);
1157
< 1000)) {

});
1158
< 1000)) {

});
1159
 
1160
< 1000)) {

html += " </tbody>\n";
1161
< 1000)) {

html += " </table>\n";
1162
< 1000)) {

html += "</div>\n";
1163
< 1000)) {

$("#memory").append(html);
1164
 
1165
< 1000)) {

$("#MemoryTree").jqTreeTable(tree, {
1166
< 1000)) {

openImg: "./gfx/treeTable/tv-collapsable.gif",
1167
< 1000)) {

shutImg: "./gfx/treeTable/tv-expandable.gif",
1168
< 1000)) {

leafImg: "./gfx/treeTable/tv-item.gif",
1169
< 1000)) {

lastOpenImg: "./gfx/treeTable/tv-collapsable-last.gif",
1170
< 1000)) {

lastShutImg: "./gfx/treeTable/tv-expandable-last.gif",
1171
< 1000)) {

lastLeafImg: "./gfx/treeTable/tv-item-last.gif",
1172
< 1000)) {

vertLineImg: "./gfx/treeTable/vertline.gif",
1173
< 1000)) {

blankImg: "./gfx/treeTable/blank.gif",
1174
< 1000)) {

collapse: closed,
1175
< 1000)) {

column: 0,
1176
< 1000)) {

striped: true,
1177
< 1000)) {

highlight: false,
1178
< 1000)) {

state: false
1179
< 1000)) {

});
1180
 
1181
< 1000)) {

}
1182
 
1183
< 1000)) {

/**
1184
< 1000)) {

* (re)fill the filesystems block with the values from the given xml<br><br>
1185
< 1000)) {

* appends the filesystems (each in a row) to the filesystem table in the tbody<br>before the rows are inserted the entire
1186
< 1000)) {

* tbody is cleared
1187
< 1000)) {

* @param {jQuery} xml phpSysInfo-XML
1188
< 1000)) {

*/
1189
< 1000)) {

function refreshFilesystems(xml) {
1190
< 1000)) {

if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('filesystem', blocks) < 0))) {
1191
< 1000)) {

$("#filesystem").remove();
1192
< 1000)) {

return;
1193
< 1000)) {

}
1194
 
1195
< 1000)) {

var total_usage = 0, total_used = 0, total_free = 0, total_size = 0, threshold = 0;
1196
 
1197
< 1000)) {

filesystemTable.fnClearTable();
1198
 
1199
< 1000)) {

$("Options", xml).each(function getThreshold(id) {
1200
< 1000)) {

threshold = parseInt($(this).attr("threshold"), 10);
1201
< 1000)) {

});
1202
 
1203
< 1000)) {

$("FileSystem Mount", xml).each(function getMount(mid) {
1204
< 1000)) {

var mpoint = "", mpid = 0, type = "", name = "", free = 0, used = 0, size = 0, percent = 0, options = "", inodes = 0, inodes_text = "", options_text = "", ignore = 0;
1205
< 1000)) {

mpid = parseInt($(this).attr("MountPointID"), 10);
1206
< 1000)) {

type = $(this).attr("FSType");
1207
< 1000)) {

name = $(this).attr("Name").replace(/;/g, ";<wbr>"); /* split long name */
1208
< 1000)) {

free = parseInt($(this).attr("Free"), 10);
1209
< 1000)) {

used = parseInt($(this).attr("Used"), 10);
1210
< 1000)) {

size = parseInt($(this).attr("Total"), 10);
1211
< 1000)) {

percent = parseInt($(this).attr("Percent"), 10);
1212
< 1000)) {

options = $(this).attr("MountOptions");
1213
< 1000)) {

inodes = parseInt($(this).attr("Inodes"), 10);
1214
< 1000)) {

mpoint = $(this).attr("MountPoint");
1215
< 1000)) {

ignore = parseInt($(this).attr("Ignore"), 10);
1216
 
1217
< 1000)) {

if (mpoint === undefined) {
1218
< 1000)) {

mpoint = mpid;
1219
< 1000)) {

}
1220
< 1000)) {

if (options !== undefined) {
1221
< 1000)) {

options_text = "<br><i>(" + options + ")</i>";
1222
< 1000)) {

}
1223
< 1000)) {

if (!isNaN(inodes)) {
1224
< 1000)) {

inodes_text = "<span style=\"font-style:italic\">&nbsp;(" + inodes.toString() + "%)</span>";
1225
< 1000)) {

}
1226
 
1227
< 1000)) {

if (!isNaN(ignore) && (ignore > 0)) {
1228
< 1000)) {

if (ignore >= 2) {
1229
< 1000)) {

if ((ignore == 2) && !isNaN(threshold) && (percent >= threshold)) {
1230
< 1000)) {

filesystemTable.fnAddData(["<span style=\"display:none;\">" + mpoint + "</span>" + mpoint, "<span style=\"display:none;\">" + type + "</span>" + type, "<span style=\"display:none;\">" + name + "</span>" + name + options_text, "<span style=\"display:none;\">" + percent.toString() + "</span>" + createBar(percent, "barwarn") + inodes_text, "<span style=\"display:none;\">" + free.toString() + "</span><i>(" + formatBytes(free, xml) + ")</i>", "<span style=\"display:none;\">" + used.toString() + "</span><i>(" + formatBytes(used, xml) + ")</i>", "<span style=\"display:none;\">" + size.toString() + "</span><i>(" + formatBytes(size, xml) + ")</i>"]);
1231
< 1000)) {

} else {
1232
< 1000)) {

filesystemTable.fnAddData(["<span style=\"display:none;\">" + mpoint + "</span>" + mpoint, "<span style=\"display:none;\">" + type + "</span>" + type, "<span style=\"display:none;\">" + name + "</span>" + name + options_text, "<span style=\"display:none;\">" + percent.toString() + "</span>" + createBar(percent) + inodes_text, "<span style=\"display:none;\">" + free.toString() + "</span><i>(" + formatBytes(free, xml) + ")</i>", "<span style=\"display:none;\">" + used.toString() + "</span><i>(" + formatBytes(used, xml) + ")</i>", "<span style=\"display:none;\">" + size.toString() + "</span><i>(" + formatBytes(size, xml) + ")</i>"]);
1233
< 1000)) {

}
1234
< 1000)) {

} else {
1235
< 1000)) {

if (!isNaN(threshold) && (percent >= threshold)) {
1236
< 1000)) {

filesystemTable.fnAddData(["<span style=\"display:none;\">" + mpoint + "</span>" + mpoint, "<span style=\"display:none;\">" + type + "</span>" + type, "<span style=\"display:none;\">" + name + "</span>" + name + options_text, "<span style=\"display:none;\">" + percent.toString() + "</span>" + createBar(percent, "barwarn") + inodes_text, "<span style=\"display:none;\">" + free.toString() + "</span><i>(" + formatBytes(free, xml) + ")</i>", "<span style=\"display:none;\">" + used.toString() + "</span>" + formatBytes(used, xml), "<span style=\"display:none;\">" + size.toString() + "</span><i>(" + formatBytes(size, xml) + ")</i>"]);
1237
< 1000)) {

} else {
1238
< 1000)) {

filesystemTable.fnAddData(["<span style=\"display:none;\">" + mpoint + "</span>" + mpoint, "<span style=\"display:none;\">" + type + "</span>" + type, "<span style=\"display:none;\">" + name + "</span>" + name + options_text, "<span style=\"display:none;\">" + percent.toString() + "</span>" + createBar(percent) + inodes_text, "<span style=\"display:none;\">" + free.toString() + "</span><i>(" + formatBytes(free, xml) + ")</i>", "<span style=\"display:none;\">" + used.toString() + "</span>" + formatBytes(used, xml), "<span style=\"display:none;\">" + size.toString() + "</span><i>(" + formatBytes(size, xml) + ")</i>"]);
1239
< 1000)) {

}
1240
< 1000)) {

}
1241
< 1000)) {

} else {
1242
< 1000)) {

if (!isNaN(threshold) && (percent >= threshold)) {
1243
< 1000)) {

filesystemTable.fnAddData(["<span style=\"display:none;\">" + mpoint + "</span>" + mpoint, "<span style=\"display:none;\">" + type + "</span>" + type, "<span style=\"display:none;\">" + name + "</span>" + name + options_text, "<span style=\"display:none;\">" + percent.toString() + "</span>" + createBar(percent, "barwarn") + inodes_text, "<span style=\"display:none;\">" + free.toString() + "</span>" + formatBytes(free, xml), "<span style=\"display:none;\">" + used.toString() + "</span>" + formatBytes(used, xml), "<span style=\"display:none;\">" + size.toString() + "</span>" + formatBytes(size, xml)]);
1244
< 1000)) {

} else {
1245
< 1000)) {

filesystemTable.fnAddData(["<span style=\"display:none;\">" + mpoint + "</span>" + mpoint, "<span style=\"display:none;\">" + type + "</span>" + type, "<span style=\"display:none;\">" + name + "</span>" + name + options_text, "<span style=\"display:none;\">" + percent.toString() + "</span>" + createBar(percent) + inodes_text, "<span style=\"display:none;\">" + free.toString() + "</span>" + formatBytes(free, xml), "<span style=\"display:none;\">" + used.toString() + "</span>" + formatBytes(used, xml), "<span style=\"display:none;\">" + size.toString() + "</span>" + formatBytes(size, xml)]);
1246
< 1000)) {

}
1247
< 1000)) {

}
1248
< 1000)) {

if (!isNaN(ignore) && (ignore > 0)) {
1249
< 1000)) {

if (ignore == 1) {
1250
< 1000)) {

total_used += used;
1251
< 1000)) {

total_size += used;
1252
< 1000)) {

}
1253
< 1000)) {

} else {
1254
< 1000)) {

total_used += used;
1255
< 1000)) {

total_free += free;
1256
< 1000)) {

total_size += size;
1257
< 1000)) {

}
1258
< 1000)) {

total_usage = round((total_used / total_size) * 100, 2);
1259
< 1000)) {

});
1260
 
1261
< 1000)) {

if (!isNaN(threshold) && (total_usage >= threshold)) {
1262
< 1000)) {

$("#s_fs_total").html(createBar(total_usage, "barwarn"));
1263
< 1000)) {

} else {
1264
< 1000)) {

$("#s_fs_total").html(createBar(total_usage));
1265
< 1000)) {

}
1266
< 1000)) {

$("#s_fs_tfree").html(formatBytes(total_free, xml));
1267
< 1000)) {

$("#s_fs_tused").html(formatBytes(total_used, xml));
1268
< 1000)) {

$("#s_fs_tsize").html(formatBytes(total_size, xml));
1269
< 1000)) {

}
1270
 
1271
< 1000)) {

/**
1272
< 1000)) {

* (re)fill the temperature block with the values from the given xml<br><br>
1273
< 1000)) {

* build the block content for the temperature block, this includes normal temperature information in the XML
1274
< 1000)) {

* and also the HDDTemp information, if there are no information the entire table will be removed
1275
< 1000)) {

* to avoid HTML warnings
1276
< 1000)) {

* @param {jQuery} xml phpSysInfo-XML
1277
< 1000)) {

*/
1278
< 1000)) {

function refreshTemp(xml) {
1279
< 1000)) {

if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {
1280
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { $("#temperature").remove();
1281
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { return;
1282
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { }
1283
 
1284
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { var values = false;
1285
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { $("#temperatureTable tbody").empty();
1286
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { $("MBInfo Temperature Item", xml).each(function getTemperatures(id) {
1287
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { var label = "", value = "", limit = 0, _limit = "", event = "";
1288
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { label = $(this).attr("Label");
1289
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { value = $(this).attr("Value");
1290
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { limit = parseFloat($(this).attr("Max"));
1291
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { if (isFinite(limit))
1292
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { _limit = formatTemp(limit, xml);
1293
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { event = $(this).attr("Event");
1294
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { if (event !== undefined)
1295
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { label += " gfx/attention.gif\" alt=\"!\" title=\""+event+"\"/>";
1296
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) { $("#temperatureTable tbody").append("<tr><td>" + label + "</td>
" + formatTemp(value, xml) + "td><td class=\"right\">" + _limit + "</td></tr>");
1297
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
values = true;
1298
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1299
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (values) {
1300
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#temperature").show();
1301
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1302
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#temperature").hide();
1303
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1304
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1305
 
1306
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1307
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* (re)fill the voltage block with the values from the given xml<br><br>
1308
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* build the voltage information into a separate block, if there is no voltage information available the
1309
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* entire table will be removed to avoid HTML warnings
1310
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {jQuery} xml phpSysInfo-XML
1311
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1312
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function refreshVoltage(xml) {
1313
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('voltage', blocks) < 0))) {
1314
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#voltage").remove();
1315
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return;
1316
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1317
 
1318
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var values = false;
1319
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#voltageTable tbody").empty();
1320
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("MBInfo Voltage Item", xml).each(function getVoltages(id) {
1321
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var label = "", value = 0, max = 0, min = 0, _min = "", _max = "", event = "";
1322
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
label = $(this).attr("Label");
1323
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
value = parseFloat($(this).attr("Value"));
1324
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
max = parseFloat($(this).attr("Max"));
1325
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (isFinite(max))
1326
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
_max = round(max, 2) + "&nbsp;" + genlang(62);
1327
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
min = parseFloat($(this).attr("Min"));
1328
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (isFinite(min))
1329
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
_min = round(min, 2) + "&nbsp;" + genlang(62);
1330
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
event = $(this).attr("Event");
1331
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (event !== undefined)
1332
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
label += " <img style=\"vertical-align: middle; width:16px;\" src=\"./gfx/attention.gif\" alt=\"!\" title=\""+event+"\"/>";
1333
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#voltageTable tbody").append("<tr><td>" + label + "</td><td class=\"right\">" + round(value, 2) + "&nbsp;" + genlang(62) + "</td><td class=\"right\">" + _min + "</td><td class=\"right\">" + _max + "</td></tr>");
1334
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
values = true;
1335
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1336
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (values) {
1337
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#voltage").show();
1338
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1339
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#voltage").hide();
1340
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1341
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1342
 
1343
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1344
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* (re)fill the fan block with the values from the given xml<br><br>
1345
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* build the fan information into a separate block, if there is no fan information available the
1346
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* entire table will be removed to avoid HTML warnings
1347
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {jQuery} xml phpSysInfo-XML
1348
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1349
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function refreshFans(xml) {
1350
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('fans', blocks) < 0))) {
1351
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#fans").remove();
1352
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return;
1353
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1354
 
1355
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var values = false;
1356
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#fansTable tbody").empty();
1357
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("MBInfo Fans Item", xml).each(function getFans(id) {
1358
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var label = "", value = 0, min = 0, _min = "", event = "";
1359
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
label = $(this).attr("Label");
1360
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
value = parseFloat($(this).attr("Value"));
1361
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
min = parseFloat($(this).attr("Min"));
1362
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (isFinite(min))
1363
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
_min = round(min,0) + "&nbsp;" + genlang(63);
1364
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
event = $(this).attr("Event");
1365
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (event !== undefined)
1366
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
label += " <img style=\"vertical-align: middle; width:16px;\" src=\"./gfx/attention.gif\" alt=\"!\" title=\""+event+"\"/>";
1367
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#fansTable tbody").append("<tr><td>" + label + "</td><td class=\"right\">" + round(value,0) + "&nbsp;" + genlang(63) + "</td><td class=\"right\">" + _min + "</td></tr>");
1368
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
values = true;
1369
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1370
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (values) {
1371
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#fans").show();
1372
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1373
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#fans").hide();
1374
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1375
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1376
 
1377
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1378
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* (re)fill the power block with the values from the given xml<br><br>
1379
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* build the power information into a separate block, if there is no power information available the
1380
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* entire table will be removed to avoid HTML warnings
1381
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {jQuery} xml phpSysInfo-XML
1382
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1383
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function refreshPower(xml) {
1384
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('power', blocks) < 0))) {
1385
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#power").remove();
1386
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return;
1387
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1388
 
1389
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var values = false;
1390
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#powerTable tbody").empty();
1391
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("MBInfo Power Item", xml).each(function getPowers(id) {
1392
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var label = "", value = "", limit = 0, _limit = "", event = "";
1393
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
label = $(this).attr("Label");
1394
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
value = $(this).attr("Value");
1395
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
limit = parseFloat($(this).attr("Max"));
1396
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (isFinite(limit))
1397
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
_limit = round(limit, 2) + "&nbsp;" + genlang(103);
1398
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
event = $(this).attr("Event");
1399
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (event !== undefined)
1400
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
label += " <img style=\"vertical-align: middle; width:16px;\" src=\"./gfx/attention.gif\" alt=\"!\" title=\""+event+"\"/>";
1401
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#powerTable tbody").append("<tr><td>" + label + "</td><td class=\"right\">" + round(value, 2) + "&nbsp;" + genlang(103) + "</td><td class=\"right\">" + _limit + "</td></tr>");
1402
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
values = true;
1403
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1404
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (values) {
1405
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#power").show();
1406
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1407
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#power").hide();
1408
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1409
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1410
 
1411
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1412
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* (re)fill the current block with the values from the given xml<br><br>
1413
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* build the current information into a separate block, if there is no current information available the
1414
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* entire table will be removed to avoid HTML warnings
1415
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {jQuery} xml phpSysInfo-XML
1416
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1417
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function refreshCurrent(xml) {
1418
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('current', blocks) < 0))) {
1419
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#current").remove();
1420
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return;
1421
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1422
 
1423
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var values = false;
1424
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#currentTable tbody").empty();
1425
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("MBInfo Current Item", xml).each(function getCurrents(id) {
1426
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var label = "", value = "", min = 0, max = 0, _min = "", _max = "", event = "";
1427
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
label = $(this).attr("Label");
1428
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
value = $(this).attr("Value");
1429
 
1430
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
max = parseFloat($(this).attr("Max"));
1431
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (isFinite(max))
1432
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
_max = round(max, 2) + "&nbsp;" + genlang(106);
1433
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
min = parseFloat($(this).attr("Min"));
1434
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (isFinite(min))
1435
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
_min = round(min, 2) + "&nbsp;" + genlang(106);
1436
 
1437
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
event = $(this).attr("Event");
1438
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (event !== undefined)
1439
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
label += " <img style=\"vertical-align: middle; width:16px;\" src=\"./gfx/attention.gif\" alt=\"!\" title=\""+event+"\"/>";
1440
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#currentTable tbody").append("<tr><td>" + label + "</td><td class=\"right\">" + round(value, 2) + "&nbsp;" + genlang(106) + "</td><td class=\"right\">" + _min + "</td><td class=\"right\">" + _max + "</td></tr>");
1441
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
values = true;
1442
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1443
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (values) {
1444
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#current").show();
1445
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1446
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#current").hide();
1447
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1448
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1449
 
1450
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1451
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* (re)fill the other block with the values from the given xml<br><br>
1452
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* build the other information into a separate block, if there is no other information available the
1453
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* entire table will be removed to avoid HTML warnings
1454
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {jQuery} xml phpSysInfo-XML
1455
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1456
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function refreshOther(xml) {
1457
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('other', blocks) < 0))) {
1458
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#other").remove();
1459
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return;
1460
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1461
 
1462
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var values = false;
1463
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#otherTable tbody").empty();
1464
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("MBInfo Other Item", xml).each(function getOthers(id) {
1465
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var label = "", value = "", event = "";
1466
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
label = $(this).attr("Label");
1467
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
value = $(this).attr("Value");
1468
 
1469
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
event = $(this).attr("Event");
1470
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (event !== undefined)
1471
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
label += " <img style=\"vertical-align: middle; width:16px;\" src=\"./gfx/attention.gif\" alt=\"!\" title=\""+event+"\"/>";
1472
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#otherTable tbody").append("<tr><td>" + label + "</td><td class=\"right\">" + value + "</td></tr>");
1473
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
values = true;
1474
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1475
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (values) {
1476
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#other").show();
1477
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1478
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#other").hide();
1479
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1480
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1481
 
1482
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1483
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* (re)fill the ups block with the values from the given xml<br><br>
1484
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* build the ups information into a separate block, if there is no ups information available the
1485
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* entire table will be removed to avoid HTML warnings
1486
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {jQuery} xml phpSysInfo-XML
1487
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1488
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function refreshUps(xml) {
1489
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ((blocks.length <= 0) || ((blocks[0] !== "true") && ($.inArray('ups', blocks) < 0))) {
1490
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#ups").remove();
1491
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return;
1492
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1493
 
1494
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var add_apcupsd_cgi_links = ($("[ApcupsdCgiLinks='1']", xml).length > 0);
1495
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var html = "", tree = [], closed = [], index = 0, values = false;
1496
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<h2>" + genlang(68) + "</h2>\n";
1497
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += " <div style=\"overflow-x:auto;\">\n";
1498
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += " <table class=\"tablemain\" id=\"UPSTree\">\n";
1499
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += " <tbody class=\"tree\">\n";
1500
 
1501
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#ups").empty();
1502
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("UPSInfo UPS", xml).each(function getUps(id) {
1503
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var name = "", model = "", mode = "", start_time = "", upsstatus = "", temperature = "", outages_count = "", last_outage = "", last_outage_finish = "", line_voltage = "", line_frequency = "", load_percent = "", battery_date = "", battery_voltage = "", battery_charge_percent = "", time_left_minutes = "";
1504
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
name = $(this).attr("Name");
1505
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
model = $(this).attr("Model");
1506
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
mode = $(this).attr("Mode");
1507
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
start_time = $(this).attr("StartTime");
1508
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
upsstatus = $(this).attr("Status");
1509
 
1510
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
temperature = $(this).attr("Temperature");
1511
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
outages_count = $(this).attr("OutagesCount");
1512
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
last_outage = $(this).attr("LastOutage");
1513
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
last_outage_finish = $(this).attr("LastOutageFinish");
1514
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
line_voltage = $(this).attr("LineVoltage");
1515
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
line_frequency = $(this).attr("LineFrequency");
1516
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
load_percent = parseInt($(this).attr("LoadPercent"), 10);
1517
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
battery_date = $(this).attr("BatteryDate");
1518
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
battery_voltage = $(this).attr("BatteryVoltage");
1519
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
battery_charge_percent = parseInt($(this).attr("BatteryChargePercent"), 10);
1520
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
time_left_minutes = $(this).attr("TimeLeftMinutes");
1521
 
1522
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (mode !== undefined) {
1523
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td colspan=\"2\"><div class=\"treediv\"><span class=\"treespanbold\">" + name + " (" + mode + ")</span></div></td></tr>\n";
1524
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1525
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td colspan=\"2\"><div class=\"treediv\"><span class=\"treespanbold\">" + name + "</span></div></td></tr>\n";
1526
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1527
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
index = tree.push(0);
1528
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (model !== undefined) {
1529
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(70) + "</span></div></td><td>" + model + "</td></tr>\n";
1530
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1531
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1532
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (start_time !== undefined) {
1533
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(72) + "</span></div></td><td>" + start_time + "</td></tr>\n";
1534
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1535
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1536
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (upsstatus !== undefined) {
1537
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(73) + "</span></div></td><td>" + upsstatus + "</td></tr>\n";
1538
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1539
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1540
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (temperature !== undefined) {
1541
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(84) + "</span></div></td><td>" + temperature + "</td></tr>\n";
1542
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1543
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1544
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (outages_count !== undefined) {
1545
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(74) + "</span></div></td><td>" + outages_count + "</td></tr>\n";
1546
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1547
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1548
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (last_outage !== undefined) {
1549
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(75) + "</span></div></td><td>" + last_outage + "</td></tr>\n";
1550
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1551
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1552
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (last_outage_finish !== undefined) {
1553
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(76) + "</span></div></td><td>" + last_outage_finish + "</td></tr>\n";
1554
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1555
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1556
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (line_voltage !== undefined) {
1557
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(77) + "</span></div></td><td>" + line_voltage + "&nbsp;" + genlang(82) + "</td></tr>\n";
1558
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1559
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1560
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (line_frequency !== undefined) {
1561
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(108) + "</span></div></td><td>" + line_frequency + "&nbsp;" + genlang(109) + "</td></tr>\n";
1562
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1563
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1564
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (!isNaN(load_percent)) {
1565
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(78) + "</span></div></td><td>" + createBar(load_percent) + "</td></tr>\n";
1566
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1567
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1568
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (battery_date !== undefined) {
1569
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(104) + "</span></div></td><td>" + battery_date + "</td></tr>\n";
1570
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1571
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1572
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (battery_voltage !== undefined) {
1573
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(79) + "</span></div></td><td>" + battery_voltage + "&nbsp;" + genlang(82) + "</td></tr>\n";
1574
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1575
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1576
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (!isNaN(battery_charge_percent)) {
1577
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(80) + "</span></div></td><td>" + createBar(battery_charge_percent) + "</td></tr>\n";
1578
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1579
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1580
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (time_left_minutes !== undefined) {
1581
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += "<tr><td style=\"width:160px\"><div class=\"treediv\"><span class=\"treespan\">" + genlang(81) + "</span></div></td><td>" + time_left_minutes + "&nbsp;" + genlang(83) + "</td></tr>\n";
1582
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
tree.push(index);
1583
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1584
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
values=true;
1585
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1586
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += " </tbody>\n";
1587
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += " </table>\n";
1588
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += " </div>\n";
1589
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (add_apcupsd_cgi_links){
1590
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
html += " (<a title='details' href='/cgi-bin/apcupsd/multimon.cgi' target='apcupsdcgi'>" + genlang(99) + "</a>)\n";
1591
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1592
 
1593
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#ups").append(html);
1594
 
1595
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (values) {
1596
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#UPSTree").jqTreeTable(tree, {
1597
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
openImg: "./gfx/treeTable/tv-collapsable.gif",
1598
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
shutImg: "./gfx/treeTable/tv-expandable.gif",
1599
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
leafImg: "./gfx/treeTable/tv-item.gif",
1600
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
lastOpenImg: "./gfx/treeTable/tv-collapsable-last.gif",
1601
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
lastShutImg: "./gfx/treeTable/tv-expandable-last.gif",
1602
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
lastLeafImg: "./gfx/treeTable/tv-item-last.gif",
1603
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
vertLineImg: "./gfx/treeTable/vertline.gif",
1604
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
blankImg: "./gfx/treeTable/blank.gif",
1605
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
collapse: closed,
1606
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
column: 0,
1607
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
striped: true,
1608
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
highlight: false,
1609
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
state: false
1610
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1611
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#ups").show();
1612
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1613
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#ups").hide();
1614
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1615
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1616
 
1617
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1618
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* reload the page, this means all values are refreshed
1619
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1620
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function reload(initiate) {
1621
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$.ajax({
1622
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
url: 'xml.php',
1623
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
dataType: 'xml',
1624
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
error: function error() {
1625
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ((typeof(initiate) === 'boolean') && (initiate === true)) {
1626
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$.jGrowl("Error loading XML document!", {
1627
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
sticky: true
1628
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1629
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1630
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$.jGrowl("Error loading XML document!");
1631
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1632
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
},
1633
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
success: function buildblocks(xml) {
1634
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ((typeof(initiate) === 'boolean') && (initiate === true)) {
1635
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
populateErrors(xml);
1636
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1637
 
1638
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refreshVitals(xml);
1639
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refreshHardware(xml);
1640
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refreshMemory(xml);
1641
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refreshFilesystems(xml);
1642
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refreshNetwork(xml);
1643
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refreshVoltage(xml);
1644
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refreshCurrent(xml);
1645
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refreshTemp(xml);
1646
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refreshFans(xml);
1647
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refreshPower(xml);
1648
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refreshOther(xml);
1649
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refreshUps(xml);
1650
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
changeLanguage();
1651
 
1652
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ((typeof(initiate) === 'boolean') && (initiate === true)) {
1653
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
displayPage(xml);
1654
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
settimer(xml);
1655
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1656
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
for (var i = 0; i < plugin_liste.length; i++) {
1657
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
try {
1658
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
//dynamic call
1659
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
window[plugin_liste[i].toLowerCase() + '_request']();
1660
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1661
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
catch (err) {
1662
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1663
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1664
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1665
 
1666
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$('.stripeMe tr:nth-child(even)').addClass('even');
1667
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1668
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1669
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1670
 
1671
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1672
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* set a reload timer for the page
1673
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {jQuery} xml phpSysInfo-XML
1674
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1675
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function settimer(xml) {
1676
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("Options", xml).each(function getRefreshTime(id) {
1677
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var options, refresh = "";
1678
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
options = $("Options", xml).get(id);
1679
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
refresh = $(this).attr("refresh");
1680
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (refresh !== '0') {
1681
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$.timer(refresh, reload);
1682
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1683
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1684
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1685
 
1686
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$(document).ready(function buildpage() {
1687
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var i = 0, old_template = null, cookie_template = null, cookie_language = null, blocktmp = "";
1688
 
1689
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
showCPUListExpanded = $("#showCPUListExpanded").val().toString()==="true";
1690
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
showCPUInfoExpanded = $("#showCPUInfoExpanded").val().toString()==="true";
1691
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
showNetworkInfosExpanded = $("#showNetworkInfosExpanded").val().toString()==="true";
1692
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
showMemoryInfosExpanded = $("#showMemoryInfosExpanded").val().toString()==="true";
1693
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
showCPULoadCompact = $("#showCPULoadCompact").val().toString()==="true";
1694
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
switch ($("#showNetworkActiveSpeed").val().toString()) {
1695
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
case "bps": showNetworkActiveSpeed = 2;
1696
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
break;
1697
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
case "true": showNetworkActiveSpeed = 1;
1698
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
break;
1699
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
default: showNetworkActiveSpeed = 0;
1700
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1701
 
1702
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
blocktmp = $("#blocks").val().toString();
1703
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (blocktmp.length >0 ){
1704
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (blocktmp === "true") {
1705
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
blocks[0] = "true";
1706
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1707
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
blocks = blocktmp.split(',');
1708
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var j = 2;
1709
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
for (i = 0; i < blocks.length; i++) {
1710
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ($("#"+blocks[i]).length > 0) {
1711
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#output").children().eq(j).before($("#"+blocks[i]));
1712
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
j++;
1713
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1714
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1715
 
1716
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1717
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1718
 
1719
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ($("#language option").length < 2) {
1720
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
current_language = $("#language").val().toString();
1721
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/*
1722
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
changeLanguage();
1723
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
for (i = 0; i < plugin_liste.length; i++) {
1724
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
changeLanguage(plugin_liste[i]);
1725
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1726
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1727
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1728
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
cookie_language = readCookie("psi_language");
1729
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (cookie_language !== null) {
1730
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
current_language = cookie_language;
1731
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#language").val(current_language);
1732
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1733
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
current_language = $("#language").val().toString();
1734
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1735
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/*
1736
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
changeLanguage();
1737
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
for (i = 0; i < plugin_liste.length; i++) {
1738
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
changeLanguage(plugin_liste[i]);
1739
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1740
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1741
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$('#language').show();
1742
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$('span[class=lang_045]').show();
1743
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#language").change(function changeLang() {
1744
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var i = 0;
1745
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
current_language = $("#language").val().toString();
1746
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
createCookie('psi_language', current_language, 365);
1747
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
changeLanguage();
1748
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
for (i = 0; i < plugin_liste.length; i++) {
1749
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
changeLanguage(plugin_liste[i]);
1750
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1751
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return false;
1752
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1753
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1754
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ($("#template option").length < 2) {
1755
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
switchStyle($("#template").val().toString());
1756
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1757
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
cookie_template = readCookie("psi_template");
1758
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (cookie_template !== null) {
1759
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
old_template = $("#template").val();
1760
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#template").val(cookie_template);
1761
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ($("#template").val() === null) {
1762
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#template").val(old_template);
1763
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1764
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1765
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
switchStyle($("#template").val().toString());
1766
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$('#template').show();
1767
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$('span[class=lang_044]').show();
1768
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#template").change(function changeTemplate() {
1769
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
switchStyle($("#template").val().toString());
1770
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
createCookie('psi_template', $("#template").val().toString(), 365);
1771
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return false;
1772
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1773
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1774
 
1775
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
filesystemtable();
1776
 
1777
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
reload(true);
1778
 
1779
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
$("#errors").nyroModal();
1780
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
});
1781
 
1782
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
jQuery.fn.dataTableExt.oSort['span-string-asc'] = function sortStringAsc(a, b) {
1783
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var x = "", y = "";
1784
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
x = a.substring(a.indexOf(">") + 1, a.indexOf("</"));
1785
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
y = b.substring(b.indexOf(">") + 1, b.indexOf("</"));
1786
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
1787
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
};
1788
 
1789
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
jQuery.fn.dataTableExt.oSort['span-string-desc'] = function sortStringDesc(a, b) {
1790
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var x = "", y = "";
1791
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
x = a.substring(a.indexOf(">") + 1, a.indexOf("</"));
1792
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
y = b.substring(b.indexOf(">") + 1, b.indexOf("</"));
1793
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
1794
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
};
1795
 
1796
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
jQuery.fn.dataTableExt.oSort['span-number-asc'] = function sortNumberAsc(a, b) {
1797
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var x = 0, y = 0;
1798
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
x = parseInt(a.substring(a.indexOf(">") + 1, a.indexOf("</")), 10);
1799
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
y = parseInt(b.substring(b.indexOf(">") + 1, b.indexOf("</")), 10);
1800
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
1801
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
};
1802
 
1803
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
jQuery.fn.dataTableExt.oSort['span-number-desc'] = function sortNumberDesc(a, b) {
1804
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var x = 0, y = 0;
1805
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
x = parseInt(a.substring(a.indexOf(">") + 1, a.indexOf("</")), 10);
1806
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
y = parseInt(b.substring(b.indexOf(">") + 1, b.indexOf("</")), 10);
1807
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
1808
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
};
1809
 
1810
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
jQuery.fn.dataTableExt.oSort['span-ip-asc'] = function sortIpAsc(a, b) {
1811
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var x = 0, y = 0, aa = "", bb = "";
1812
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
aa = a.substring(a.indexOf(">") + 1, a.indexOf("</"));
1813
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
bb = b.substring(b.indexOf(">") + 1, b.indexOf("</"));
1814
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
x = full_addr(aa);
1815
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
y = full_addr(bb);
1816
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ((x === '') || (y === '')) {
1817
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
x = aa;
1818
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
y = bb;
1819
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1820
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
1821
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
};
1822
 
1823
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
jQuery.fn.dataTableExt.oSort['span-ip-desc'] = function sortIpDesc(a, b) {
1824
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var x = 0, y = 0, aa = "", bb = "";
1825
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
aa = a.substring(a.indexOf(">") + 1, a.indexOf("</"));
1826
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
bb = b.substring(b.indexOf(">") + 1, b.indexOf("</"));
1827
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
x = full_addr(aa);
1828
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
y = full_addr(bb);
1829
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ((x === '') || (y === '')) {
1830
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
x = aa;
1831
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
y = bb;
1832
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1833
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return ((x < y) ? 1 : ((x > y) ? -1 : 0));
1834
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
};
1835
 
1836
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function full_addr(ip_string) {
1837
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var wrongvalue = false;
1838
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
ip_string = $.trim(ip_string).toLowerCase();
1839
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
// ipv4 notation
1840
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (ip_string.match(/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$)/)) {
1841
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
ip_string ='::ffff:' + ip_string;
1842
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1843
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
// replace ipv4 address if any
1844
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var ipv4 = ip_string.match(/(.*:)([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$)/);
1845
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (ipv4) {
1846
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
ip_string = ipv4[1];
1847
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
ipv4 = ipv4[2].match(/[0-9]+/g);
1848
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
for (var i = 0;i < 4;i ++) {
1849
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var byte = parseInt(ipv4[i],10);
1850
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (byte<256) {
1851
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
ipv4[i] = ("0" + byte.toString(16)).substr(-2);
1852
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1853
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
wrongvalue = true;
1854
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
break;
1855
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1856
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1857
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (wrongvalue) {
1858
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
ip_string = '';
1859
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1860
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
ip_string += ipv4[0] + ipv4[1] + ':' + ipv4[2] + ipv4[3];
1861
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1862
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1863
 
1864
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (ip_string === '') {
1865
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return '';
1866
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1867
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
// take care of leading and trailing ::
1868
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
ip_string = ip_string.replace(/^:|:$/g, '');
1869
 
1870
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var ipv6 = ip_string.split(':');
1871
 
1872
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
for (var li = 0; li < ipv6.length; li ++) {
1873
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var hex = ipv6[li];
1874
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (hex !== "") {
1875
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (!hex.match(/^[0-9a-f]{1,4}$/)) {
1876
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
wrongvalue = true;
1877
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
break;
1878
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1879
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
// normalize leading zeros
1880
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
ipv6[li] = ("0000" + hex).substr(-4);
1881
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1882
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
else {
1883
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
// normalize grouped zeros ::
1884
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
hex = [];
1885
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
for (var j = ipv6.length; j <= 8; j ++) {
1886
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
hex.push('0000');
1887
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1888
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
ipv6[li] = hex.join(':');
1889
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1890
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1891
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (!wrongvalue) {
1892
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var out = ipv6.join(':');
1893
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (out.length == 39) {
1894
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return out;
1895
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1896
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return '';
1897
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1898
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
} else {
1899
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return '';
1900
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1901
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1902
 
1903
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1904
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* generate the block element for a specific plugin that is available
1905
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {String} plugin name of the plugin
1906
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {Number} translationid id of the translated headline in the plugin translation file
1907
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {Boolean} reload controls if a reload button should be appended to the headline
1908
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @return {String} HTML string which contains the full layout of the block
1909
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1910
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function buildBlock(plugin, translationid, reload) {
1911
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var block = "", reloadpic = "";
1912
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (reload) {
1913
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
reloadpic = "<img id=\"Reload_" + plugin + "Table\" src=\"./gfx/reload.gif\" alt=\"reload\" title=\"reload\" style=\"vertical-align:middle;float:right;cursor:pointer;border:0px;width:16px\" />&nbsp;";
1914
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1915
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
block += "<div id=\"panel_" + plugin + "\" style=\"display:none;\">\n";
1916
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
block += "<div id=\"Plugin_" + plugin + "\" class=\"plugin\" style=\"display:none;\">\n";
1917
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
block += "<h2>" + reloadpic + genlang(translationid, plugin) + "</h2>\n";
1918
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
block += "</div>\n";
1919
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
block += "</div>\n";
1920
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return block;
1921
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1922
 
1923
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1924
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* translate a plugin and add this plugin to the internal plugin-list, this is only needed once and shouldn't be called more than once
1925
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {String} plugin name of the plugin that should be translated
1926
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1927
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function plugin_translate(plugin) {
1928
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
plugin_liste.pushIfNotExist(plugin);
1929
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
changeLanguage(plugin);
1930
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1931
 
1932
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1933
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* generate a formatted datetime string of the current datetime
1934
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @return {String} formatted datetime string
1935
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1936
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function datetime() {
1937
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var date, day = 0, month = 0, year = 0, hour = 0, minute = 0, days = "", months = "", years = "", hours = "", minutes = "";
1938
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
date = new Date();
1939
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
day = date.getDate();
1940
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
month = date.getMonth() + 1;
1941
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
year = date.getFullYear();
1942
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
hour = date.getHours();
1943
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
minute = date.getMinutes();
1944
 
1945
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
// format values smaller that 10 with a leading 0
1946
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
days = (day < 10) ? "0" + day.toString() : day.toString();
1947
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
months = (month < 10) ? "0" + month.toString() : month.toString();
1948
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
years = (year < 1000) ? year.toString() : year.toString();
1949
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
minutes = (minute < 10) ? "0" + minute.toString() : minute.toString();
1950
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
hours = (hour < 10) ? "0" + hour.toString() : hour.toString();
1951
 
1952
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return days + "." + months + "." + years + " - " + hours + ":" + minutes;
1953
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1954
 
1955
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
Array.prototype.pushIfNotExist = function(val) {
1956
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if (typeof(val) == 'undefined' || val === '') {
1957
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
return;
1958
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1959
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
val = $.trim(val);
1960
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
if ($.inArray(val, this) == -1) {
1961
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
this.push(val);
1962
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1963
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
};
1964
 
1965
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1966
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* insert dynamically a js script file into the website
1967
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {String} name name of the script that should be included
1968
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1969
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/*
1970
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function appendjs(name) {
1971
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var scrptE, hdEl;
1972
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
scrptE = document.createElement("script");
1973
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
hdEl = document.getElementsByTagName("head")[0];
1974
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
scrptE.setAttribute("src", name);
1975
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
scrptE.setAttribute("type", "text/javascript");
1976
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
hdEl.appendChild(scrptE);
1977
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1978
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1979
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/**
1980
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* insert dynamically a css file into the website
1981
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
* @param {String} name name of the css file that should be included
1982
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/
1983
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
/*
1984
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
function appendcss(name) {
1985
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
var scrptE, hdEl;
1986
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
scrptE = document.createElement("link");
1987
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
hdEl = document.getElementsByTagName("head")[0];
1988
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
scrptE.setAttribute("type", "text/css");
1989
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
scrptE.setAttribute("rel", "stylesheet");
1990
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
scrptE.setAttribute("href", name);
1991
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
hdEl.appendChild(scrptE);
1992
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
}
1993
< 1000)) {

<= 0) || ((blocks[0] !== "true") && ($.inArray('temperature', blocks) < 0))) {< 0))) {
*/