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


Viewing file:     BaseFormList.php (2.72 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * User preferences form
 *
 * @package PhpMyAdmin
 */
namespace PhpMyAdmin\Config\Forms;

use 
PhpMyAdmin\Config\ConfigFile;

class 
BaseFormList
{
    
/**
     * List of all forms
     */
    
protected static $all = array();

    protected static 
$ns 'PhpMyAdmin\\Config\\Forms\\';

    private 
$_forms;

    public static function 
getAll()
    {
        return static::
$all;
    }

    public static function 
isValid($name)
    {
        return 
in_array($name, static::$all);
    }

    public static function 
get($name)
    {
        if (static::
isValid($name)) {
            return static::
$ns $name 'Form';
        }
        return 
null;
    }

    
/**
     * Constructor
     *
     * @param ConfigFile $cf Config file instance
     */
    
public function __construct(ConfigFile $cf)
    {
        
$this->_forms = array();
        foreach (static::
$all as $form) {
            
$class = static::get($form);
            
$this->_forms[] = new $class($cf);
        }
    }

    
/**
     * Processes forms, returns true on successful save
     *
     * @param bool $allow_partial_save allows for partial form saving
     *                                 on failed validation
     * @param bool $check_form_submit  whether check for $_POST['submit_save']
     *
     * @return boolean whether processing was successful
     */
    
public function process($allow_partial_save true$check_form_submit true)
    {
        
$ret true;
        foreach (
$this->_forms as $form) {
            
$ret $ret && $form->process($allow_partial_save$check_form_submit);
        }
        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
     *
     * @return void
     */
    
public function fixErrors()
    {
        foreach (
$this->_forms as $form) {
            
$form->fixErrors();
        }
    }

    
/**
     * Tells whether form validation failed
     *
     * @return boolean
     */
    
public function hasErrors()
    {
        
$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 = static::get($form);
            
$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.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0074 ]--