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


Viewing file:     itdynamic.php (2.55 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Monitor example using ITDynamic QF renderer, and
 * a class-method as user callback.
 *
 * @version    $Id: itdynamic.php,v 1.3 2005/08/28 14:57:57 farell Exp $
 * @author     Laurent Laville <pear@laurent-laville.org>
 * @package    HTML_Progress
 * @subpackage Examples
 */

require_once 'HTML/Progress/monitor.php';
require_once 
'HTML/QuickForm/Renderer/ITDynamic.php';
require_once 
'HTML/Template/ITX.php';

/**
 * @ignore
 */
class Progress_ITDynamic extends HTML_Progress_UI
{
    function 
Progress_ITDynamic()
    {
        
parent::HTML_Progress_UI();

        
$this->setCellCount(20);
        
$this->setProgressAttributes('background-color=#EEE');
        
$this->setStringAttributes('background-color=#EEE color=navy');
        
$this->setCellAttributes('inactive-color=#FFF active-color=#444444');
    }
}

/**
 * @ignore
 */
class my2ClassHandler
{
    function 
my1Method($progressValue, &$bar)
    {
        global 
$monitor;

        switch (
$progressValue) {
         case 
10:
            
$pic 'picture1.jpg';
            break;
         case 
45:
            
$pic 'picture2.jpg';
            break;
         case 
70:
            
$pic 'picture3.jpg';
            break;
         default:
            
$pic null;
        }
        if (!
is_null($pic)) {
            
$monitor->setCaption('upload <b>%file%</b> in progress ... Start at %percent%%',
                                 array(
'file'=>$pic'percent'=>$progressValue)
                                );
        }
        
$bar->sleep();  // slow animation because we do noting else
    
}
}
$obs = new my2ClassHandler();

$monitor = new HTML_Progress_Monitor('frmMonitor5', array(
    
'title'  => 'Upload your pictures',
    
'start'  => 'Upload',
    
'cancel' => 'Stop',
    
'button' => array('style' => 'width:80px;')
));

$progress = new HTML_Progress();
$progress->setUI('Progress_ITDynamic');
$progress->setAnimSpeed(50);
$progress->setProgressHandler(array(&$obs'my1Method'));

$monitor->setProgressElement($progress);

$tpl =& new HTML_Template_ITX('../templates');

$tpl->loadTemplateFile('itdynamic_monitor.html');

$tpl->setVariable(array(
    
'qf_style'  => "body {font-family: Verdana, Arial; } \n" $monitor->getStyle(),
    
'qf_script' => $monitor->getScript()
    )
);

$renderer =& new HTML_QuickForm_Renderer_ITDynamic($tpl);
$renderer->setElementBlock(array(
    
'buttons'     => 'qf_buttons'
));

$monitor->accept($renderer);

// Display progress uploader dialog box
$tpl->show();

$monitor->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.6058 ]--