function xrds($force=null)
    {
        if($force) {
            echo $this->xrdsContent();
            die();
        } elseif($force === false) {
            header('X-XRDS-Location: '. $this->xrdsLocation);
            return;
        }
        
        if (isset($_GET['xrds'])
            || (isset($_SERVER['HTTP_ACCEPT']) &&  strpos($_SERVER['HTTP_ACCEPT'], 'application/xrds+xml') !== false)
        ) {
            header('Content-Type: application/xrds+xml');
            echo $this->xrdsContent();
            die();
        }
        
        header('X-XRDS-Location: ' . $this->xrdsLocation);
    }
function xrds($force=null)
    {
        if($force) {
            echo $this->xrdsContent();
            die();
        } elseif($force === false) {
            header('X-XRDS-Location: '. $this->xrdsLocation);
            return;
        }
        
        if (isset($_GET['xrds'])
            || (isset($_SERVER['HTTP_ACCEPT']) &&  strpos($_SERVER['HTTP_ACCEPT'], 'application/xrds+xml') !== false)
        ) {
            header('Content-Type: application/xrds+xml');
            echo $this->xrdsContent();
            die();
        }
        
        header('X-XRDS-Location: ' . $this->xrdsLocation);
    }
function xrds ( $ force = null ) { if ( $ force ) { echo $ this -> xrdsContent ( ) ; die ( ) ; } elseif ( $ force === false ) { header ( 'X-XRDS-Location: ' . $ this -> xrdsLocation ) ; return ; } if ( isset ( $ _GET [ 'xrds' ] ) || ( isset ( $ _SERVER [ 'HTTP_ACCEPT' ] ) && strpos ( $ _SERVER [ 'HTTP_ACCEPT' ] , 'application/xrds+xml' ) !== false ) ) { header ( 'Content-Type: application/xrds+xml' ) ; echo $ this -> xrdsContent ( ) ; die ( ) ; } header ( 'X-XRDS-Location: ' . $ this -> xrdsLocation ) ; }
Displays an XRDS document, or redirects to it.
By default, it detects whether it should display or redirect automatically.
@param bool|null $force When true, always display the document, when false always redirect.
Displays an XRDS document or redirects to it . By default it detects whether it should display or redirect automatically .