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


Viewing file:     FlexyStatic_example.php (5 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Example of usage for HTML_QuickForm Object renderer 
 * with Flexy template engine and static template
 *
 * @category    HTML
 * @package     HTML_QuickForm
 * @author      Ron McClain <mixtli@cats.ucsc.edu>
 * @version     CVS: $Id: FlexyStatic_example.php 236645 2007-05-29 19:12:26Z avb $
 * @ignore
 */

require_once('HTML/Template/Flexy.php');
require_once(
'HTML/QuickForm.php');
require_once(
'HTML/QuickForm/Renderer/ObjectFlexy.php');

function 
myProcess($values)
{
    echo 
"<pre>";
    
var_dump($values);
    echo 
"</pre>";
}

$form = new HTML_QuickForm('form''POST');

// Fills with some defaults values

$defaultValues['company']  = 'Devils son in law';
$defaultValues['country']  = array();
$defaultValues['name']     = array('first'=>'Petey''last'=>'Wheatstraw');
$defaultValues['phone']    = array('513''123''4567');
$form->setDefaults($defaultValues);

// Hidden

$form->addElement('hidden''session''1234567890');

// Personal information

$form->addElement('header''personal''Personal Information');

$form->addElement('hidden''ihidTest''hiddenField');
$form->addElement('text''email''Your email:');
$form->addElement('password''pass''Your password:''size=10');
$name['last'] = &HTML_QuickForm::createElement('text''first''First',
'size=10');
$name['first'] = &HTML_QuickForm::createElement('text''last''Last',
'size=10');
$form->addGroup($name'name''Name:'',&nbsp;');
$areaCode = &HTML_QuickForm::createElement('text'''null,'size=4
maxlength=3'
);
$phoneNo1 = &HTML_QuickForm::createElement('text'''null'size=4
maxlength=3'
);
$phoneNo2 = &HTML_QuickForm::createElement('text'''null'size=5
maxlength=4'
);
$form->addGroup(array($areaCode$phoneNo1$phoneNo2), 'phone',
'Telephone:''-');

// Company information

$form->addElement('header''company_info''Company Information');

$form->addElement('text''company''Company:''size=20');

$str[] = &HTML_QuickForm::createElement('text'''null'size=20');
$str[] = &HTML_QuickForm::createElement('text'''null'size=20');
$form->addGroup($str'street''Street:''<br />');

$addr['zip'] = &HTML_QuickForm::createElement('text''zip''Zip''size=6
maxlength=10'
);
$addr['city'] = &HTML_QuickForm::createElement('text''city''City',
'size=15');
$form->addGroup($addr'address''Zip, city:');

$select = array('' => 'Please select...''AU' => 'Australia''FR' =>
'France''DE' => 'Germany''IT' => 'Italy');
$form->addElement('select''country''Country:'$select);

$checkbox[] = &HTML_QuickForm::createElement('checkbox''A'null'A');
$checkbox[] = &HTML_QuickForm::createElement('checkbox''B'null'B');
$checkbox[] = &HTML_QuickForm::createElement('checkbox''C'null'C');
$checkbox[] = &HTML_QuickForm::createElement('checkbox''D'null'D');
$form->addGroup($checkbox'destination''Destination:', array('&nbsp;',
'<br />'));

// Other elements

$form->addElement('checkbox''news'''" Check this box if you don't want
to receive our newsletter."
);

$form->addElement('reset''reset''Reset');
$form->addElement('submit''submit''Register');

// Adds some validation rules

$form->addRule('email''Email address is required''required');
$form->addGroupRule('name''Name is required''required');
$form->addRule('pass''Password must be between 8 to 10 characters',
'rangelength', array(810),'client');
$form->addRule('country''Country is a required field''required');
$form->addGroupRule('destination''Please check at least two boxes',
'required'null2);
$form->addGroupRule('phone''Please fill all phone fields''required');
$form->addGroupRule('phone''Values must be numeric''numeric');

$AddrRules['zip'][0] = array('Zip code is required''required');
$AddrRules['zip'][1] = array('Zip code is numeric only''numeric');
$AddrRules['city'][0] = array('City is required''required');
$AddrRules['city'][1] = array('City is letters only''lettersonly');
$form->addGroupRule('address'$AddrRules);

// Tries to validate the form
if ($form->validate()) {
    
// Form is validated, then freezes the data
    
$form->freeze();
    
$form->process('myProcess',  false);
    echo 
"\n<hr>\n";


// setup a template object
$options = &PEAR::getStaticProperty('HTML_Template_Flexy','options');
$options = array(
    
'templateDir' => './templates',
    
'compileDir' => './templates/build',
    
'forceCompile' => 1,
    
'debug' => 0,
    
'local' => 'en'
);

$template = new HTML_Template_Flexy($options);

$renderer =& new HTML_QuickForm_Renderer_ObjectFlexy($template);
$renderer->setLabelTemplate("label.html");
$renderer->setHtmlTemplate("html.html");

$form->accept($renderer);

$view = new StdClass;
$view->form $renderer->toObject();

$template->compile("flexy-static.html");
// capture the array stucture
ob_start();
print_r($view->form);
$view->static_object =  ob_get_contents();
ob_end_clean();

// render and display the template
$template->outputObject($view);
?>

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