403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.117.229.144
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/cwd/themes/open-shop/lib/notification/customizer-notification/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/cwd/themes/open-shop/lib/notification/customizer-notification/customizer.js
jQuery(document).ready(function($) {
    function handlePluginAction(pluginSlug, action) {
        let activetext = '';
        if (action == 'install') {
            activetext = 'Installing...';
        }
        else{
            activetext = 'Activating...';
        }
        $('.ts-themehunk-custom-section span.text').text(activetext);
        $('.ts-themehunk-custom-section .th-loader').css("display", "inline-block");
        $.ajax({
            url: theme_data_customizer.ajax_url,
            type: 'POST',
            data: {
                action: 'open_shop_install_and_activate_callback',
                security: theme_data_customizer.security,
                plugin_slug: pluginSlug
            },
            success: function(response) {
                if (response) {
                    $('#go-to-starter-sites').prop('disabled', false);
                     // $('#go-to-starter-sites').show();
                     // $('.ts-themehunk-custom-section button:nth-of-type(1)').prop('disabled', true).hide();
                     window.location.href = theme_data_customizer.redirectUrl;
                     $('.ts-themehunk-custom-section .th-loader').hide();
                } else {
                    alert('Error: ' + response.data.message);
                }
            },
            error: function(xhr, status, error) {
                $('.ts-themehunk-custom-section .th-loader').hide();
                console.error('Error:', error);
            }
        });
    }

    $('#activate-open-shop-pro').on('click', function(event) {
        event.preventDefault();
        var pluginSlug = $(this).data('slug');
        handlePluginAction(pluginSlug, 'activate');
    });

    $('#activate-hunk-companion').on('click', function(event) {
        event.preventDefault();
        var pluginSlug = $(this).data('slug');
        handlePluginAction(pluginSlug, 'activate');
    });

    $('#install-hunk-companion').on('click', function(event) {
        event.preventDefault();
        var pluginSlug = $(this).data('slug');
        handlePluginAction(pluginSlug, 'install');
    });

    $('#go-to-starter-sites').on('click', function(event) {
        event.preventDefault();
        window.location.href = theme_data_customizer.redirectUrl;
    });
});



Youez - 2016 - github.com/yon3zu
LinuXploit