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 : 18.188.80.46
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 /
Delete
Unzip
Name
Size
Permission
Date
Action
Command
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
CommandLoader
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
DependencyInjection
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Descriptor
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Event
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
EventListener
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Exception
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Formatter
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Helper
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Input
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Logger
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Output
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Question
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Resources
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Style
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Tester
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
Tests
[ DIR ]
drwxr-xr-x
2018-11-27 09:00
.gitignore
34
B
-rw-r--r--
2018-11-27 09:00
Application.php
39.69
KB
-rw-r--r--
2018-11-27 09:00
CHANGELOG.md
4.75
KB
-rw-r--r--
2018-11-27 09:00
ConsoleEvents.php
1.29
KB
-rw-r--r--
2018-11-27 09:00
LICENSE
1.04
KB
-rw-r--r--
2018-11-27 09:00
README.md
692
B
-rw-r--r--
2018-11-27 09:00
Terminal.php
3.92
KB
-rw-r--r--
2018-11-27 09:00
composer.json
1.37
KB
-rw-r--r--
2018-11-27 09:00
phpunit.xml.dist
1.18
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; class Terminal { private static $width; private static $height; /** * Gets the terminal width. * * @return int */ public function getWidth() { $width = getenv('COLUMNS'); if (false !== $width) { return (int) trim($width); } if (null === self::$width) { self::initDimensions(); } return self::$width ?: 80; } /** * Gets the terminal height. * * @return int */ public function getHeight() { $height = getenv('LINES'); if (false !== $height) { return (int) trim($height); } if (null === self::$height) { self::initDimensions(); } return self::$height ?: 50; } private static function initDimensions() { if ('\\' === \DIRECTORY_SEPARATOR) { if (preg_match('/^(\d+)x(\d+)(?: \((\d+)x(\d+)\))?$/', trim(getenv('ANSICON')), $matches)) { // extract [w, H] from "wxh (WxH)" // or [w, h] from "wxh" self::$width = (int) $matches[1]; self::$height = isset($matches[4]) ? (int) $matches[4] : (int) $matches[2]; } elseif (null !== $dimensions = self::getConsoleMode()) { // extract [w, h] from "wxh" self::$width = (int) $dimensions[0]; self::$height = (int) $dimensions[1]; } } elseif ($sttyString = self::getSttyColumns()) { if (preg_match('/rows.(\d+);.columns.(\d+);/i', $sttyString, $matches)) { // extract [w, h] from "rows h; columns w;" self::$width = (int) $matches[2]; self::$height = (int) $matches[1]; } elseif (preg_match('/;.(\d+).rows;.(\d+).columns/i', $sttyString, $matches)) { // extract [w, h] from "; h rows; w columns" self::$width = (int) $matches[2]; self::$height = (int) $matches[1]; } } } /** * Runs and parses mode CON if it's available, suppressing any error output. * * @return int[]|null An array composed of the width and the height or null if it could not be parsed */ private static function getConsoleMode() { if (!\function_exists('proc_open')) { return; } $descriptorspec = array( 1 => array('pipe', 'w'), 2 => array('pipe', 'w'), ); $process = proc_open('mode CON', $descriptorspec, $pipes, null, null, array('suppress_errors' => true)); if (\is_resource($process)) { $info = stream_get_contents($pipes[1]); fclose($pipes[1]); fclose($pipes[2]); proc_close($process); if (preg_match('/--------+\r?\n.+?(\d+)\r?\n.+?(\d+)\r?\n/', $info, $matches)) { return array((int) $matches[2], (int) $matches[1]); } } } /** * Runs and parses stty -a if it's available, suppressing any error output. * * @return string|null */ private static function getSttyColumns() { if (!\function_exists('proc_open')) { return; } $descriptorspec = array( 1 => array('pipe', 'w'), 2 => array('pipe', 'w'), ); $process = proc_open('stty -a | grep columns', $descriptorspec, $pipes, null, null, array('suppress_errors' => true)); if (\is_resource($process)) { $info = stream_get_contents($pipes[1]); fclose($pipes[1]); fclose($pipes[2]); proc_close($process); return $info; } } }