!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/php55/usr/share/pear/Symfony/Component/Console/Formatter/   drwxr-xr-x
Free 294.14 GB of 429.69 GB (68.45%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     OutputFormatterStyleStack.php (2.72 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\Formatter;

/**
 * @author Jean-François Simon <contact@jfsimon.fr>
 */
class OutputFormatterStyleStack
{
    
/**
     * @var OutputFormatterStyleInterface[]
     */
    
private $styles;

    
/**
     * @var OutputFormatterStyleInterface
     */
    
private $emptyStyle;

    
/**
     * Constructor.
     *
     * @param OutputFormatterStyleInterface|null $emptyStyle
     */
    
public function __construct(OutputFormatterStyleInterface $emptyStyle null)
    {
        
$this->emptyStyle $emptyStyle ?: new OutputFormatterStyle();
        
$this->reset();
    }

    
/**
     * Resets stack (ie. empty internal arrays).
     */
    
public function reset()
    {
        
$this->styles = array();
    }

    
/**
     * Pushes a style in the stack.
     *
     * @param OutputFormatterStyleInterface $style
     */
    
public function push(OutputFormatterStyleInterface $style)
    {
        
$this->styles[] = $style;
    }

    
/**
     * Pops a style from the stack.
     *
     * @param OutputFormatterStyleInterface|null $style
     *
     * @return OutputFormatterStyleInterface
     *
     * @throws \InvalidArgumentException  When style tags incorrectly nested
     */
    
public function pop(OutputFormatterStyleInterface $style null)
    {
        if (empty(
$this->styles)) {
            return 
$this->emptyStyle;
        }

        if (
null === $style) {
            return 
array_pop($this->styles);
        }

        foreach (
array_reverse($this->stylestrue) as $index => $stackedStyle) {
            if (
$style->apply('') === $stackedStyle->apply('')) {
                
$this->styles array_slice($this->styles0$index);

                return 
$stackedStyle;
            }
        }

        throw new \
InvalidArgumentException('Incorrectly nested style tag found.');
    }

    
/**
     * Computes current style with stacks top codes.
     *
     * @return OutputFormatterStyle
     */
    
public function getCurrent()
    {
        if (empty(
$this->styles)) {
            return 
$this->emptyStyle;
        }

        return 
$this->styles[count($this->styles)-1];
    }

    
/**
     * @param OutputFormatterStyleInterface $emptyStyle
     *
     * @return OutputFormatterStyleStack
     */
    
public function setEmptyStyle(OutputFormatterStyleInterface $emptyStyle)
    {
        
$this->emptyStyle $emptyStyle;

        return 
$this;
    }

    
/**
     * @return OutputFormatterStyleInterface
     */
    
public function getEmptyStyle()
    {
        return 
$this->emptyStyle;
    }
}

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