source/Core/UtilsServer.php
public function getServerVar($sServVar = null)
    {
        $sValue = null;
        if (isset($_SERVER)) {
            if ($sServVar && isset($_SERVER[$sServVar])) {
                $sValue = $_SERVER[$sServVar];
            } elseif (!$sServVar) {
                $sValue = $_SERVER;
            }
        }

        return $sValue;
    }
public function getServerVar($sServVar = null)
    {
        $sValue = null;
        if (isset($_SERVER)) {
            if ($sServVar && isset($_SERVER[$sServVar])) {
                $sValue = $_SERVER[$sServVar];
            } elseif (!$sServVar) {
                $sValue = $_SERVER;
            }
        }

        return $sValue;
    }
public function getServerVar ( $ sServVar = null ) { $ sValue = null ; if ( isset ( $ _SERVER ) ) { if ( $ sServVar && isset ( $ _SERVER [ $ sServVar ] ) ) { $ sValue = $ _SERVER [ $ sServVar ] ; } elseif ( ! $ sServVar ) { $ sValue = $ _SERVER ; } } return $ sValue ; }
returns a server constant

@param string $sServVar optional - which server var should be returned, if null returns whole $_SERVER

@return mixed
returns a server constant