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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/local/lsws/admin/html.open/lib/ows/   drwxr-xr-x
Free 13.11 GB of 57.97 GB (22.61%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

class Product
{

    const 
PROD_NAME 'OpenLiteSpeed';

    private 
$version;
    private 
$new_version;

    private function 
__construct()
    {
        
$matches = [];
        
$str $_SERVER['LSWS_EDITION'];
        if (
preg_match('/(\d.*)$/i'$str$matches)) {
            
$this->version trim($matches[1]);
        }
        
$releasefile SERVER_ROOT 'autoupdate/release';
        
$releasefilecb $releasefile 'cb';
        
$newver '';
        
$rel0 $rel1 '';

        if (
file_exists($releasefilecb)) {
            
$rel trim(file_get_contents($releasefilecb));
            if ((
$pos strpos($rel' ')) !== false) {
                
$rel0 substr($rel0$pos);
            } else {
                
$rel0 $rel;
            }
            
            if (
$this->version != $rel0) {
                
$newver $rel ' (' DMsg::UIStr('note_curbranch') . ') '// will carry over extra string if it's in release
            
}
        }
        
        if (
file_exists($releasefile)) {
            
$rel trim(file_get_contents($releasefile));
            if ((
$pos strpos($rel' ')) !== false) {
                
$rel1 substr($rel0$pos);
            } else {
                
$rel1 $rel;
            }
            
            if (
$this->version != $rel1 && $rel0 != $rel1) {
                
$newver .= $rel// will carry over extra string if it's in release
            
}
        }

        
$this->new_version $newver;
    }

    public static function 
GetInstance()
    {
        if (!isset(
$GLOBALS['_PRODUCT_']))
            
$GLOBALS['_PRODUCT_'] = new Product();
        return 
$GLOBALS['_PRODUCT_'];
    }

    public function 
getVersion()
    {
        return 
$this->version;
    }

    public function 
refreshVersion()
    {
        
$versionfile SERVER_ROOT 'VERSION';
        
$this->version trim(file_get_contents($versionfile));
    }

    public function 
getNewVersion()
    {
        return 
$this->new_version;
    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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