!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/Config/Forms/   drwxr-xr-x
Free 13.43 GB of 61.93 GB (21.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     BaseFormList.php (3.16 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * User preferences form
 */

declare(strict_types=1);

namespace 
PhpMyAdmin\Config\Forms;

use 
PhpMyAdmin\Config\ConfigFile;

use function 
array_merge;
use function 
class_exists;
use function 
in_array;

class 
BaseFormList
{
    
/**
     * List of all forms
     *
     * @var string[]
     */
    
protected static $all = [];

    
/** @var string */
    
protected static $ns 'PhpMyAdmin\\Config\\Forms\\';

    
/** @var array */
    
private $forms;

    
/**
     * @return string[]
     */
    
public static function getAll()
    {
        return static::
$all;
    }

    
/**
     * @param string $name Name
     */
    
public static function isValid($name): bool
    
{
        return 
in_array($name, static::$all);
    }

    
/**
     * @param string $name Name
     *
     * @return string|null
     * @psalm-return class-string<BaseForm>|null
     */
    
public static function get($name)
    {
        if (static::
isValid($name)) {
            
/** @var class-string<BaseForm> $class */
            
$class = static::$ns $name 'Form';

            return 
$class;
        }

        return 
null;
    }

    
/**
     * @param ConfigFile $cf Config file instance
     */
    
final public function __construct(ConfigFile $cf)
    {
        
$this->forms = [];
        foreach (static::
$all as $form) {
            
$class = (string) static::get($form);
            if (! 
class_exists($class)) {
                continue;
            }

            
$this->forms[] = new $class($cf);
        }
    }

    
/**
     * Processes forms, returns true on successful save
     *
     * @param bool $allowPartialSave allows for partial form saving
     *                               on failed validation
     * @param bool $checkFormSubmit  whether check for $_POST['submit_save']
     */
    
public function process($allowPartialSave true$checkFormSubmit true): bool
    
{
        
$ret true;
        foreach (
$this->forms as $form) {
            
$ret $ret && $form->process($allowPartialSave$checkFormSubmit);
        }

        return 
$ret;
    }

    
/**
     * Displays errors
     *
     * @return string HTML for errors
     */
    
public function displayErrors()
    {
        
$ret '';
        foreach (
$this->forms as $form) {
            
$ret .= $form->displayErrors();
        }

        return 
$ret;
    }

    
/**
     * Reverts erroneous fields to their default values
     */
    
public function fixErrors(): void
    
{
        foreach (
$this->forms as $form) {
            
$form->fixErrors();
        }
    }

    
/**
     * Tells whether form validation failed
     */
    
public function hasErrors(): bool
    
{
        
$ret false;
        foreach (
$this->forms as $form) {
            
$ret $ret || $form->hasErrors();
        }

        return 
$ret;
    }

    
/**
     * Returns list of fields used in the form.
     *
     * @return string[]
     */
    
public static function getFields()
    {
        
$names = [];
        foreach (static::
$all as $form) {
            
$class = (string) static::get($form);
            if (! 
class_exists($class)) {
                continue;
            }

            
$names array_merge($names$class::getFields());
        }

        return 
$names;
    }
}

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