source/Core/Request.php
public function getRequestUrl($sParams = '', $blReturnUrl = false)
    {
        $requestUrl = '';
        if ($_SERVER["REQUEST_METHOD"] != "POST") {
            if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI']) {
                $rawRequestUrl = $_SERVER['REQUEST_URI'];
            } else {
                $rawRequestUrl = $_SERVER['SCRIPT_URI'];
            }

            // trying to resolve controller file name
            if ($rawRequestUrl && ($iPos = stripos($rawRequestUrl, '?')) !== false) {
                $string = getStr();
                // formatting request url
                $requestUrl = 'index.php' . $string->substr($rawRequestUrl, $iPos);

                // removing possible session id
                $requestUrl = $string->preg_replace('/(&|\?)(force_)?(admin_)?sid=[^&]*&?/', '$1', $requestUrl);
                $requestUrl = $string->preg_replace('/(&|\?)stoken=[^&]*&?/', '$1', $requestUrl);
                $requestUrl = $string->preg_replace('/&$/', '', $requestUrl);
                $requestUrl = str_replace('&', '&amp;', $requestUrl);
            }
        }

        return $requestUrl;
    }
public function getRequestUrl($sParams = '', $blReturnUrl = false)
    {
        $requestUrl = '';
        if ($_SERVER["REQUEST_METHOD"] != "POST") {
            if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI']) {
                $rawRequestUrl = $_SERVER['REQUEST_URI'];
            } else {
                $rawRequestUrl = $_SERVER['SCRIPT_URI'];
            }

            // trying to resolve controller file name
            if ($rawRequestUrl && ($iPos = stripos($rawRequestUrl, '?')) !== false) {
                $string = getStr();
                // formatting request url
                $requestUrl = 'index.php' . $string->substr($rawRequestUrl, $iPos);

                // removing possible session id
                $requestUrl = $string->preg_replace('/(&|\?)(force_)?(admin_)?sid=[^&]*&?/', '$1', $requestUrl);
                $requestUrl = $string->preg_replace('/(&|\?)stoken=[^&]*&?/', '$1', $requestUrl);
                $requestUrl = $string->preg_replace('/&$/', '', $requestUrl);
                $requestUrl = str_replace('&', '&amp;', $requestUrl);
            }
        }

        return $requestUrl;
    }
public function getRequestUrl ( $ sParams = '' , $ blReturnUrl = false ) { $ requestUrl = '' ; if ( $ _SERVER [ "REQUEST_METHOD" ] != "POST" ) { if ( isset ( $ _SERVER [ 'REQUEST_URI' ] ) && $ _SERVER [ 'REQUEST_URI' ] ) { $ rawRequestUrl = $ _SERVER [ 'REQUEST_URI' ] ; } else { $ rawRequestUrl = $ _SERVER [ 'SCRIPT_URI' ] ; } // trying to resolve controller file name if ( $ rawRequestUrl && ( $ iPos = stripos ( $ rawRequestUrl , '?' ) ) !== false ) { $ string = getStr ( ) ; // formatting request url $ requestUrl = 'index.php' . $ string -> substr ( $ rawRequestUrl , $ iPos ) ; // removing possible session id $ requestUrl = $ string -> preg_replace ( '/(&|\?)(force_)?(admin_)?sid=[^&]*&?/' , '$1' , $ requestUrl ) ; $ requestUrl = $ string -> preg_replace ( '/(&|\?)stoken=[^&]*&?/' , '$1' , $ requestUrl ) ; $ requestUrl = $ string -> preg_replace ( '/&$/' , '' , $ requestUrl ) ; $ requestUrl = str_replace ( '&' , '&amp;' , $ requestUrl ) ; } } return $ requestUrl ; }
Returns request url, which was executed to render current page view

@param string $sParams     Parameters to object
@param bool   $blReturnUrl If return url

@return string
Returns request url which was executed to render current page view