403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.216.144
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : www ( 1000)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/wp.3/wp-content/plugins/wp-statistics/assets/dev/javascript/pages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.3/wp-content/plugins/wp-statistics/assets/dev/javascript/pages/content-analytics.js
if (wps_js.isset(wps_js.global, 'request_params', 'page') && wps_js.global.request_params.page === "content-analytics") {

    const wpStatisticsContentAnalytics = {
        data: [],

        init: function () {
            if (typeof Wp_Statistics_Content_Analytics_Object == "undefined") {
                console.log('Variable Wp_Statistics_Content_Analytics_Object not found.');
                return;
            }

            this.data = Wp_Statistics_Content_Analytics_Object;
            this.generateCharts();
            const toggleContentButton = document.querySelector('.js-toggle-content-tags');
            if (toggleContentButton) {
                toggleContentButton.addEventListener('click', function (event) {
                    event.preventDefault(); // Prevent the default link behavior

                    const extraTags = document.querySelectorAll('.extra-item');
                    extraTags.forEach(tag => tag.classList.toggle('show'));
                    toggleContentButton.classList.toggle('toggled');
                    if (toggleContentButton.classList.contains('toggled')) {
                        toggleContentButton.textContent = wps_js._('show_less');
                    } else {
                        toggleContentButton.textContent = wps_js._('show_more');
                    }
                });
            }
        },
        generateCharts: function () {
            if (document.getElementById('performance-chart')) this.generatePerformanceChart();
            if (document.getElementById('performance-chart-single')) this.generatePerformanceChartSingle();
            if (document.getElementById('content_operating_systems')) this.generateOperatingSystemChart();
            if (document.getElementById('content_browsers')) this.generateBrowsersChartData();
            if (document.getElementById('content_device_models')) this.generateDeviceModelsChart();
            if (document.getElementById('content_device_usage')) this.generateDeviceUsageChart();
            if (document.getElementById('content-search-engines-chart')) this.generateSearchEngineChart();
        },
        generatePerformanceChart: function () {
            const performanceData = this.data.performance_chart_data;
            if (!performanceData.data.datasets || performanceData.data.datasets.length == 0) {
                jQuery('#performance-chart').parent().html(wps_js.no_results());
            } else {
                wps_js.new_line_chart(performanceData, 'performance-chart', null, 'performance');
            }
        },
        generateOperatingSystemChart: function () {
            const operatingSystemData = this.data.os_chart_data;
            if (!operatingSystemData.data || operatingSystemData.data.length == 0) {
                jQuery('#content_operating_systems').parent().html(wps_js.no_results());
            } else {
                wps_js.horizontal_bar('content_operating_systems', operatingSystemData.labels, operatingSystemData.data, operatingSystemData.icons);
            }
        },
        generateBrowsersChartData: function () {
            const browsersData = this.data.browser_chart_data;
            if (!browsersData.data || browsersData.data.length == 0) {
                jQuery('#content_browsers').parent().html(wps_js.no_results());

            } else {
                wps_js.horizontal_bar('content_browsers', browsersData.labels, browsersData.data, browsersData.icons);
            }
        },
        generateDeviceModelsChart: function () {
            const deviceModelData = this.data.model_chart_data;
            if (!deviceModelData.data || deviceModelData.data.length == 0) {
                jQuery('#content_device_models').parent().html(wps_js.no_results());

            } else {
                wps_js.horizontal_bar('content_device_models', deviceModelData.labels, deviceModelData.data, null);
            }
        },
        generateDeviceUsageChart: function () {
            const deviceUsageData = this.data.device_chart_data;
            if (!deviceUsageData.data || deviceUsageData.data.length == 0) {
                jQuery('#content_device_usage').parent().html(wps_js.no_results());

            } else {
                wps_js.horizontal_bar('content_device_usage', deviceUsageData.labels, deviceUsageData.data, null);
            }
        },
        generateSearchEngineChart: function () {
            const searchData = this.data.search_engine_chart_data;
            if (!searchData.data.datasets || searchData.data.datasets.length == 0) {
                jQuery('#content-search-engines-chart').parent().html(wps_js.no_results());
                jQuery('.wps-postbox-chart--data').remove();
            } else {
                 wps_js.new_line_chart(searchData, 'content-search-engines-chart')
            }
        },
        generatePerformanceChartSingle: function () {
            const performanceSingleData = this.data.performance_chart_data;
            if (!performanceSingleData.data.datasets || performanceSingleData.data.datasets.length == 0) {
                jQuery('#performance-chart-single').parent().html(wps_js.no_results());
            } else {
                wps_js.new_line_chart(performanceSingleData, 'performance-chart-single', null, 'performance');
            }
        }
    }

    jQuery(document).ready(function () {
        wpStatisticsContentAnalytics.init();
    });
}

Youez - 2016 - github.com/yon3zu
LinuXploit