!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php54/usr/share/doc/pear/ConsoleTools/docs/   drwxr-xr-x
Free 294.06 GB of 429.69 GB (68.43%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     example_input.php (2.64 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Example for the usage of ezcConsoleParameter class.
 *
 * @package ConsoleTools
 * @version 1.6.1
 * @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved.
 * @license http://ez.no/licenses/new_bsd New BSD License
 */

require_once 'Base/src/base.php';
/**
 * Autoload ezc classes 
 * 
 * @param string $className 
 */
function __autoload$className )
{
    
ezcBase::autoload$className );
}

$optionHandler = new ezcConsoleInput();

// Register simple parameter -h/--help
$optionHandler->registerOption( new ezcConsoleOption'h''help' ) );

// Register complex parameter -f/--file
$file = new ezcConsoleOption(
 
'f',
 
'file',
 
ezcConsoleInput::TYPE_STRING,
 
null,
 
false,
 
'Process a file.',
 
'Processes a single file.'
);
$optionHandler->registerOption$file );

// Manipulate parameter -f/--file after registration
$file->multiple true;

// Register another complex parameter that depends on -f and excludes -h
$dir = new ezcConsoleOption(
 
'd',
 
'dir',
 
ezcConsoleInput::TYPE_STRING,
 
null,
 
true,
 
'Process a directory.',
 
'Processes a complete directory.',
 array( new 
ezcConsoleOptionRule$optionHandler->getOption'f' ) ) ),
 array( new 
ezcConsoleOptionRule$optionHandler->getOption'h' ) ) )
);
$optionHandler->registerOption$dir );

// Register an alias for this parameter
$optionHandler->registerAlias'e''extended-dir'$dir );

// Process registered parameters and handle errors
try
{
     
$optionHandler->process( array( 'example_input.php''-h' ) );
}
catch ( 
ezcConsoleOptionException $e )
{
     echo 
$e->getMessage();
     exit( 
);
}

// Process a single parameter
$file $optionHandler->getOption'f' );
if ( 
$file->value === false )
{
     echo 
"Parameter -{$file->short}/--{$file->long} was not submitted.\n";
}
elseif ( 
$file->value === true )
{
     echo 
"Parameter -{$file->short}/--{$file->long} was submitted without value.\n";
}
else
{
     echo 
"Parameter -{$file->short}/--{$file->long} was submitted with value <".var_export($file->valuetrue).">.\n";
}

// Process all parameters at once:
foreach ( $optionHandler->getOptionValues() as $paramShort => $val )
{
     switch ( 
true )
     {
         case 
$val === false:
             echo 
"Parameter $paramShort was not submitted.\n";
             break;
         case 
$val === true:
             echo 
"Parameter $paramShort was submitted without a value.\n";
             break;
         case 
is_array$val ):
             echo 
"Parameter $paramShort was submitted multiple times with value: <".implode(', '$val).">.\n";
             break;
         default:
             echo 
"Parameter $paramShort was submitted with value: <$val>.\n";
             break;
     }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0043 ]--