!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/phpmyadmin/libraries/classes/Plugins/Import/Upload/   drwxr-xr-x
Free 15.58 GB of 61.93 GB (25.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     UploadProgress.php (2.44 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Provides upload functionalities for the import plugins
 */

declare(strict_types=1);

namespace 
PhpMyAdmin\Plugins\Import\Upload;

use 
PhpMyAdmin\Import\Ajax;
use 
PhpMyAdmin\Plugins\UploadInterface;

use function 
array_key_exists;
use function 
function_exists;
use function 
trim;

/**
 * Implementation for upload progress
 */
class UploadProgress implements UploadInterface
{
    
/**
     * Gets the specific upload ID Key
     *
     * @return string ID Key
     */
    
public static function getIdKey()
    {
        return 
'UPLOAD_IDENTIFIER';
    }

    
/**
     * Returns upload status.
     *
     * This is implementation for upload progress
     *
     * @param string $id upload id
     *
     * @return array|null
     */
    
public static function getUploadStatus($id)
    {
        global 
$SESSION_KEY;

        if (
trim($id) == '') {
            return 
null;
        }

        if (! 
array_key_exists($id$_SESSION[$SESSION_KEY])) {
            
$_SESSION[$SESSION_KEY][$id] = [
                
'id' => $id,
                
'finished' => false,
                
'percent' => 0,
                
'total' => 0,
                
'complete' => 0,
                
'plugin' => self::getIdKey(),
            ];
        }

        
$ret $_SESSION[$SESSION_KEY][$id];

        if (! 
Ajax::progressCheck() || $ret['finished']) {
            return 
$ret;
        }

        
$status null;
        
// @see https://pecl.php.net/package/uploadprogress
        
if (function_exists('uploadprogress_get_info')) {
            
// phpcs:ignore SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName
            
$status = \uploadprogress_get_info($id);
        }

        if (
$status) {
            
$ret['finished'] = false;

            if (
$status['bytes_uploaded'] == $status['bytes_total']) {
                
$ret['finished'] = true;
            }

            
$ret['total'] = $status['bytes_total'];
            
$ret['complete'] = $status['bytes_uploaded'];

            if (
$ret['total'] > 0) {
                
$ret['percent'] = $ret['complete'] / $ret['total'] * 100;
            }
        } else {
            
$ret = [
                
'id' => $id,
                
'finished' => true,
                
'percent' => 100,
                
'total' => $ret['total'],
                
'complete' => $ret['total'],
                
'plugin' => self::getIdKey(),
            ];
        }

        
$_SESSION[$SESSION_KEY][$id] = $ret;

        return 
$ret;
    }
}

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