403Webshell
Server IP : 123.56.80.60  /  Your IP : 216.73.216.78
Web Server : Apache/2.4.54 (Win32) OpenSSL/1.1.1s PHP/7.4.33 mod_fcgid/2.3.10-dev
System : Windows NT iZhx3sob14hnz7Z 10.0 build 14393 (Windows Server 2016) i586
User : SYSTEM ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /wamp/apps/phpsysinfo3.4.2/plugins/ps/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /wamp/apps/phpsysinfo3.4.2/plugins/ps/js/ps_bootstrap.js
function renderPlugin_ps(data) {

    var directives = {
        MemoryUsage: {
            html: function () {
                return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.MemoryUsage + '%;"></div>' +
                        '</div><div class="percent">' + this.MemoryUsage + '%</div>';
            }
        },
        CPUUsage: {
            html: function () {
                return '<div class="progress"><div class="progress-bar progress-bar-info" style="width:' + this.CPUUsage + '%;"></div>' +
                        '</div><div class="percent">' + this.CPUUsage + '%</div>';
            }
        },
        Name: {
            html: function () {
                return this.Name.replace(/AAAAAAAA/g, "A<wbr>A<wbr>A<wbr>A<wbr>A<wbr>A<wbr>A<wbr>A<wbr>").replace(/,/g, ",<wbr>").replace(/\s/g, " <wbr>").replace(/\./g, ".<wbr>").replace(/-/g, "<wbr>-").replace(/\//g, "<wbr>/"); /* split long name */
            }
        }
    };

    if (data.Plugins.Plugin_PS !== undefined) {
        var psitems = items(data.Plugins.Plugin_PS.Process);
        if (psitems.length > 0) {

            var html = "", ps_item = [], expanded = 0, memwas = false, cpuwas = false;
            for (var i = 0; i < psitems.length ; i++) {
                ps_item = psitems[i]["@attributes"];

                if (ps_item.ParentID === "0") {
                    html+="<tr id=\"ps-" + (i+1) + "\" class=\"treegrid-ps-" + (i+1) + "\" style=\"display:none;\" >";
                } else {
                    html+="<tr id=\"ps-" + (i+1) + "\" class=\"treegrid-ps-" + (i+1) + " treegrid-parent-ps-" + ps_item.ParentID + "\" style=\"display:none;\" >";
                }
                html+="<td><span class=\"treegrid-span\" data-bind=\"Name\"></span></td>";
                html+="<td><span data-bind=\"PID\"></span></td>";
                html+="<td><span data-bind=\"PPID\"></span></td>";
                html+="<td style=\"width:10%;\"><span data-bind=\"MemoryUsage\"></span></td>";
                html+="<td style=\"width:10%;\"><span data-bind=\"CPUUsage\"></span></td>";
                html+="</tr>";
            }

            $("#ps-data").empty().append(html);

            $('#ps').treegrid({
                initialState: 'expanded',
                expanderExpandedClass: 'normalicon normalicon-down',
                expanderCollapsedClass: 'normalicon normalicon-right'
            });

            for (var j = 0; j < psitems.length ; j++) {
                ps_item = psitems[j]["@attributes"];
                $('#ps-'+(j+1)).render(ps_item, directives);
                if (!memwas && (ps_item.MemoryUsage !== undefined)) {
                    memwas = true;
                }
                if (!cpuwas && (ps_item.CPUUsage !== undefined)) {
                    cpuwas = true;
                }
                expanded = ps_item.Expanded;
                if ((expanded !== undefined) && (expanded === "0")) {
                    $('#ps-'+(j+1)).treegrid('collapse');
                }
            }

            if (memwas) {
                $('#ps td:nth-child(4),#ps th:nth-child(4)').show();
            } else {
                $('#ps td:nth-child(4),#ps th:nth-child(4)').hide();
            }
            if (cpuwas) {
                $('#ps td:nth-child(5),#ps th:nth-child(5)').show();
            } else {
                $('#ps td:nth-child(5),#ps th:nth-child(5)').hide();
            }

            $('#block_ps').show();
        } else {
            $('#block_ps').hide();
        }
    } else {
        $('#block_ps').hide();
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit