403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/mastersystem.app/public/wp-content/plugins/koko-analytics/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/mastersystem.app/public/wp-content/plugins/koko-analytics/src/Dashboard_Public.php
<?php

namespace KokoAnalytics;

class Dashboard_Public extends Dashboard
{
    public function get_base_url()
    {
        if (get_option('permalink_structure', false)) {
            return home_url('/koko-analytics-dashboard/');
        }

        return add_query_arg(['koko-analytics-dashboard' => ''], home_url());
    }

    public function show()
    {
        $settings = get_settings();
        if (!$settings['is_dashboard_public'] && !current_user_can('view_koko_analytics')) {
            return;
        }

        // don't serve public dashboard to anything that looks like a bot or crawler
        if (empty($_SERVER['HTTP_USER_AGENT']) || \preg_match("/bot|crawl|spider/", strtolower($_SERVER['HTTP_USER_AGENT']))) {
            return;
        }

        do_action('koko_analytics_public_dashboard_headers');

        header("Content-Type: text/html; charset=utf-8");
        header("X-Robots-Tag: noindex, nofollow");
        if (is_user_logged_in()) {
            header("Cache-Control: no-store, must-revalidate, no-cache, max-age=0, private");
        } elseif (isset($_GET['end_date'], $_GET['start_date']) && $_GET['end_date'] < date('Y-m-d')) {
            header("Cache-Control: public, max-age=68400");
        } else {
            header("Cache-Control: public, max-age=60");
        }

        require KOKO_ANALYTICS_PLUGIN_DIR . '/src/Resources/views/dashboard-public.php';
        exit;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit