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


Viewing file:     progressbar.php (3.29 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Progress meter is running in indeterminate mode while a file upload operation.
 * This example may work with HTML_Progress 1.1
 * but version 1.2.0 or better allows more easy facilities.
 *
 * @version    $Id: progressbar.php,v 1.3 2005/07/25 11:43:56 farell Exp $
 * @author     Laurent Laville <pear@laurent-laville.org>
 * @package    HTML_Progress
 * @subpackage Examples
 */

require_once 'HTML/Progress.php';

function 
_methodExists($name)
{
    if (
substr(PHP_VERSION,0,1) < '5') {
        
$n strtolower($name);
    } else {
        
$n $name;
    }
    if (
in_array($nget_class_methods('HTML_Progress'))) {
        return 
true;
    }
    return 
false;
}

/*
    User callback called pending progress meter is running, comes with version 1.2.0RC3
 */
function myFunctionHandler($progressValue, &$obj)
{
    global 
$version;
    global 
$stop;
    
$semaphore './uploads/'.$_GET['ID'];

    if (
file_exists($semaphore)) {
        
$stop file_get_contents($semaphore);
        
$obj->setValue(100);
        
$obj->setIndeterminate(false);
        
$obj->display();
        
unlink($semaphore);
    }

    
// sleep a bit ...
    
if ($version 1.1) {
        
$obj->sleep();
    } else {
        for (
$i=0$i<($obj->_anim_speed*1000); $i++) { }
    }
}

/*
    Which version of html_progress: (stable)1.1 or (beta)1.2.0 RC1, RC2 or RC3
 */
$version _methodExists('run') ? 1.2 1.1;

$progress = new HTML_Progress();
$progress->setIncrement(10);
$progress->setAnimSpeed(100);
$progress->setIndeterminate(true);     // progress bar run in indeterminate mode
$progress->setStringPainted(true);     // get space for the string
$progress->setString("");              // but don't paint it
if ($version 1.1) {
    
// set a progress handler required at least version 1.2.0RC3
    
$progress->setProgressHandler('myFunctionHandler');
}
$ui = & $progress->getUI();
$ui->setProgressAttributes(array(
    
'background-color' => '#e0e0e0'
));
$ui->setStringAttributes(array(
    
'color'  => '#996',
    
'background-color' => '#CCCC99'
));
$ui->setCellAttributes(array(
    
'active-color' => '#996'
));
?>
<html>
<head>
<style type="text/css">
<!--
body {
    background-color: #CCCC99;
    color: #996;
    font-family: Verdana, Arial;
}
<?php echo $progress->getStyle(); ?>
// -->
</style>
<script type="text/javascript">
<!--
<?php echo $progress->getScript(); ?>
//-->
</script>
</head>
<body>

<?php
echo $progress->toHtml();

if (isset(
$_GET['ID'])) {

    if (
$version 1.1) {
        
$progress->run();    // run method is born on version 1.2.0RC3
    
} else {
        
// do the same as run() method
        
do {
            
$progress->display();
            
myFunctionHandler($progress->getValue(), $progress);
            if (
$progress->getPercentComplete() == 1) {
                if (
$progress->isIndeterminate()) {
                    
$progress->setValue(0);
                } else {
                    break;
                }
            }
            
$progress->incValue();
        } while(
1);
    }
    if (
$stop == 'done') {
        echo 
'<b>Upload Complete...</b>';
    } else {
        echo 
'<b>File was not uploaded !</b>';
        echo 
'<br/><font size="1">'.$stop.'</font>';
    }
}
?>

</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.5916 ]--