!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/phpmyadmin/libraries/classes/Controllers/   drwxr-xr-x
Free 13.53 GB of 61.93 GB (21.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

declare(strict_types=1);

namespace 
PhpMyAdmin\Controllers;

use 
PhpMyAdmin\Core;
use 
PhpMyAdmin\Message;
use 
PhpMyAdmin\ResponseRenderer;
use 
PhpMyAdmin\Template;
use 
PhpMyAdmin\Url;

use function 
__;
use function 
strlen;

abstract class 
AbstractController
{
    
/** @var ResponseRenderer */
    
protected $response;

    
/** @var Template */
    
protected $template;

    public function 
__construct(ResponseRenderer $responseTemplate $template)
    {
        
$this->response $response;
        
$this->template $template;
    }

    
/**
     * @param array<string, mixed> $templateData
     */
    
protected function render(string $templatePath, array $templateData = []): void
    
{
        
$this->response->addHTML($this->template->render($templatePath$templateData));
    }

    
/**
     * @param string[] $files
     */
    
protected function addScriptFiles(array $files): void
    
{
        
$header $this->response->getHeader();
        
$scripts $header->getScripts();
        
$scripts->addFiles($files);
    }

    protected function 
hasDatabase(): bool
    
{
        global 
$db$is_db$errno$dbi$message;

        if (isset(
$is_db) && $is_db) {
            return 
true;
        }

        
$is_db false;
        if (
strlen($db) > 0) {
            
$is_db $dbi->selectDb($db);
            
// This "Command out of sync" 2014 error may happen, for example
            // after calling a MySQL procedure; at this point we can't select
            // the db but it's not necessarily wrong
            
if ($dbi->getError() && $errno == 2014) {
                
$is_db true;
                unset(
$errno);
            }
        }

        if (
strlen($db) === || ! $is_db) {
            if (
$this->response->isAjax()) {
                
$this->response->setRequestStatus(false);
                
$this->response->addJSON(
                    
'message',
                    
Message::error(__('No databases selected.'))
                );

                return 
false;
            }

            
// Not a valid db name -> back to the welcome page
            
$params = ['reload' => '1'];
            if (isset(
$message)) {
                
$params['message'] = $message;
            }

            
$this->redirect('/'$params);

            return 
false;
        }

        return 
$is_db;
    }

    
/**
     * @param array<string, mixed> $params
     */
    
protected function redirect(string $route, array $params = []): void
    
{
        
$uri './index.php?route=' $route Url::getCommonRaw($params'&');
        
Core::sendHeaderLocation($uri);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5011 ]--