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


Viewing file:     sample_itx_addblockfile.php (2.1 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
 * An example for the usage of ITX::addBlockfile
 *
 * @version CVS: $Id: sample_itx_addblockfile.php 216180 2006-07-11 21:56:05Z dsp $
 */

require_once 'HTML/Template/ITX.php';

$data = array (array ('packagename'=>'mypackage',
                      
'version'    =>'1.0',
                      
'changelog'  => array ('fix bug #002',
                                             
'add author FOO to AUTHORS')
                    ),
               array (
'packagename'=>'mypackage',
                      
'version'    =>'1.0 RC 1',
                      
'changelog'  => array ('fix bug #002',
                                             
'added method foo()')
                    )
                );

$tpl = new HTML_Template_ITX('./templates');
$tpl->loadTemplatefile('addblockfile_main.tpl.htm'truetrue);

// The complete content of "addblockfile_main.tpl.htm" will be loaded into a block
// called "list_template". The placeholder {DESCRIPTION} will be replaced
// with the added block "list_template".
$tpl->addBlockfile('DESCRIPTION''list_template''addblockfile_list.tpl.htm');


// we now have the following blocks loaded:
// __global__, row, list_template and listelement
// lets assign the data.
foreach ($data as $entry) {
    
// assign data to the inner block (listelement) of list_template.
    
$tpl->setCurrentBlock('listelement');
    foreach (
$entry['changelog'] as $changelogentry)  {
        
$tpl->setVariable('ENTRY'$changelogentry);
        
$tpl->parseCurrentBlock();
    }

    
// assign data to the added list_template block
    
$tpl->setCurrentBlock('list_template');
    
$tpl->setVariable('LISTNAME'$entry['version']);
    
$tpl->parseCurrentBlock();

    
// back in the original templatefile we assign data to the row block
    // notice:
    //  {DESCRIPTION} is not longer available, because it was replaced by the
    //  list_template block
    
$tpl->setCurrentBlock('row');
    
$tpl->setVariable('NAME'$entry['packagename']);
    
$tpl->parseCurrentBlock();
}

$tpl->show();
?>

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