From 53cb4c16ed85b09706676540e8bf704188f32c41 Mon Sep 17 00:00:00 2001 From: Kamil Domanski Date: Fri, 24 Jun 2011 00:24:45 +0200 Subject: [PATCH] add template to openid request page --- apps/user_openid/phpmyid.php | 7 ++++--- apps/user_openid/templates/nomode.php | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 apps/user_openid/templates/nomode.php diff --git a/apps/user_openid/phpmyid.php b/apps/user_openid/phpmyid.php index 719bbd954c..330cd466c4 100644 --- a/apps/user_openid/phpmyid.php +++ b/apps/user_openid/phpmyid.php @@ -12,6 +12,8 @@ * @version 0.9 */ +require( 'template.php' ); + /** * Set a constant to indicate that phpMyID is running @@ -558,9 +560,8 @@ function logout_mode () { * @global array $profile */ function no_mode () { - global $profile; - - wrap_html('This is an OpenID server endpoint. For more information, see http://openid.net/
Server: ' . $profile['idp_url'] . '
Realm: ' . $profile['php_realm'] . '
Login' . ($profile['allow_test'] === true ? ' | Test' : null)); + $tmpl = new OC_TEMPLATE( 'user_openid', 'nomode', 'guest' ); + $tmpl->printPage(); } diff --git a/apps/user_openid/templates/nomode.php b/apps/user_openid/templates/nomode.php new file mode 100644 index 0000000000..13a1a89493 --- /dev/null +++ b/apps/user_openid/templates/nomode.php @@ -0,0 +1,23 @@ + + +
+ " alt="ownCloud" /> + +
+