* @global array $profile
*/
function no_mode () {
+ global $USERNAME;
$tmpl = new OC_TEMPLATE( 'user_openid', 'nomode', 'guest' );
+ $tmpl->assign('user',$USERNAME);
$tmpl->printPage();
}
// Set a default authentication realm
if (! array_key_exists('auth_realm', $profile))
- $profile['auth_realm'] = 'phpMyID';
+ $profile['auth_realm'] = 'ownCloud';
// Determine the realm for digest authentication - DO NOT OVERRIDE
$profile['php_realm'] = $profile['auth_realm'] . (ini_get('safe_mode') ? '-' . getmyuid() : '');
?>
<div id="login">
- <img src="<?php echo image_path("", "weather-clear.png"); ?>" alt="ownCloud" />
+ <img src="<?php echo image_path("", "owncloud-logo-medium-white.png"); ?>" alt="ownCloud" />
<ul>
<li class='error'>
<div id="setup_form">
- <p><?php echo($l->t('This is an OpenID server endpoint. For more information, see http://openid.net/'));?></p>
- <p><?php echo($l->t('Server: <b>').$profile['idp_url']); ?></b>
- <p><?php echo($l->t('Realm: <b>').$profile['php_realm']); ?></b>
- <p><a href="<?php echo($profile['idp_url']); ?>?openid.mode=login"><?php echo($l->t('Login')); ?></a>
- <?php if($profile['allow_test'] === true){ ?>
- | <a href="<?php echo($profile['idp_url']); ?>?openid.mode=test">Test</a>
- <?php } ?>
+ <p><?php echo($l->t('This is an OpenID server endpoint. For more information, see '));?><a href='http://openid.net/' title='openid.net'>http://openid.net/</a></p>
+ <?php if($_['user']):?>
+ <p><?php echo($l->t('Identity: <b>').$profile['idp_url']); ?></b></p>
+ <p><?php echo($l->t('Realm: <b>').$profile['php_realm']); ?></b></p>
+ <p><?php echo($l->t('User: <b>').$_['user']); ?></b>
+ <p><a href="<?php echo($profile['idp_url']); ?>?openid.mode=login"><?php echo($l->t('Login')); ?></a>
+ <?php if($profile['allow_test'] === true): ?>
+ <a href="<?php echo($profile['idp_url']); ?>?openid.mode=test">Test</a>
+ <?php endif; ?>
+ <?php else: ?>
+ <p><?php echo($l->t('Error: <b>No user Selected')); ?></p>
+ <?php endif; ?>
</div>
</li>
</ul>