source/Core/UtilsServer.php
public function isCurrentUrl($sURL)
    {
        // Missing protocol, cannot proceed, assuming true.
        if (!$sURL || (strpos($sURL, "http") !== 0)) {
            return true;
        }

        $sServerHost = $this->getServerVar('HTTP_HOST');
        $blIsCurrentUrl = $this->_isCurrentUrl($sURL, $sServerHost);
        if (!$blIsCurrentUrl) {
            $sServerHost = $this->getServerVar('HTTP_X_FORWARDED_HOST');
            if ($sServerHost) {
                $blIsCurrentUrl = $this->_isCurrentUrl($sURL, $sServerHost);
            }
        }

        return $blIsCurrentUrl;
    }
public function isCurrentUrl($sURL)
    {
        // Missing protocol, cannot proceed, assuming true.
        if (!$sURL || (strpos($sURL, "http") !== 0)) {
            return true;
        }

        $sServerHost = $this->getServerVar('HTTP_HOST');
        $blIsCurrentUrl = $this->_isCurrentUrl($sURL, $sServerHost);
        if (!$blIsCurrentUrl) {
            $sServerHost = $this->getServerVar('HTTP_X_FORWARDED_HOST');
            if ($sServerHost) {
                $blIsCurrentUrl = $this->_isCurrentUrl($sURL, $sServerHost);
            }
        }

        return $blIsCurrentUrl;
    }
public function isCurrentUrl ( $ sURL ) { // Missing protocol, cannot proceed, assuming true. if ( ! $ sURL || ( strpos ( $ sURL , "http" ) !== 0 ) ) { return true ; } $ sServerHost = $ this -> getServerVar ( 'HTTP_HOST' ) ; $ blIsCurrentUrl = $ this -> _isCurrentUrl ( $ sURL , $ sServerHost ) ; if ( ! $ blIsCurrentUrl ) { $ sServerHost = $ this -> getServerVar ( 'HTTP_X_FORWARDED_HOST' ) ; if ( $ sServerHost ) { $ blIsCurrentUrl = $ this -> _isCurrentUrl ( $ sURL , $ sServerHost ) ; } } return $ blIsCurrentUrl ; }
Compares current URL to supplied string

@param string $sURL URL

@return bool true if $sURL is equal to current page URL
Compares current URL to supplied string