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 : 13.59.141.195
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
3 /
psy /
psysh /
src /
CodeCleaner /
Delete
Unzip
Name
Size
Permission
Date
Action
AbstractClassPass.php
2.14
KB
-rw-r--r--
2018-10-13 09:00
AssignThisVariablePass.php
1.01
KB
-rw-r--r--
2018-10-13 09:00
CallTimePassByReferencePass.php
1.36
KB
-rw-r--r--
2018-10-13 09:00
CalledClassPass.php
2.33
KB
-rw-r--r--
2018-10-13 09:00
CodeCleanerPass.php
415
B
-rw-r--r--
2018-10-13 09:00
ExitPass.php
748
B
-rw-r--r--
2018-10-13 09:00
FinalClassPass.php
1.62
KB
-rw-r--r--
2018-10-13 09:00
FunctionContextPass.php
1.31
KB
-rw-r--r--
2018-10-13 09:00
FunctionReturnInWriteContextPass.php
2.97
KB
-rw-r--r--
2018-10-13 09:00
ImplicitReturnPass.php
4.14
KB
-rw-r--r--
2018-10-13 09:00
InstanceOfPass.php
1.3
KB
-rw-r--r--
2018-10-13 09:00
LeavePsyshAlonePass.php
913
B
-rw-r--r--
2018-10-13 09:00
LegacyEmptyPass.php
1.68
KB
-rw-r--r--
2018-10-13 09:00
ListPass.php
3.21
KB
-rw-r--r--
2018-10-13 09:00
LoopContextPass.php
3.39
KB
-rw-r--r--
2018-10-13 09:00
MagicConstantsPass.php
1.04
KB
-rw-r--r--
2018-10-13 09:00
NamespaceAwarePass.php
1.81
KB
-rw-r--r--
2018-10-13 09:00
NamespacePass.php
2.36
KB
-rw-r--r--
2018-10-13 09:00
NoReturnValue.php
889
B
-rw-r--r--
2018-10-13 09:00
PassableByReferencePass.php
3.76
KB
-rw-r--r--
2018-10-13 09:00
RequirePass.php
3
KB
-rw-r--r--
2018-10-13 09:00
StrictTypesPass.php
2.65
KB
-rw-r--r--
2018-10-13 09:00
UseStatementPass.php
4.08
KB
-rw-r--r--
2018-10-13 09:00
ValidClassNamePass.php
12.08
KB
-rw-r--r--
2018-10-13 09:00
ValidConstantPass.php
3.13
KB
-rw-r--r--
2018-10-13 09:00
ValidConstructorPass.php
3.79
KB
-rw-r--r--
2018-10-13 09:00
ValidFunctionNamePass.php
3.16
KB
-rw-r--r--
2018-10-13 09:00
Save
Rename
<?php /* * This file is part of Psy Shell. * * (c) 2012-2018 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Psy\CodeCleaner; use PhpParser\Node; use PhpParser\Node\Expr; use PhpParser\Node\Expr\ClassConstFetch; use PhpParser\Node\Expr\ConstFetch; use PhpParser\Node\Identifier; use Psy\Exception\FatalErrorException; /** * Validate that namespaced constant references will succeed. * * This pass throws a FatalErrorException rather than letting PHP run * headfirst into a real fatal error and die. * * @todo Detect constants defined in the current code snippet? * ... Might not be worth it, since it would need to both be defining and * referencing a namespaced constant, which doesn't seem like that big of * a target for failure */ class ValidConstantPass extends NamespaceAwarePass { /** * Validate that namespaced constant references will succeed. * * Note that this does not (yet) detect constants defined in the current code * snippet. It won't happen very often, so we'll punt for now. * * @throws FatalErrorException if a constant reference is not defined * * @param Node $node */ public function leaveNode(Node $node) { if ($node instanceof ConstFetch && \count($node->name->parts) > 1) { $name = $this->getFullyQualifiedName($node->name); if (!\defined($name)) { $msg = \sprintf('Undefined constant %s', $name); throw new FatalErrorException($msg, 0, E_ERROR, null, $node->getLine()); } } elseif ($node instanceof ClassConstFetch) { $this->validateClassConstFetchExpression($node); } } /** * Validate a class constant fetch expression. * * @throws FatalErrorException if a class constant is not defined * * @param ClassConstFetch $stmt */ protected function validateClassConstFetchExpression(ClassConstFetch $stmt) { // For PHP Parser 4.x $constName = $stmt->name instanceof Identifier ? $stmt->name->toString() : $stmt->name; // give the `class` pseudo-constant a pass if ($constName === 'class') { return; } // if class name is an expression, give it a pass for now if (!$stmt->class instanceof Expr) { $className = $this->getFullyQualifiedName($stmt->class); // if the class doesn't exist, don't throw an exception… it might be // defined in the same line it's used or something stupid like that. if (\class_exists($className) || \interface_exists($className)) { $refl = new \ReflectionClass($className); if (!$refl->hasConstant($constName)) { $constType = \class_exists($className) ? 'Class' : 'Interface'; $msg = \sprintf('%s constant \'%s::%s\' not found', $constType, $className, $constName); throw new FatalErrorException($msg, 0, E_ERROR, null, $stmt->getLine()); } } } } }