403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.146
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www2/wp-content/plugins/landing-pages/trunk/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www2/wp-content/plugins/landing-pages/trunk/assets/js/ajax.clearstats.js
jQuery(document).ready(function ($) {

    jQuery('.clear_stats').on('click', function () {

        // define the bulk edit row
        var post_id = this.id.replace('lp_clear_', '');
        var status = 0;
        if (confirm('Are you sure you want to delete the ALL of stats for this landing page? (There is no undo) Alternatively you can clear stats per version.')) {
            jQuery.ajax({
                type: 'POST',
                url: ajaxurl,
                context: this,
                data: {
                    action: 'lp_clear_stats_action',
                    j_rules: status,
                    page_id: post_id
                },

                success: function (data) {
                    var self = this;
                    //alert(data);
                    // jQuery('.lp-form').unbind('submit').submit();
                    jQuery(self).hide();
                    jQuery(self).parent().parent().parent().parent().find(".lp-impress-num, .lp-con-num").text("0");
                    jQuery(self).parent().parent().parent().parent().find(".cr-number").addClass("cr-empty-0").text("0%");
                    //alert("Changes Saved! Refresh the page to see your changes");
                },

                error: function (MLHttpRequest, textStatus, errorThrown) {
                    alert("Ajax not enabled");
                }
            });

            return false;
        }
    });

    jQuery('body').on('click', '.lp-delete-var-stats', function () {
        var post_id = jQuery(this).attr("rel");
        var variation_id = jQuery(this).attr('data-vid');
        var variation_letter = jQuery(this).attr('data-letter');
        var selector = '#lp-variation-' + variation_letter;

        //console.log(selector);
        if (confirm('Are you sure you want to delete stats for variation ' + variation_letter + "?")) {
            jQuery.ajax({
                type: 'POST',
                url: ajaxurl,
                context: this,
                data: {
                    action: 'lp_clear_stats_single',
                    variation: variation_id,
                    page_id: post_id
                },

                success: function (data) {
                    var self = this;
                    jQuery(self).text("Stats Removed!").css("color", "green").removeClass("lp-delete-var-stats").addClass('lp-clear-success');
                    jQuery(selector).find(".stat-span-impressions, .stat-span-conversions").text("0");
                    jQuery(selector).find(".stat-span-conversion_rate").addClass("cr-empty-0").text("0%");

                },

                error: function (MLHttpRequest, textStatus, errorThrown) {
                    alert("Ajax not enabled");
                }
            });

            return false;
        }
    });

});

Youez - 2016 - github.com/yon3zu
LinuXploit