getRequest()->getRequestUri()); } public function idAction() { $currentUrl = Zend_OpenId::selfURL(); if ($this->_config->subdomain->enabled) { $protocol = $this->_getProtocol(); preg_match('#(.*)\.'.$this->_config->subdomain->hostname.'#', $currentUrl, $matches); $this->view->headLink()->headLink(array( 'rel' => 'openid.server', 'href' => "$protocol://" . ($this->_config->subdomain->use_www? 'www.' : '') . $this->_config->subdomain->hostname . '/openid/provider' )); $this->view->headLink()->headLink(array( 'rel' => 'openid2.provider', 'href' => "$protocol://" . ($this->_config->subdomain->use_www? 'www.' : '') . $this->_config->subdomain->hostname . '/openid/provider' )); } else { preg_match('#(.*)/identity/#', $currentUrl, $matches); $this->view->headLink()->headLink(array( 'rel' => 'openid.server', 'href' => $matches[1] . '/openid/provider', )); $this->view->headLink()->headLink(array( 'rel' => 'openid2.provider', 'href' => $matches[1] . '/openid/provider', )); } $this->view->idUrl = $currentUrl; } }