403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/myschool/triamudom/tuprblearn/admin/tool/spamcleaner/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/myschool/triamudom/tuprblearn/admin/tool/spamcleaner/module.js
M.tool_spamcleaner = {
    Y: null,
    row: null,
    me: null,

    del_all: function() {
        var context = M.tool_spamcleaner;

        var yes = confirm(M.util.get_string('spamdeleteallconfirm', 'tool_spamcleaner'));
        if (yes) {
            var cfg = {
                method: "POST",
                on: {
                    success : function(id, o, args) {
                        try {
                            var resp = context.Y.JSON.parse(o.responseText);
                        } catch(e) {
                            alert(M.util.get_string('spaminvalidresult', 'tool_spamcleaner'));
                            return;
                        }
                        if (resp == true) {
                            window.location.href=window.location.href;
                        }
                    }
                }
            };
            context.Y.io(context.me+'?delall=yes&sesskey='+M.cfg.sesskey, cfg);
        }
    },

    del_user: function(obj, id) {
        var context = M.tool_spamcleaner;

        if (context.Y == null) {
            // not initialised yet
            return;
        }

        var yes = confirm(M.util.get_string('spamdeleteconfirm', 'tool_spamcleaner'));
        if (yes) {
            context.row = obj;
            var cfg = {
                method: "POST",
                on: {
                    success : function(id, o, args) {
                        try {
                            var resp = context.Y.JSON.parse(o.responseText);
                        } catch(e) {
                            alert(M.util.get_string('spaminvalidresult', 'tool_spamcleaner'));
                            return;
                        }
                        if (context.row) {
                            if (resp == true) {
                                while(context.row.tagName != 'TR') {
                                    context.row = context.row.parentNode;
                                }
                                context.row.parentNode.removeChild(context.row);
                                context.row = null;
                            } else {
                                alert(M.util.get_string('spamcannotdelete', 'tool_spamcleaner'));
                            }
                        }
                    }
                }
            }
            context.Y.io(context.me+'?del=yes&sesskey='+M.cfg.sesskey+'&id='+id, cfg);
        }
    },

    ignore_user: function(obj, id) {
        var context = M.tool_spamcleaner;

        if (context.Y == null) {
            // not initilised yet
            return;
        }

        context.row = obj;
        var cfg = {
            method: "POST",
            on: {
                success : function(id, o, args) {
                    try {
                        var resp = context.Y.JSON.parse(o.responseText);
                    } catch(e) {
                        alert(M.util.get_string('spaminvalidresult', 'tool_spamcleaner'));
                        return;
                    }
                    if (context.row) {
                        if (resp == true){
                            while(context.row.tagName != 'TR') {
                                context.row = context.row.parentNode;
                            }
                            context.row.parentNode.removeChild(context.row);
                            context.row = null;
                        }
                    }
                }
            }
        }
        context.Y.io(context.me+'?ignore=yes&sesskey='+M.cfg.sesskey+'&id='+id, cfg);
    },

    init: function(Y, me) {
        var context = M.tool_spamcleaner;

        Y.use('json', 'io-base', function (Y) {
            context.Y = Y;
            context.me = me;
            if (Y.one("#removeall_btn")) {
                Y.on("click", context.del_all, "#removeall_btn");
            }
        });
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit