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.221.21.111
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
vendor /
symfony /
form /
Delete
Unzip
Name
Size
Permission
Date
Action
ChoiceList
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Command
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Console
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
DependencyInjection
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Event
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Exception
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Extension
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Guess
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Resources
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Test
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
Util
[ DIR ]
drwxrwxr-x
2022-07-20 13:00
AbstractExtension.php
4.59
KB
-rw-rw-r--
2022-07-20 13:00
AbstractRendererEngine.php
7
KB
-rw-rw-r--
2022-07-20 13:00
AbstractType.php
1.29
KB
-rw-rw-r--
2022-07-20 13:00
AbstractTypeExtension.php
974
B
-rw-rw-r--
2022-07-20 13:00
Button.php
8.55
KB
-rw-rw-r--
2022-07-20 13:00
ButtonBuilder.php
14.89
KB
-rw-rw-r--
2022-07-20 13:00
ButtonTypeInterface.php
462
B
-rw-rw-r--
2022-07-20 13:00
CHANGELOG.md
29.84
KB
-rw-rw-r--
2022-07-20 13:00
CallbackTransformer.php
1012
B
-rw-rw-r--
2022-07-20 13:00
ClearableErrorsInterface.php
640
B
-rw-rw-r--
2022-07-20 13:00
ClickableInterface.php
522
B
-rw-rw-r--
2022-07-20 13:00
DataAccessorInterface.php
2.26
KB
-rw-rw-r--
2022-07-20 13:00
DataMapperInterface.php
2.37
KB
-rw-rw-r--
2022-07-20 13:00
DataTransformerInterface.php
3.71
KB
-rw-rw-r--
2022-07-20 13:00
FileUploadError.php
338
B
-rw-rw-r--
2022-07-20 13:00
Form.php
37.92
KB
-rw-rw-r--
2022-07-20 13:00
FormBuilder.php
7.22
KB
-rw-rw-r--
2022-07-20 13:00
FormBuilderInterface.php
2.02
KB
-rw-rw-r--
2022-07-20 13:00
FormConfigBuilder.php
18.98
KB
-rw-rw-r--
2022-07-20 13:00
FormConfigBuilderInterface.php
6.89
KB
-rw-rw-r--
2022-07-20 13:00
FormConfigInterface.php
5.83
KB
-rw-rw-r--
2022-07-20 13:00
FormError.php
3.24
KB
-rw-rw-r--
2022-07-20 13:00
FormErrorIterator.php
8.14
KB
-rw-rw-r--
2022-07-20 13:00
FormEvent.php
1.12
KB
-rw-rw-r--
2022-07-20 13:00
FormEvents.php
4.02
KB
-rw-rw-r--
2022-07-20 13:00
FormExtensionInterface.php
1.48
KB
-rw-rw-r--
2022-07-20 13:00
FormFactory.php
3.85
KB
-rw-rw-r--
2022-07-20 13:00
FormFactoryBuilder.php
4.12
KB
-rw-rw-r--
2022-07-20 13:00
FormFactoryBuilderInterface.php
2.3
KB
-rw-rw-r--
2022-07-20 13:00
FormFactoryInterface.php
3.15
KB
-rw-rw-r--
2022-07-20 13:00
FormInterface.php
9.58
KB
-rw-rw-r--
2022-07-20 13:00
FormRegistry.php
4.7
KB
-rw-rw-r--
2022-07-20 13:00
FormRegistryInterface.php
1.19
KB
-rw-rw-r--
2022-07-20 13:00
FormRenderer.php
11.88
KB
-rw-rw-r--
2022-07-20 13:00
FormRendererEngineInterface.php
6.08
KB
-rw-rw-r--
2022-07-20 13:00
FormRendererInterface.php
3.07
KB
-rw-rw-r--
2022-07-20 13:00
FormTypeExtensionInterface.php
1.45
KB
-rw-rw-r--
2022-07-20 13:00
FormTypeGuesserChain.php
2.76
KB
-rw-rw-r--
2022-07-20 13:00
FormTypeGuesserInterface.php
1.49
KB
-rw-rw-r--
2022-07-20 13:00
FormTypeInterface.php
2.65
KB
-rw-rw-r--
2022-07-20 13:00
FormView.php
3.75
KB
-rw-rw-r--
2022-07-20 13:00
Forms.php
2.73
KB
-rw-rw-r--
2022-07-20 13:00
LICENSE
1.04
KB
-rw-rw-r--
2022-07-20 13:00
NativeRequestHandler.php
7.53
KB
-rw-rw-r--
2022-07-20 13:00
PreloadedExtension.php
2.06
KB
-rw-rw-r--
2022-07-20 13:00
README.md
483
B
-rw-rw-r--
2022-07-20 13:00
RequestHandlerInterface.php
796
B
-rw-rw-r--
2022-07-20 13:00
ResolvedFormType.php
5.74
KB
-rw-rw-r--
2022-07-20 13:00
ResolvedFormTypeFactory.php
658
B
-rw-rw-r--
2022-07-20 13:00
ResolvedFormTypeFactoryInterface.php
1.17
KB
-rw-rw-r--
2022-07-20 13:00
ResolvedFormTypeInterface.php
2.21
KB
-rw-rw-r--
2022-07-20 13:00
ReversedTransformer.php
1.03
KB
-rw-rw-r--
2022-07-20 13:00
SubmitButton.php
1.18
KB
-rw-rw-r--
2022-07-20 13:00
SubmitButtonBuilder.php
613
B
-rw-rw-r--
2022-07-20 13:00
SubmitButtonTypeInterface.php
474
B
-rw-rw-r--
2022-07-20 13:00
composer.json
2.41
KB
-rw-rw-r--
2022-07-20 13: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\Form; use Symfony\Component\Form\Exception\UnexpectedTypeException; use Symfony\Component\Form\Util\ServerParams; /** * A request handler using PHP super globals $_GET, $_POST and $_SERVER. * * @author Bernhard Schussek <bschussek@gmail.com> */ class NativeRequestHandler implements RequestHandlerInterface { private $serverParams; /** * The allowed keys of the $_FILES array. */ private const FILE_KEYS = [ 'error', 'name', 'size', 'tmp_name', 'type', ]; public function __construct(ServerParams $params = null) { $this->serverParams = $params ?? new ServerParams(); } /** * {@inheritdoc} * * @throws Exception\UnexpectedTypeException If the $request is not null */ public function handleRequest(FormInterface $form, $request = null) { if (null !== $request) { throw new UnexpectedTypeException($request, 'null'); } $name = $form->getName(); $method = $form->getConfig()->getMethod(); if ($method !== self::getRequestMethod()) { return; } // For request methods that must not have a request body we fetch data // from the query string. Otherwise we look for data in the request body. if ('GET' === $method || 'HEAD' === $method || 'TRACE' === $method) { if ('' === $name) { $data = $_GET; } else { // Don't submit GET requests if the form's name does not exist // in the request if (!isset($_GET[$name])) { return; } $data = $_GET[$name]; } } else { // Mark the form with an error if the uploaded size was too large // This is done here and not in FormValidator because $_POST is // empty when that error occurs. Hence the form is never submitted. if ($this->serverParams->hasPostMaxSizeBeenExceeded()) { // Submit the form, but don't clear the default values $form->submit(null, false); $form->addError(new FormError( $form->getConfig()->getOption('upload_max_size_message')(), null, ['{{ max }}' => $this->serverParams->getNormalizedIniPostMaxSize()] )); return; } $fixedFiles = []; foreach ($_FILES as $fileKey => $file) { $fixedFiles[$fileKey] = self::stripEmptyFiles(self::fixPhpFilesArray($file)); } if ('' === $name) { $params = $_POST; $files = $fixedFiles; } elseif (\array_key_exists($name, $_POST) || \array_key_exists($name, $fixedFiles)) { $default = $form->getConfig()->getCompound() ? [] : null; $params = \array_key_exists($name, $_POST) ? $_POST[$name] : $default; $files = \array_key_exists($name, $fixedFiles) ? $fixedFiles[$name] : $default; } else { // Don't submit the form if it is not present in the request return; } if (\is_array($params) && \is_array($files)) { $data = array_replace_recursive($params, $files); } else { $data = $params ?: $files; } } // Don't auto-submit the form unless at least one field is present. if ('' === $name && \count(array_intersect_key($data, $form->all())) <= 0) { return; } if (\is_array($data) && \array_key_exists('_method', $data) && $method === $data['_method'] && !$form->has('_method')) { unset($data['_method']); } $form->submit($data, 'PATCH' !== $method); } /** * {@inheritdoc} */ public function isFileUpload($data) { // POST data will always be strings or arrays of strings. Thus, we can be sure // that the submitted data is a file upload if the "error" value is an integer // (this value must have been injected by PHP itself). return \is_array($data) && isset($data['error']) && \is_int($data['error']); } /** * @return int|null */ public function getUploadFileError($data) { if (!\is_array($data)) { return null; } if (!isset($data['error'])) { return null; } if (!\is_int($data['error'])) { return null; } if (\UPLOAD_ERR_OK === $data['error']) { return null; } return $data['error']; } /** * Returns the method used to submit the request to the server. */ private static function getRequestMethod(): string { $method = isset($_SERVER['REQUEST_METHOD']) ? strtoupper($_SERVER['REQUEST_METHOD']) : 'GET'; if ('POST' === $method && isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) { $method = strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']); } return $method; } /** * Fixes a malformed PHP $_FILES array. * * PHP has a bug that the format of the $_FILES array differs, depending on * whether the uploaded file fields had normal field names or array-like * field names ("normal" vs. "parent[child]"). * * This method fixes the array to look like the "normal" $_FILES array. * * It's safe to pass an already converted array, in which case this method * just returns the original array unmodified. * * This method is identical to {@link \Symfony\Component\HttpFoundation\FileBag::fixPhpFilesArray} * and should be kept as such in order to port fixes quickly and easily. * * @return mixed */ private static function fixPhpFilesArray($data) { if (!\is_array($data)) { return $data; } // Remove extra key added by PHP 8.1. unset($data['full_path']); $keys = array_keys($data); sort($keys); if (self::FILE_KEYS !== $keys || !isset($data['name']) || !\is_array($data['name'])) { return $data; } $files = $data; foreach (self::FILE_KEYS as $k) { unset($files[$k]); } foreach ($data['name'] as $key => $name) { $files[$key] = self::fixPhpFilesArray([ 'error' => $data['error'][$key], 'name' => $name, 'type' => $data['type'][$key], 'tmp_name' => $data['tmp_name'][$key], 'size' => $data['size'][$key], ]); } return $files; } /** * Sets empty uploaded files to NULL in the given uploaded files array. * * @return mixed */ private static function stripEmptyFiles($data) { if (!\is_array($data)) { return $data; } $keys = array_keys($data); sort($keys); if (self::FILE_KEYS === $keys) { if (\UPLOAD_ERR_NO_FILE === $data['error']) { return null; } return $data; } foreach ($data as $key => $value) { $data[$key] = self::stripEmptyFiles($value); } return $data; } }