!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/observer/   drwxr-xr-x
Free 13.02 GB of 61.93 GB (21.03%)
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 (1.92 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Observer ProgressBar example. Uses a custom observer class.
 *
 * @version    $Id: simple.php,v 1.3 2005/08/28 14:58:10 farell Exp $
 * @author     Laurent Laville <pear@laurent-laville.org>
 * @package    HTML_Progress
 * @subpackage Examples
 */

require_once 'HTML/Progress.php';
require_once 
'HTML/Progress/observer.php';

/**
 * @ignore
 */
// 1. Defines ProgressBar observer
class MyObserver extends HTML_Progress_Observer
{
    var 
$_console;
    var 
$_out;

    function 
MyObserver($out)
    {
        
$this->_console '.' DIRECTORY_SEPARATOR 'observer_complex.log';
        
$this->HTML_Progress_Observer();
        
$this->_out strtolower($out);
    }

    function 
notify($event)
    {
        if (
is_array($event)) {
            
$log = isset($event['log']) ? $event['log'] : "undefined event id.";
            
$val = isset($event['value']) ? $event['value'] : "unknown value";
            
$msg "$log = $val";
        } else {
            
$msg $event;
        }
        if (
$this->_out == 'file') {
            
error_log("$msg \n"3$this->_console);
        } else {
            print (
"$msg <br />\n");
        }
    }
}

// 2. Creates ProgressBar
$bar = new HTML_Progress();
$bar->setAnimSpeed(50);
$bar->setIncrement(5);

// 3. Creates and attach a listener
$observer = new MyObserver($_GET['out']);

$ok $bar->addListener($observer);
if (!
$ok) {
    die (
"Cannot add a valid listener to progress bar !");
}

// 4. Changes look-and-feel of ProgressBar
$ui $bar->getUI();
$ui->setComment('Simple Observer ProgressBar example');
?>
<html>
<head>
<title>Simple Observer ProgressBar example</title>
<style type="text/css">
<!--
<?php echo $bar->getStyle(); ?>
// -->
</style>
<script type="text/javascript">
<!--
<?php echo $bar->getScript(); ?>
//-->
</script>
</head>
<body>

<?php
echo $bar->toHtml();
$bar->run();
?>

</body>
</html>

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