Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/confenda.com/wp-content/plugins/gallery-photo-gallery/admin/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/confenda.com/wp-content/plugins/gallery-photo-gallery/admin/js/admin.js
(function($) {
    'use strict';   
    $(document).on('click', '[data-slug="gallery-photo-gallery"] .deactivate a', function () {    
        swal({
            html:"<h2>Do you want to upgrade to Pro version or permanently delete the plugin?</h2><ul><li>Upgrade: Your data will be saved for upgrade.</li><li>Deactivate: Your data will be deleted completely.</li></ul>",
            footer: '<a href="javascript:void(0);" class="ays-gallery-photo-gallery-temporary-deactivation">Temporary deactivation</a>',
            type: 'question',
            showCloseButton: true,
            showCancelButton: true,
            allowOutsideClick: false,
            allowEscapeKey: false,
            allowEnterKey: false,
            confirmButtonColor: '#3085D6',
            cancelButtonColor: '#d33',
            confirmButtonText: 'Upgrade',
            cancelButtonText: 'Deactivate',
            confirmButtonClass: "ays-gallery-photo-gallery-upgrade-button"
        }).then(function(result) {
            if( result.dismiss && result.dismiss == 'close' ){
                return false;
            }
            var upgrade_plugin = false;
            if (result.value) upgrade_plugin = true;
            var data = {action: 'deactivate_plugin_option_pm', upgrade_plugin: upgrade_plugin};
            $.ajax({
                url: ays_gpg_admin_ajax.ajax_url,
                method: 'post',
                dataType: 'json',
                data: data,
                success:function () {
                    window.location = $(document).find('[data-slug="gallery-photo-gallery"]').find('.deactivate').find('a').attr('href');
                }
            });
        });
        return false;
    });
    $(document).on('click', '.ays-gallery-photo-gallery-temporary-deactivation', function (e) {
        e.preventDefault();
        $(document).find('.ays-gallery-photo-gallery-upgrade-button').trigger('click');
    });
})(jQuery);

ZeroDay Forums Mini