!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/vendor/whichbrowser/parser/src/Analyser/   drwxr-xr-x
Free 28.53 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Corrections.php (5.78 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace WhichBrowser\Analyser;

use 
WhichBrowser\Constants;
use 
WhichBrowser\Model\Version;

trait 
Corrections
{
    private function &
applyCorrections()
    {
        if (isset(
$this->data->browser->name) && isset($this->data->browser->using)) {
            
$this->hideBrowserBasedOnUsing();
        }

        if (isset(
$this->data->browser->name) && isset($this->data->os->name)) {
            
$this->hideBrowserBasedOnOperatingSystem();
        }

        if (isset(
$this->data->browser->name) && $this->data->device->type == Constants\DeviceType::TELEVISION) {
            
$this->hideBrowserOnDeviceTypeTelevision();
        }

        if (isset(
$this->data->browser->name) && $this->data->device->type == Constants\DeviceType::GAMING) {
            
$this->hideBrowserOnDeviceTypeGaming();
        }

        if (
$this->data->device->type == Constants\DeviceType::TELEVISION) {
            
$this->hideOsOnDeviceTypeTelevision();
        }

        if (isset(
$this->data->browser->name) && isset($this->data->engine->name)) {
            
$this->fixMidoriEngineName();
        }

        if (isset(
$this->data->browser->name) && isset($this->data->engine->name)) {
            
$this->fixNineSkyEngineName();
        }

        if (isset(
$this->data->browser->name) && isset($this->data->browser->family)) {
            
$this->hideFamilyIfEqualToBrowser();
        }

        return 
$this;
    }


    private function 
hideFamilyIfEqualToBrowser()
    {
        if (
$this->data->browser->name == $this->data->browser->family->name) {
            unset(
$this->data->browser->family);
        }
    }

    private function 
fixMidoriEngineName()
    {
        if (
$this->data->browser->name == 'Midori' && $this->data->engine->name != 'Webkit') {
            
$this->data->engine->name 'Webkit';
            
$this->data->engine->version null;
        }
    }

    private function 
fixNineSkyEngineName()
    {
        if (
$this->data->browser->name == 'NineSky' && $this->data->engine->name != 'Webkit') {
            
$this->data->engine->name 'Webkit';
            
$this->data->engine->version null;
        }
    }

    private function 
hideBrowserBasedOnUsing()
    {
        if (
$this->data->browser->name == 'Chrome') {
            if (
$this->data->browser->isUsing('Electron') || $this->data->browser->isUsing('Qt')) {
                unset(
$this->data->browser->name);
                unset(
$this->data->browser->version);
            }
        }
    }

    private function 
hideBrowserBasedOnOperatingSystem()
    {
        if (
$this->data->os->name == 'Series60' && $this->data->browser->name == 'Internet Explorer') {
            
$this->data->browser->reset();
            
$this->data->engine->reset();
        }

        if (
$this->data->os->name == 'Series80' && $this->data->browser->name == 'Internet Explorer') {
            
$this->data->browser->reset();
            
$this->data->engine->reset();
        }

        if (
$this->data->os->name == 'Lindows' && $this->data->browser->name == 'Internet Explorer') {
            
$this->data->browser->reset();
            
$this->data->engine->reset();
        }

        if (
$this->data->os->name == 'Tizen' && $this->data->browser->name == 'Chrome') {
            
$this->data->browser->reset([
                
'family' => isset($this->data->browser->family) ? $this->data->browser->family null
            
]);
        }

        if (
$this->data->os->name == 'Ubuntu Touch' && $this->data->browser->name == 'Chromium') {
            
$this->data->browser->reset([
                
'family' => isset($this->data->browser->family) ? $this->data->browser->family null
            
]);
        }

        if (
$this->data->os->name == 'KaiOS' && $this->data->browser->name == 'Firefox Mobile') {
            
$this->data->browser->reset([
                
'family' => isset($this->data->browser->family) ? $this->data->browser->family null
            
]);
        }
    }

    private function 
hideBrowserOnDeviceTypeGaming()
    {
        if (isset(
$this->data->device->model) && $this->data->device->model == 'PlayStation 2' && $this->data->browser->name == 'Internet Explorer') {
            
$this->data->browser->reset();
        }
    }

    private function 
hideBrowserOnDeviceTypeTelevision()
    {
        switch (
$this->data->browser->name) {
            case 
'Firefox':
                if (!
$this->data->isOs('Firefox OS')) {
                    unset(
$this->data->browser->name);
                    unset(
$this->data->browser->version);
                }
                break;

            case 
'Internet Explorer':
                
$valid false;

                if (isset(
$this->data->device->model) && in_array($this->data->device->model, [ 'WebTV' ])) {
                    
$valid true;
                }

                if (!
$valid) {
                    unset(
$this->data->browser->name);
                    unset(
$this->data->browser->version);
                }

                break;

            case 
'Chrome':
            case 
'Chromium':
                
$valid false;

                if (isset(
$this->data->os->name) && in_array($this->data->os->name, [ 'Google TV''Android' ])) {
                    
$valid true;
                }
                if (isset(
$this->data->device->model) && in_array($this->data->device->model, [ 'Chromecast' ])) {
                    
$valid true;
                }

                if (!
$valid) {
                    unset(
$this->data->browser->name);
                    unset(
$this->data->browser->version);
                }

                break;
        }
    }

    private function 
hideOsOnDeviceTypeTelevision()
    {
        if (isset(
$this->data->os->name) && !in_array($this->data->os->name, [ 'Aliyun OS''Tizen''Android''Android TV''FireOS''Google TV''Firefox OS''OpenTV''webOS' ])) {
            
$this->data->os->reset();
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0046 ]--