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


Viewing file:     simple.php (2.67 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Usage example for HTML_QuickForm2_Controller: simple
 *
 * @author  Alexey Borzov <avb@php.net>
 * @author  Bertrand Mansion <php@mamasam.com>
 * @ignore
 */

require_once 'HTML/QuickForm2.php';
require_once 
'HTML/QuickForm2/Controller.php';

// Load some default action handlers
require_once 'HTML/QuickForm2/Controller/Action/Submit.php';
require_once 
'HTML/QuickForm2/Controller/Action/Display.php';

// Start the session, form-page values will be kept there
session_start();

class 
SimplePage extends HTML_QuickForm2_Controller_Page
{
    protected function 
populateForm()
    {
        
$form $this->form;
        
$fs $form->addFieldset()->setLabel("Controller example 1: a simple form");

        
$fs->addText("tstText", array('size'=>20'maxlength'=>50))
           ->
setLabel("Please enter something:")
           ->
addRule("required""Pretty please!");

        
$fs->addSubmit($this->getButtonName('submit'), array('value' => 'Send'));
        
$this->setDefaultAction('submit')
             ->
setAttribute('style''display:none');
    }
}

class 
SimpleProcess implements HTML_QuickForm2_Controller_Action
{
    public function 
perform(HTML_QuickForm2_Controller_Page $page$name)
    {
        echo 
"Submit successful!<br>\n<pre>\n";
        
var_dump($page->getController()->getValue());
        echo 
"\n</pre>\n";
    }
}

class 
SimpleDisplay extends HTML_QuickForm2_Controller_Action_Display
{
    protected function 
renderForm(HTML_QuickForm2 $form)
    {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <style type="text/css">
/* Set up custom font and form width */
body {
    margin-left: 10px;
    font-family: Arial,sans-serif;
    font-size: small;
}

.quickform {
    min-width: 500px;
    max-width: 600px;
    width: 560px;
}

/* Use default styles included with the package */

<?php
    
if ('/opt/lampp/lib/php/data' != '@' 'data_dir@') {
        
$filename '/opt/lampp/lib/php/data/HTML_QuickForm2/quickform.css';
    } else {
        
$filename dirname(dirname(dirname(__FILE__))) . '/data/quickform.css';
    }
    
readfile($filename);
?>
    </style>
    <title>HTML_QuickForm2 simple controller example</title>
  </head>
  <body>
<?php
        
echo $form;
?>
  </body>
</html>
<?php
    
}
}

$page = new SimplePage(new HTML_QuickForm2('page1'));
$page->addHandler('process', new SimpleProcess());
$page->addHandler('display', new SimpleDisplay());

$controller = new HTML_QuickForm2_Controller('Simple');
$controller->addPage($page);
$controller->run();

?>

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