Current Path: > > opt > cloudlinux > alt-php53 > > root > usr > share > pear > Symfony > Component > > HttpFoundation
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
File | Directory | - | - | |
Resources | Directory | - | - | |
Session | Directory | - | - | |
AcceptHeader.php | File | 3610 bytes | December 18 2019 11:20:41. | |
AcceptHeaderItem.php | File | 4915 bytes | December 18 2019 11:20:41. | |
ApacheRequest.php | File | 930 bytes | December 18 2019 11:20:41. | |
BinaryFileResponse.php | File | 9655 bytes | December 18 2019 11:20:41. | |
Cookie.php | File | 5065 bytes | December 18 2019 11:20:41. | |
ExpressionRequestMatcher.php | File | 1359 bytes | December 18 2019 11:20:41. | |
FileBag.php | File | 4033 bytes | December 18 2019 11:20:41. | |
HeaderBag.php | File | 8141 bytes | December 18 2019 11:20:41. | |
IpUtils.php | File | 3514 bytes | December 18 2019 11:20:41. | |
JsonResponse.php | File | 4633 bytes | December 18 2019 11:20:41. | |
ParameterBag.php | File | 8099 bytes | December 18 2019 11:20:41. | |
RedirectResponse.php | File | 2690 bytes | December 18 2019 11:20:41. | |
Request.php | File | 55908 bytes | December 18 2019 11:20:41. | |
RequestMatcher.php | File | 3801 bytes | December 18 2019 11:20:41. | |
RequestMatcherInterface.php | File | 791 bytes | December 18 2019 11:20:41. | |
RequestStack.php | File | 2373 bytes | December 18 2019 11:20:41. | |
Response.php | File | 35807 bytes | December 18 2019 11:20:41. | |
ResponseHeaderBag.php | File | 8849 bytes | December 18 2019 11:20:41. | |
ServerBag.php | File | 3704 bytes | December 18 2019 11:20:41. | |
StreamedResponse.php | File | 3214 bytes | December 18 2019 11:20:41. | |
autoloader.php | File | 344 bytes | December 18 2019 11:20:41. |
<?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\HttpFoundation; /** * ServerBag is a container for HTTP headers from the $_SERVER variable. * * @author Fabien Potencier <fabien@symfony.com> * @author Bulat Shakirzyanov <mallluhuct@gmail.com> * @author Robert Kiss <kepten@gmail.com> */ class ServerBag extends ParameterBag { /** * Gets the HTTP headers. * * @return array */ public function getHeaders() { $headers = array(); $contentHeaders = array('CONTENT_LENGTH' => true, 'CONTENT_MD5' => true, 'CONTENT_TYPE' => true); foreach ($this->parameters as $key => $value) { if (0 === strpos($key, 'HTTP_')) { $headers[substr($key, 5)] = $value; } // CONTENT_* are not prefixed with HTTP_ elseif (isset($contentHeaders[$key])) { $headers[$key] = $value; } } if (isset($this->parameters['PHP_AUTH_USER'])) { $headers['PHP_AUTH_USER'] = $this->parameters['PHP_AUTH_USER']; $headers['PHP_AUTH_PW'] = isset($this->parameters['PHP_AUTH_PW']) ? $this->parameters['PHP_AUTH_PW'] : ''; } else { /* * php-cgi under Apache does not pass HTTP Basic user/pass to PHP by default * For this workaround to work, add these lines to your .htaccess file: * RewriteCond %{HTTP:Authorization} ^(.+)$ * RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] * * A sample .htaccess file: * RewriteEngine On * RewriteCond %{HTTP:Authorization} ^(.+)$ * RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] * RewriteCond %{REQUEST_FILENAME} !-f * RewriteRule ^(.*)$ app.php [QSA,L] */ $authorizationHeader = null; if (isset($this->parameters['HTTP_AUTHORIZATION'])) { $authorizationHeader = $this->parameters['HTTP_AUTHORIZATION']; } elseif (isset($this->parameters['REDIRECT_HTTP_AUTHORIZATION'])) { $authorizationHeader = $this->parameters['REDIRECT_HTTP_AUTHORIZATION']; } if (null !== $authorizationHeader) { if (0 === stripos($authorizationHeader, 'basic')) { // Decode AUTHORIZATION header into PHP_AUTH_USER and PHP_AUTH_PW when authorization header is basic $exploded = explode(':', base64_decode(substr($authorizationHeader, 6))); if (count($exploded) == 2) { list($headers['PHP_AUTH_USER'], $headers['PHP_AUTH_PW']) = $exploded; } } elseif (empty($this->parameters['PHP_AUTH_DIGEST']) && (0 === stripos($authorizationHeader, 'digest'))) { // In some circumstances PHP_AUTH_DIGEST needs to be set $headers['PHP_AUTH_DIGEST'] = $authorizationHeader; $this->parameters['PHP_AUTH_DIGEST'] = $authorizationHeader; } } } // PHP_AUTH_USER/PHP_AUTH_PW if (isset($headers['PHP_AUTH_USER'])) { $headers['AUTHORIZATION'] = 'Basic '.base64_encode($headers['PHP_AUTH_USER'].':'.$headers['PHP_AUTH_PW']); } elseif (isset($headers['PHP_AUTH_DIGEST'])) { $headers['AUTHORIZATION'] = $headers['PHP_AUTH_DIGEST']; } return $headers; } }
SILENT KILLER Tool