/** * The default information screen * @global array $profile */ function no_mode() { global $USERNAME, $profile; $tmpl = new OC_Template('user_openid', 'nomode', 'guest'); if (substr($profile['req_url'], -1, 1) !== '/') { //the identity should always end with a / $profile['req_url'] .= '/'; } $tmpl->addHeader('link', array('rel' => 'openid.server', 'href' => $profile['req_url'])); $tmpl->addHeader('link', array('rel' => 'openid.delegate', 'href' => $profile['idp_url'])); $tmpl->assign('user', $USERNAME); $tmpl->printPage(); }