Linux boca.hozzt.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
: 159.253.39.62 | : 18.217.43.228
Cant Read [ /etc/named.conf ]
7.4.33
renovkoron
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
alt /
php55 /
usr /
share /
pear /
Symfony /
Component /
Validator /
Constraints /
[ HOME SHELL ]
Name
Size
Permission
Action
Collection
[ DIR ]
drwxr-xr-x
AbstractComparison.php
1.09
KB
-rw-r--r--
AbstractComparisonValidator.ph...
2.22
KB
-rw-r--r--
All.php
1.52
KB
-rw-r--r--
AllValidator.php
1.14
KB
-rw-r--r--
Blank.php
511
B
-rw-r--r--
BlankValidator.php
775
B
-rw-r--r--
Callback.php
1.61
KB
-rw-r--r--
CallbackValidator.php
2.42
KB
-rw-r--r--
CardScheme.php
699
B
-rw-r--r--
CardSchemeValidator.php
3.97
KB
-rw-r--r--
Choice.php
1.08
KB
-rw-r--r--
ChoiceValidator.php
2.87
KB
-rw-r--r--
Collection.php
2.73
KB
-rw-r--r--
CollectionValidator.php
2.14
KB
-rw-r--r--
Count.php
1.48
KB
-rw-r--r--
CountValidator.php
1.82
KB
-rw-r--r--
Country.php
520
B
-rw-r--r--
CountryValidator.php
1.25
KB
-rw-r--r--
Currency.php
522
B
-rw-r--r--
CurrencyValidator.php
1.25
KB
-rw-r--r--
Date.php
514
B
-rw-r--r--
DateTime.php
522
B
-rw-r--r--
DateTimeValidator.php
510
B
-rw-r--r--
DateValidator.php
1.25
KB
-rw-r--r--
Email.php
584
B
-rw-r--r--
EmailValidator.php
1.98
KB
-rw-r--r--
EqualTo.php
489
B
-rw-r--r--
EqualToValidator.php
588
B
-rw-r--r--
Existence.php
559
B
-rw-r--r--
Expression.php
1.07
KB
-rw-r--r--
ExpressionValidator.php
2.45
KB
-rw-r--r--
False.php
511
B
-rw-r--r--
FalseValidator.php
797
B
-rw-r--r--
File.php
1.53
KB
-rw-r--r--
FileValidator.php
6.11
KB
-rw-r--r--
GreaterThan.php
497
B
-rw-r--r--
GreaterThanOrEqual.php
516
B
-rw-r--r--
GreaterThanOrEqualValidator.ph...
631
B
-rw-r--r--
GreaterThanValidator.php
610
B
-rw-r--r--
GroupSequence.php
630
B
-rw-r--r--
GroupSequenceProvider.php
399
B
-rw-r--r--
Iban.php
479
B
-rw-r--r--
IbanValidator.php
1.92
KB
-rw-r--r--
IdenticalTo.php
523
B
-rw-r--r--
IdenticalToValidator.php
598
B
-rw-r--r--
Image.php
1.91
KB
-rw-r--r--
ImageValidator.php
5.64
KB
-rw-r--r--
Ip.php
1.99
KB
-rw-r--r--
IpValidator.php
2.64
KB
-rw-r--r--
Isbn.php
1.29
KB
-rw-r--r--
IsbnValidator.php
2.86
KB
-rw-r--r--
Issn.php
578
B
-rw-r--r--
IssnValidator.php
1.8
KB
-rw-r--r--
Language.php
522
B
-rw-r--r--
LanguageValidator.php
1.25
KB
-rw-r--r--
Length.php
1.54
KB
-rw-r--r--
LengthValidator.php
2.21
KB
-rw-r--r--
LessThan.php
491
B
-rw-r--r--
LessThanOrEqual.php
510
B
-rw-r--r--
LessThanOrEqualValidator.php
625
B
-rw-r--r--
LessThanValidator.php
604
B
-rw-r--r--
Locale.php
518
B
-rw-r--r--
LocaleValidator.php
1.24
KB
-rw-r--r--
Luhn.php
476
B
-rw-r--r--
LuhnValidator.php
1.9
KB
-rw-r--r--
NotBlank.php
518
B
-rw-r--r--
NotBlankValidator.php
766
B
-rw-r--r--
NotEqualTo.php
496
B
-rw-r--r--
NotEqualToValidator.php
597
B
-rw-r--r--
NotIdenticalTo.php
530
B
-rw-r--r--
NotIdenticalToValidator.php
604
B
-rw-r--r--
NotNull.php
516
B
-rw-r--r--
NotNullValidator.php
728
B
-rw-r--r--
Null.php
509
B
-rw-r--r--
NullValidator.php
929
B
-rw-r--r--
Optional.php
404
B
-rw-r--r--
Range.php
1.06
KB
-rw-r--r--
RangeValidator.php
1.38
KB
-rw-r--r--
Regex.php
2.39
KB
-rw-r--r--
RegexValidator.php
1.24
KB
-rw-r--r--
Required.php
404
B
-rw-r--r--
Time.php
514
B
-rw-r--r--
TimeValidator.php
1.21
KB
-rw-r--r--
True.php
509
B
-rw-r--r--
TrueValidator.php
821
B
-rw-r--r--
Type.php
774
B
-rw-r--r--
TypeValidator.php
1.39
KB
-rw-r--r--
Url.php
560
B
-rw-r--r--
UrlValidator.php
3.59
KB
-rw-r--r--
Valid.php
907
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : FileValidator.php
<?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\Validator\Constraints; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\ConstraintValidator; use Symfony\Component\Validator\Exception\ConstraintDefinitionException; use Symfony\Component\Validator\Exception\UnexpectedTypeException; use Symfony\Component\HttpFoundation\File\File as FileObject; use Symfony\Component\HttpFoundation\File\UploadedFile; /** * @author Bernhard Schussek <bschussek@gmail.com> * * @api */ class FileValidator extends ConstraintValidator { /** * {@inheritDoc} */ public function validate($value, Constraint $constraint) { if (null === $value || '' === $value) { return; } if ($value instanceof UploadedFile && !$value->isValid()) { switch ($value->getError()) { case UPLOAD_ERR_INI_SIZE: if ($constraint->maxSize) { if (ctype_digit((string) $constraint->maxSize)) { $maxSize = (int) $constraint->maxSize; } elseif (preg_match('/^\d++k$/', $constraint->maxSize)) { $maxSize = $constraint->maxSize * 1024; } elseif (preg_match('/^\d++M$/', $constraint->maxSize)) { $maxSize = $constraint->maxSize * 1048576; } else { throw new ConstraintDefinitionException(sprintf('"%s" is not a valid maximum size', $constraint->maxSize)); } $maxSize = min(UploadedFile::getMaxFilesize(), $maxSize); } else { $maxSize = UploadedFile::getMaxFilesize(); } $this->context->addViolation($constraint->uploadIniSizeErrorMessage, array( '{{ limit }}' => $maxSize, '{{ suffix }}' => 'bytes', )); return; case UPLOAD_ERR_FORM_SIZE: $this->context->addViolation($constraint->uploadFormSizeErrorMessage); return; case UPLOAD_ERR_PARTIAL: $this->context->addViolation($constraint->uploadPartialErrorMessage); return; case UPLOAD_ERR_NO_FILE: $this->context->addViolation($constraint->uploadNoFileErrorMessage); return; case UPLOAD_ERR_NO_TMP_DIR: $this->context->addViolation($constraint->uploadNoTmpDirErrorMessage); return; case UPLOAD_ERR_CANT_WRITE: $this->context->addViolation($constraint->uploadCantWriteErrorMessage); return; case UPLOAD_ERR_EXTENSION: $this->context->addViolation($constraint->uploadExtensionErrorMessage); return; default: $this->context->addViolation($constraint->uploadErrorMessage); return; } } if (!is_scalar($value) && !$value instanceof FileObject && !(is_object($value) && method_exists($value, '__toString'))) { throw new UnexpectedTypeException($value, 'string'); } $path = $value instanceof FileObject ? $value->getPathname() : (string) $value; if (!is_file($path)) { $this->context->addViolation($constraint->notFoundMessage, array('{{ file }}' => $path)); return; } if (!is_readable($path)) { $this->context->addViolation($constraint->notReadableMessage, array('{{ file }}' => $path)); return; } if ($constraint->maxSize) { if (ctype_digit((string) $constraint->maxSize)) { $size = filesize($path); $limit = (int) $constraint->maxSize; $suffix = 'bytes'; } elseif (preg_match('/^\d++k$/', $constraint->maxSize)) { $size = round(filesize($path) / 1000, 2); $limit = (int) $constraint->maxSize; $suffix = 'kB'; } elseif (preg_match('/^\d++M$/', $constraint->maxSize)) { $size = round(filesize($path) / 1000000, 2); $limit = (int) $constraint->maxSize; $suffix = 'MB'; } else { throw new ConstraintDefinitionException(sprintf('"%s" is not a valid maximum size', $constraint->maxSize)); } if ($size > $limit) { $this->context->addViolation($constraint->maxSizeMessage, array( '{{ size }}' => $size, '{{ limit }}' => $limit, '{{ suffix }}' => $suffix, '{{ file }}' => $path, )); return; } } if ($constraint->mimeTypes) { if (!$value instanceof FileObject) { $value = new FileObject($value); } $mimeTypes = (array) $constraint->mimeTypes; $mime = $value->getMimeType(); $valid = false; foreach ($mimeTypes as $mimeType) { if ($mimeType === $mime) { $valid = true; break; } if ($discrete = strstr($mimeType, '/*', true)) { if (strstr($mime, '/', true) === $discrete) { $valid = true; break; } } } if (false === $valid) { $this->context->addViolation($constraint->mimeTypesMessage, array( '{{ type }}' => '"'.$mime.'"', '{{ types }}' => '"'.implode('", "', $mimeTypes) .'"', '{{ file }}' => $path, )); } } } }
Close