!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/apex_led/php/vendor/symfony/console/Helper/   drwxrwxr-x
Free 15.54 GB of 61.93 GB (25.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     SymfonyQuestionHelper.php (3.7 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Console\Helper;

use 
Symfony\Component\Console\Exception\LogicException;
use 
Symfony\Component\Console\Input\InputInterface;
use 
Symfony\Component\Console\Output\OutputInterface;
use 
Symfony\Component\Console\Question\ChoiceQuestion;
use 
Symfony\Component\Console\Question\ConfirmationQuestion;
use 
Symfony\Component\Console\Question\Question;
use 
Symfony\Component\Console\Style\SymfonyStyle;
use 
Symfony\Component\Console\Formatter\OutputFormatter;

/**
 * Symfony Style Guide compliant question helper.
 *
 * @author Kevin Bond <kevinbond@gmail.com>
 */
class SymfonyQuestionHelper extends QuestionHelper
{
    
/**
     * {@inheritdoc}
     */
    
public function ask(InputInterface $inputOutputInterface $outputQuestion $question)
    {
        
$validator $question->getValidator();
        
$question->setValidator(function ($value) use ($validator) {
            if (
null !== $validator) {
                
$value $validator($value);
            } else {
                
// make required
                
if (!is_array($value) && !is_bool($value) && === strlen($value)) {
                    throw new 
LogicException('A value is required.');
                }
            }

            return 
$value;
        });

        return 
parent::ask($input$output$question);
    }

    
/**
     * {@inheritdoc}
     */
    
protected function writePrompt(OutputInterface $outputQuestion $question)
    {
        
$text OutputFormatter::escapeTrailingBackslash($question->getQuestion());
        
$default $question->getDefault();

        switch (
true) {
            case 
null === $default:
                
$text sprintf(' <info>%s</info>:'$text);

                break;

            case 
$question instanceof ConfirmationQuestion:
                
$text sprintf(' <info>%s (yes/no)</info> [<comment>%s</comment>]:'$text$default 'yes' 'no');

                break;

            case 
$question instanceof ChoiceQuestion && $question->isMultiselect():
                
$choices $question->getChoices();
                
$default explode(','$default);

                foreach (
$default as $key => $value) {
                    
$default[$key] = $choices[trim($value)];
                }

                
$text sprintf(' <info>%s</info> [<comment>%s</comment>]:'$textOutputFormatter::escape(implode(', '$default)));

                break;

            case 
$question instanceof ChoiceQuestion:
                
$choices $question->getChoices();
                
$text sprintf(' <info>%s</info> [<comment>%s</comment>]:'$textOutputFormatter::escape($choices[$default]));

                break;

            default:
                
$text sprintf(' <info>%s</info> [<comment>%s</comment>]:'$textOutputFormatter::escape($default));
        }

        
$output->writeln($text);

        if (
$question instanceof ChoiceQuestion) {
            
$width max(array_map('strlen'array_keys($question->getChoices())));

            foreach (
$question->getChoices() as $key => $value) {
                
$output->writeln(sprintf("  [<comment>%-${width}s</comment>] %s"$key$value));
            }
        }

        
$output->write(' > ');
    }

    
/**
     * {@inheritdoc}
     */
    
protected function writeError(OutputInterface $output, \Exception $error)
    {
        if (
$output instanceof SymfonyStyle) {
            
$output->newLine();
            
$output->error($error->getMessage());

            return;
        }

        
parent::writeError($output$error);
    }
}

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