!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/public_html/phpmyadmin/libraries/classes/   drwxr-xr-x
Free 28.79 GB of 117.98 GB (24.4%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Language.php (4.47 KB)      -rwxr-x---
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

declare(strict_types=1);

namespace 
PhpMyAdmin;

use function 
__;
use function 
_bindtextdomain;
use function 
_setlocale;
use function 
_textdomain;
use function 
addcslashes;
use function 
function_exists;
use function 
in_array;
use function 
preg_match;
use function 
setlocale;
use function 
str_contains;
use function 
str_replace;
use function 
strcmp;

/**
 * Language object
 */
class Language
{
    
/** @var string */
    
protected $code;

    
/** @var string */
    
protected $name;

    
/** @var string */
    
protected $native;

    
/** @var string */
    
protected $regex;

    
/** @var string */
    
protected $mysql;

    
/**
     * Constructs the Language object
     *
     * @param string $code   Language code
     * @param string $name   English name
     * @param string $native Native name
     * @param string $regex  Match regular expression
     * @param string $mysql  MySQL locale code
     */
    
public function __construct($code$name$native$regex$mysql)
    {
        
$this->code $code;
        
$this->name $name;
        
$this->native $native;
        if (! 
str_contains($regex'[-_]')) {
            
$regex str_replace('|''([-_][[:alpha:]]{2,3})?|'$regex);
        }

        
$this->regex $regex;
        
$this->mysql $mysql;
    }

    
/**
     * Returns native name for language
     *
     * @return string
     */
    
public function getNativeName()
    {
        return 
$this->native;
    }

    
/**
     * Returns English name for language
     *
     * @return string
     */
    
public function getEnglishName()
    {
        return 
$this->name;
    }

    
/**
     * Returns verbose name for language
     *
     * @return string
     */
    
public function getName()
    {
        if (! empty(
$this->native)) {
            return 
$this->native ' - ' $this->name;
        }

        return 
$this->name;
    }

    
/**
     * Returns language code
     *
     * @return string
     */
    
public function getCode()
    {
        return 
$this->code;
    }

    
/**
     * Returns MySQL locale code, can be empty
     *
     * @return string
     */
    
public function getMySQLLocale()
    {
        return 
$this->mysql;
    }

    
/**
     * Compare function used for sorting
     *
     * @param Language $other Other object to compare
     *
     * @return int same as strcmp
     */
    
public function cmp(Language $other): int
    
{
        return 
strcmp($this->name$other->name);
    }

    
/**
     * Checks whether language is currently active.
     */
    
public function isActive(): bool
    
{
        return 
$GLOBALS['lang'] == $this->code;
    }

    
/**
     * Checks whether language matches HTTP header Accept-Language.
     *
     * @param string $header Header content
     */
    
public function matchesAcceptLanguage($header): bool
    
{
        
$pattern '/^('
            
addcslashes($this->regex'/')
            . 
')(;q=[0-9]\\.[0-9])?$/i';

        return (bool) 
preg_match($pattern$header);
    }

    
/**
     * Checks whether language matches HTTP header User-Agent
     *
     * @param string $header Header content
     */
    
public function matchesUserAgent($header): bool
    
{
        
$pattern '/(\(|\[|;[[:space:]])('
            
addcslashes($this->regex'/')
            . 
')(;|\]|\))/i';

        return (bool) 
preg_match($pattern$header);
    }

    
/**
     * Checks whether language is RTL
     */
    
public function isRTL(): bool
    
{
        return 
in_array($this->code, ['ar''fa''he''ur']);
    }

    
/**
     * Activates given translation
     */
    
public function activate(): void
    
{
        
$GLOBALS['lang'] = $this->code;

        
// Set locale
        
_setlocale(0$this->code);
        
_bindtextdomain('phpmyadmin'LOCALE_PATH);
        
_textdomain('phpmyadmin');
        
// Set PHP locale as well
        
if (function_exists('setlocale')) {
            
setlocale(0$this->code);
        }

        
/* Text direction for language */
        
if ($this->isRTL()) {
            
$GLOBALS['text_dir'] = 'rtl';
        } else {
            
$GLOBALS['text_dir'] = 'ltr';
        }

        
/* TCPDF */
        
$GLOBALS['l'] = [];

        
/* TCPDF settings */
        
$GLOBALS['l']['a_meta_charset'] = 'UTF-8';
        
$GLOBALS['l']['a_meta_dir'] = $GLOBALS['text_dir'];
        
$GLOBALS['l']['a_meta_language'] = $this->code;

        
/* TCPDF translations */
        
$GLOBALS['l']['w_page'] = __('Page number:');

        
/* Show possible warnings from langauge selection */
        
LanguageManager::getInstance()->showWarnings();
    }
}

:: 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.0043 ]--