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 /
unp /
vendor /
symfony /
var-dumper /
Caster /
Delete
Unzip
Name
Size
Permission
Date
Action
AmqpCaster.php
6.54
KB
-rw-r--r--
2018-11-25 09:00
ArgsStub.php
2.25
KB
-rw-r--r--
2018-11-25 09:00
Caster.php
5.39
KB
-rw-r--r--
2018-11-25 09:00
ClassStub.php
3.65
KB
-rw-r--r--
2018-11-25 09:00
ConstStub.php
672
B
-rw-r--r--
2018-11-25 09:00
CutArrayStub.php
696
B
-rw-r--r--
2018-11-25 09:00
CutStub.php
1.72
KB
-rw-r--r--
2018-11-25 09:00
DOMCaster.php
9.82
KB
-rw-r--r--
2018-11-25 09:00
DateCaster.php
4.5
KB
-rw-r--r--
2018-11-25 09:00
DoctrineCaster.php
1.62
KB
-rw-r--r--
2018-11-25 09:00
EnumStub.php
637
B
-rw-r--r--
2018-11-25 09:00
ExceptionCaster.php
14.67
KB
-rw-r--r--
2018-11-25 09:00
FrameStub.php
740
B
-rw-r--r--
2018-11-25 09:00
GmpCaster.php
727
B
-rw-r--r--
2018-11-25 09:00
IntlCaster.php
8.78
KB
-rw-r--r--
2018-11-25 09:00
LinkStub.php
3.31
KB
-rw-r--r--
2018-11-25 09:00
MemcachedCaster.php
2.27
KB
-rw-r--r--
2018-11-25 09:00
PdoCaster.php
3.49
KB
-rw-r--r--
2018-11-25 09:00
PgSqlCaster.php
5.33
KB
-rw-r--r--
2018-11-25 09:00
ProxyManagerCaster.php
704
B
-rw-r--r--
2018-11-25 09:00
RedisCaster.php
5.13
KB
-rw-r--r--
2018-11-25 09:00
ReflectionCaster.php
12.56
KB
-rw-r--r--
2018-11-25 09:00
ResourceCaster.php
1.78
KB
-rw-r--r--
2018-11-25 09:00
SplCaster.php
6.54
KB
-rw-r--r--
2018-11-25 09:00
StubCaster.php
2.07
KB
-rw-r--r--
2018-11-25 09:00
SymfonyCaster.php
1.12
KB
-rw-r--r--
2018-11-25 09:00
TraceStub.php
963
B
-rw-r--r--
2018-11-25 09:00
XmlReaderCaster.php
2.94
KB
-rw-r--r--
2018-11-25 09:00
XmlResourceCaster.php
2.45
KB
-rw-r--r--
2018-11-25 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\VarDumper\Caster; use Symfony\Component\VarDumper\Cloner\Stub; /** * Casts DateTimeInterface related classes to array representation. * * @author Dany Maillard <danymaillard93b@gmail.com> */ class DateCaster { private const PERIOD_LIMIT = 3; public static function castDateTime(\DateTimeInterface $d, array $a, Stub $stub, $isNested, $filter) { $prefix = Caster::PREFIX_VIRTUAL; $location = $d->getTimezone()->getLocation(); $fromNow = (new \DateTime())->diff($d); $title = $d->format('l, F j, Y') ."\n".self::formatInterval($fromNow).' from now' .($location ? ($d->format('I') ? "\nDST On" : "\nDST Off") : '') ; $a = array(); $a[$prefix.'date'] = new ConstStub(self::formatDateTime($d, $location ? ' e (P)' : ' P'), $title); $stub->class .= $d->format(' @U'); return $a; } public static function castInterval(\DateInterval $interval, array $a, Stub $stub, $isNested, $filter) { $now = new \DateTimeImmutable(); $numberOfSeconds = $now->add($interval)->getTimestamp() - $now->getTimestamp(); $title = number_format($numberOfSeconds, 0, '.', ' ').'s'; $i = array(Caster::PREFIX_VIRTUAL.'interval' => new ConstStub(self::formatInterval($interval), $title)); return $filter & Caster::EXCLUDE_VERBOSE ? $i : $i + $a; } private static function formatInterval(\DateInterval $i) { $format = '%R '; if (0 === $i->y && 0 === $i->m && ($i->h >= 24 || $i->i >= 60 || $i->s >= 60)) { $i = date_diff($d = new \DateTime(), date_add(clone $d, $i)); // recalculate carry over points $format .= 0 < $i->days ? '%ad ' : ''; } else { $format .= ($i->y ? '%yy ' : '').($i->m ? '%mm ' : '').($i->d ? '%dd ' : ''); } $format .= $i->h || $i->i || $i->s || $i->f ? '%H:%I:'.self::formatSeconds($i->s, substr($i->f, 2)) : ''; $format = '%R ' === $format ? '0s' : $format; return $i->format(rtrim($format)); } public static function castTimeZone(\DateTimeZone $timeZone, array $a, Stub $stub, $isNested, $filter) { $location = $timeZone->getLocation(); $formatted = (new \DateTime('now', $timeZone))->format($location ? 'e (P)' : 'P'); $title = $location && \extension_loaded('intl') ? \Locale::getDisplayRegion('-'.$location['country_code']) : ''; $z = array(Caster::PREFIX_VIRTUAL.'timezone' => new ConstStub($formatted, $title)); return $filter & Caster::EXCLUDE_VERBOSE ? $z : $z + $a; } public static function castPeriod(\DatePeriod $p, array $a, Stub $stub, $isNested, $filter) { $dates = array(); if (\PHP_VERSION_ID >= 70107) { // see https://bugs.php.net/bug.php?id=74639 foreach (clone $p as $i => $d) { if (self::PERIOD_LIMIT === $i) { $now = new \DateTimeImmutable(); $dates[] = sprintf('%s more', ($end = $p->getEndDate()) ? ceil(($end->format('U.u') - $d->format('U.u')) / ($now->add($p->getDateInterval())->format('U.u') - $now->format('U.u'))) : $p->recurrences - $i ); break; } $dates[] = sprintf('%s) %s', $i + 1, self::formatDateTime($d)); } } $period = sprintf( 'every %s, from %s (%s) %s', self::formatInterval($p->getDateInterval()), self::formatDateTime($p->getStartDate()), $p->include_start_date ? 'included' : 'excluded', ($end = $p->getEndDate()) ? 'to '.self::formatDateTime($end) : 'recurring '.$p->recurrences.' time/s' ); $p = array(Caster::PREFIX_VIRTUAL.'period' => new ConstStub($period, implode("\n", $dates))); return $filter & Caster::EXCLUDE_VERBOSE ? $p : $p + $a; } private static function formatDateTime(\DateTimeInterface $d, $extra = '') { return $d->format('Y-m-d H:i:'.self::formatSeconds($d->format('s'), $d->format('u')).$extra); } private static function formatSeconds($s, $us) { return sprintf('%02d.%s', $s, 0 === ($len = \strlen($t = rtrim($us, '0'))) ? '0' : ($len <= 3 ? str_pad($t, 3, '0') : $us)); } }