Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5995485
SuperglobalsEnv.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
620 B
Referenced Files
None
Subscribers
None
SuperglobalsEnv.php
View Options
<?php
/*
* This file is part of Psy Shell.
*
* (c) 2012-2023 Justin Hileman
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
Psy
;
/**
* Environment variables implementation via $_SERVER superglobal.
*/
class
SuperglobalsEnv
implements
EnvInterface
{
/**
* Get an environment variable by name.
*
* @return string|null
*/
public
function
get
(
string
$key
)
{
if
(
isset
(
$_SERVER
[
$key
])
&&
$_SERVER
[
$key
])
{
return
$_SERVER
[
$key
];
}
return
null
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 4 2026, 03:50 (4 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b6/35/dc14c0cc17a3e11ba2ff00615946
Default Alt Text
SuperglobalsEnv.php (620 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment