Linux sg77.dns-private.com 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
LiteSpeed
Server IP : 135.181.230.13 & Your IP : 216.73.216.199
Domains :
Cant Read [ /etc/named.conf ]
User : pilasate
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
pilasate /
schoolms /
vendor /
symfony /
console /
Delete
Unzip
Name
Size
Permission
Date
Action
Attribute
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
CI
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Command
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
CommandLoader
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Completion
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
DataCollector
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Debug
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
DependencyInjection
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Descriptor
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Event
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
EventListener
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Exception
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Formatter
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Helper
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Input
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Logger
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Messenger
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Output
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Question
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Resources
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
SignalRegistry
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Style
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Tester
[ DIR ]
drwxrwxrwx
2025-03-23 13:35
Application.php
46.71
KB
-rw-rw-rw-
2024-12-10 16:49
CHANGELOG.md
11.37
KB
-rw-rw-rw-
2024-12-10 16:49
Color.php
3.7
KB
-rw-rw-rw-
2024-12-10 16:49
ConsoleEvents.php
2.12
KB
-rw-rw-rw-
2024-12-10 16:49
Cursor.php
3.88
KB
-rw-rw-rw-
2024-12-10 16:49
LICENSE
1.04
KB
-rw-rw-rw-
2024-12-10 16:49
README.md
782
B
-rw-rw-rw-
2024-12-10 16:49
SingleCommandApplication.php
1.75
KB
-rw-rw-rw-
2024-12-10 16:49
Terminal.php
6.61
KB
-rw-rw-rw-
2024-12-10 16:49
composer.json
1.63
KB
-rw-rw-rw-
2024-12-10 16:49
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; use Symfony\Component\Console\Exception\InvalidArgumentException; /** * @author Fabien Potencier <fabien@symfony.com> */ final class Color { private const COLORS = [ 'black' => 0, 'red' => 1, 'green' => 2, 'yellow' => 3, 'blue' => 4, 'magenta' => 5, 'cyan' => 6, 'white' => 7, 'default' => 9, ]; private const BRIGHT_COLORS = [ 'gray' => 0, 'bright-red' => 1, 'bright-green' => 2, 'bright-yellow' => 3, 'bright-blue' => 4, 'bright-magenta' => 5, 'bright-cyan' => 6, 'bright-white' => 7, ]; private const AVAILABLE_OPTIONS = [ 'bold' => ['set' => 1, 'unset' => 22], 'underscore' => ['set' => 4, 'unset' => 24], 'blink' => ['set' => 5, 'unset' => 25], 'reverse' => ['set' => 7, 'unset' => 27], 'conceal' => ['set' => 8, 'unset' => 28], ]; private string $foreground; private string $background; private array $options = []; public function __construct(string $foreground = '', string $background = '', array $options = []) { $this->foreground = $this->parseColor($foreground); $this->background = $this->parseColor($background, true); foreach ($options as $option) { if (!isset(self::AVAILABLE_OPTIONS[$option])) { throw new InvalidArgumentException(\sprintf('Invalid option specified: "%s". Expected one of (%s).', $option, implode(', ', array_keys(self::AVAILABLE_OPTIONS)))); } $this->options[$option] = self::AVAILABLE_OPTIONS[$option]; } } public function apply(string $text): string { return $this->set().$text.$this->unset(); } public function set(): string { $setCodes = []; if ('' !== $this->foreground) { $setCodes[] = $this->foreground; } if ('' !== $this->background) { $setCodes[] = $this->background; } foreach ($this->options as $option) { $setCodes[] = $option['set']; } if (0 === \count($setCodes)) { return ''; } return \sprintf("\033[%sm", implode(';', $setCodes)); } public function unset(): string { $unsetCodes = []; if ('' !== $this->foreground) { $unsetCodes[] = 39; } if ('' !== $this->background) { $unsetCodes[] = 49; } foreach ($this->options as $option) { $unsetCodes[] = $option['unset']; } if (0 === \count($unsetCodes)) { return ''; } return \sprintf("\033[%sm", implode(';', $unsetCodes)); } private function parseColor(string $color, bool $background = false): string { if ('' === $color) { return ''; } if ('#' === $color[0]) { return ($background ? '4' : '3').Terminal::getColorMode()->convertFromHexToAnsiColorCode($color); } if (isset(self::COLORS[$color])) { return ($background ? '4' : '3').self::COLORS[$color]; } if (isset(self::BRIGHT_COLORS[$color])) { return ($background ? '10' : '9').self::BRIGHT_COLORS[$color]; } throw new InvalidArgumentException(\sprintf('Invalid "%s" color; expected one of (%s).', $color, implode(', ', array_merge(array_keys(self::COLORS), array_keys(self::BRIGHT_COLORS))))); } }