Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.16.24.18
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
symfony /
console /
Helper /
Delete
Unzip
Name
Size
Permission
Date
Action
DebugFormatterHelper.php
4.08
KB
-rw-r--r--
2018-11-27 09:00
DescriptorHelper.php
2.55
KB
-rw-r--r--
2018-11-27 09:00
FormatterHelper.php
2.89
KB
-rw-r--r--
2018-11-27 09:00
Helper.php
3.72
KB
-rw-r--r--
2018-11-27 09:00
HelperInterface.php
880
B
-rw-r--r--
2018-11-27 09:00
HelperSet.php
2.45
KB
-rw-r--r--
2018-11-27 09:00
InputAwareHelper.php
747
B
-rw-r--r--
2018-11-27 09:00
ProcessHelper.php
5.51
KB
-rw-r--r--
2018-11-27 09:00
ProgressBar.php
15.72
KB
-rw-r--r--
2018-11-27 09:00
ProgressIndicator.php
7.74
KB
-rw-r--r--
2018-11-27 09:00
QuestionHelper.php
13.19
KB
-rw-r--r--
2018-11-27 09:00
SymfonyQuestionHelper.php
2.97
KB
-rw-r--r--
2018-11-27 09:00
Table.php
25.09
KB
-rw-r--r--
2018-11-27 09:00
TableCell.php
1.45
KB
-rw-r--r--
2018-11-27 09:00
TableRows.php
583
B
-rw-r--r--
2018-11-27 09:00
TableSeparator.php
536
B
-rw-r--r--
2018-11-27 09:00
TableStyle.php
15.19
KB
-rw-r--r--
2018-11-27 09:00
Save
Rename
<?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; /** * {@inheritdoc} */ public function setHelperSet(HelperSet $helperSet = null) { $this->helperSet = $helperSet; } /** * {@inheritdoc} */ 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($string, null, true)) { return \strlen($string); } return mb_strwidth($string, $encoding); } /** * Returns the subset of a string, using mb_substr if it is available. * * @param string $string String to subset * @param int $from Start offset * @param int|null $length Length to read * * @return string The string subset */ public static function substr($string, $from, $length = null) { if (false === $encoding = mb_detect_encoding($string, null, true)) { return substr($string, $from, $length); } return mb_substr($string, $from, $length, $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 (2 == \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) { return self::strlen(self::removeDecoration($formatter, $string)); } public static function removeDecoration(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 $string; } }