$this->make_hook('openid', AUTH_PUBLIC), ); } function handler_openid(&$page, $x = null) { // Determines the user whose openid we are going to display if (is_null($x)) { return PL_NOT_FOUND; } $login = S::logged() ? User::get($x) : User::getSilent($x); if (!$login) { return PL_NOT_FOUND; } // Select template $page->changeTpl('openid/openid.tpl'); // Sets the title of the html page. $page->setTitle($login->fullName()); // Sets the tags for HTML-Based Discovery $page->addLink('openid.server openid2.provider', $globals->baseurl . '/openid'); $page->addLink('openid.delegate openid2.local_id', $login->hruid); // Adds the global user property array to the display. $page->assign_by_ref('user', $login); } } // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>