403Webshell
Server IP : 172.67.147.195  /  Your IP : 216.73.216.142
Web Server : Apache/2
System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : mienphi ( 1014)
PHP Version : 8.2.14
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mienphi/public_html/wp-content/plugins/thim-core/admin/assets/js/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mienphi/public_html/wp-content/plugins/thim-core/admin/assets/js/plugins/thim-plugins.js
;'use strict';

var Thim_Plugins = (function ($) {
    var ajax_url = thim_plugins_manager.admin_ajax_action;

    return {
        request: request
    };

    function request(action, slug) {
        window.onbeforeunload = function () {
            return true;
        };

        return $
            .ajax({
                url: ajax_url,
                method: 'POST',
                data: {
                    action: 'thim_plugins_manager',
                    plugin_action: action,
                    slug: slug
                },
                dataType: 'json'
            })
            .error(function (error) {
                console.error(error);
            });
    }
})(jQuery);

var Thim_Plugins_Queue = (function ($) {
    var actions = [];
    var is_running = false;
    var callback_success = false;
    var callback_error = false;
    var callback_complete = false;

    return {
        push: push,
        success: success,
        error: error,
        complete: complete,
        count: count
    };

    function count() {
        return actions.length;
    }

    function complete(cb) {
        callback_complete = cb;
    }

    function error(cb) {
        callback_error = cb;
    }

    /**
     * Add callback function when action success.
     * @param cb
     */
    function success(cb) {
        callback_success = cb;
    }

    /**
     * Push to queue actions
     * @param object ; {action: '', slug: ''}
     */
    function push(object) {
        actions.push(object);

        if (!is_running) {
            _run();
        }
    }

    /**
     * Run action
     * @private
     */
    function _run() {
        is_running = true;

        if (!actions.length) {
            is_running = false;
            return;
        }
        var first = actions[0];

        Thim_Plugins.request(first.action, first.slug)
            .success(function (response) {
                if (callback_success) {
                    callback_success(response, first);
                }
            })
            .complete(function () {
                if (callback_complete) {
                    callback_complete(first);
                }

                window.onbeforeunload = null;
                _next();
            })
            .error(function (error) {
                if (callback_error) {
                    callback_error(first, error);
                }
            });
    }

    /**
     * Next action
     * @private
     */
    function _next() {
        is_running = false;
        actions.shift();

        _run();
    }
})(jQuery);

Youez - 2016 - github.com/yon3zu
LinuXploit