[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
wp-optimize
/
vendor
/
intervention
/
httpauth
/
src
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 Exception
SET
[ DEL ]
📁 Laravel
SET
[ DEL ]
📁 Token
SET
[ DEL ]
📁 Vault
SET
[ DEL ]
📁 config
SET
[ DEL ]
📄 AbstractVault.php
4,814 B
SET
[ EDIT ]
|
[ DEL ]
📄 Directive.php
1,699 B
SET
[ EDIT ]
|
[ DEL ]
📄 Environment.php
1,214 B
SET
[ EDIT ]
|
[ DEL ]
📄 HttpAuth.php
4,094 B
SET
[ EDIT ]
|
[ DEL ]
📄 Key.php
2,553 B
SET
[ EDIT ]
|
[ DEL ]
📄 TokenInterface.php
194 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: Environment.php
<?php namespace Intervention\HttpAuth; use Exception; class Environment { /** * Available auth tokens * * @var array */ protected $tokenClassnames = [ Token\PhpAuthUser::class, Token\HttpAuthentification::class, Token\RedirectHttpAuthorization::class, Token\PhpAuthDigest::class, Token\HttpAuthorization::class, ]; /** * Get first active auth token from all available tokens * * @return TokenInterface */ public function getToken(): TokenInterface { foreach ($this->tokenClassnames as $classname) { if ($auth = $this->getActiveTokenOrNull($classname)) { return $auth; } } return new Token\NullToken(); } /** * Try to parse auth token from given classname. Returns token object * if token is active and could be parsed or null. * * @param string $classname * @return TokenInterface|null */ private function getActiveTokenOrNull($classname) { try { $auth = new $classname(); } catch (Exception $e) { $auth = null; } return $auth; } }