HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/hcv/wp-content/plugins/w3-total-cache/Extension_CloudFlare_View_Comments.js
jQuery(function($) {
    $('.w3tc_cloudflare_ip_check').click(function(e) {
        var href = $(this).attr('href');
        if (href.substr(0, 4) != '#ip=')
            return;

        e.preventDefault();

        var ip = unescape(href.substr(4));
        var tr = $(this).parent().closest('tr');
        var ip_span = tr.find('.cloudflare_ip_check');
        if (ip_span.length <= 0) {
            tr.find('.column-author').append(
                '<span class="cloudflare_ip_check"></span>');
            ip_span = tr.find('.cloudflare_ip_check');
        }

        ip_span.empty();
        $('<img>')
            .attr('class', 'cloudflare_ip_check_img')
            .attr('src', 'images/wpspin_light.gif')
            .attr('alt', 'Resolving IP ' + ip)
            .appendTo(ip_span);

        jQuery.post(ajaxurl, {
            action:'w3tc_cloudflare_ip_check',
            ip: ip
        }, null, 'json')
        .done(function(data) {
            ip_span.empty();
            var className = (data.error ? 'cloudflare_ip_check_error' : 
                'cloudflare_ip_check_success');
            ip_span.html('<span class="' + className + '">' + 
                data.message + '</span>');
        })
        .fail(function() {
            ip_span.html('<span class="cloudflare_ip_check_error">check failed</span>');
        });
    });
});

function w3tc_cloudflare_api_request(action, value, nonce) {
    var email = jQuery('input[id="cloudflare.email"]');
    var key = jQuery('input[id="cloudflare.key"]');
    var zone = jQuery('input[id="cloudflare.zone"]');

    if (!email.val()) {
        alert('Please enter CloudFlare E-Mail.');
        email.focus();
        return false;
    }

    if (!key.val()) {
        alert('Please enter CloudFlare API key.');
        key.focus();
        return false;
    }

    if (!zone.val()) {
        alert('Please enter CloudFlare zone.');
        zone.focus();
        return false;
    }

}