summaryrefslogtreecommitdiffstats
path: root/apps/user_openid/templates
diff options
context:
space:
mode:
authorKamil Domanski <kdomanski@kdemail.net>2011-06-24 00:24:45 +0200
committerKamil Domanski <kdomanski@kdemail.net>2011-06-24 00:27:46 +0200
commit53cb4c16ed85b09706676540e8bf704188f32c41 (patch)
tree5c8d657cc941db2883d56904433fdab33ffcab09 /apps/user_openid/templates
parent2073d3b08e97675a1f418b44a4e7c72039da2149 (diff)
downloadnextcloud-server-53cb4c16ed85b09706676540e8bf704188f32c41.tar.gz
nextcloud-server-53cb4c16ed85b09706676540e8bf704188f32c41.zip
add template to openid request page
Diffstat (limited to 'apps/user_openid/templates')
-rw-r--r--apps/user_openid/templates/nomode.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/apps/user_openid/templates/nomode.php b/apps/user_openid/templates/nomode.php
new file mode 100644
index 00000000000..13a1a894931
--- /dev/null
+++ b/apps/user_openid/templates/nomode.php
@@ -0,0 +1,23 @@
+<?php
+
+global $profile;
+
+?>
+
+<div id="login">
+ <img src="<?php echo image_path("", "weather-clear.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 } ?>
+ </div>
+ </li>
+ </ul>
+</div>
+