aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms
diff options
context:
space:
mode:
authorPablo Martin <caedes@sindominio.net>2012-10-17 02:38:11 +0000
committerPablo Martin <caedes@sindominio.net>2012-10-17 02:38:11 +0000
commit0b8b67d74a51586c5a45012e9e0f7bbe54f7e954 (patch)
treec091196f6359bc7d6aa0c39b3ec061e0c2c7c983 /views/default/forms
downloadelgg-0b8b67d74a51586c5a45012e9e0f7bbe54f7e954.tar.gz
elgg-0b8b67d74a51586c5a45012e9e0f7bbe54f7e954.tar.bz2
Elgg OpenID server adapted for Elgg 1.8.
Diffstat (limited to 'views/default/forms')
-rwxr-xr-xviews/default/forms/openid_server/trust.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/views/default/forms/openid_server/trust.php b/views/default/forms/openid_server/trust.php
new file mode 100755
index 000000000..3dac9b648
--- /dev/null
+++ b/views/default/forms/openid_server/trust.php
@@ -0,0 +1,34 @@
+<?php
+
+/**
+ * Elgg openid_server trust page
+ *
+ * @package openid_server
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Kevin Jardiner <kevin@radagast.biz>
+ * @copyright Curverider Ltd 2008-2009
+ * @link http://elgg.com/
+ *
+ * @uses the following values in $vars:
+ *
+ * 'openid' the user's OpenID
+ * 'trust_root' the trust root for the OpenID client requesting authentication
+ */
+
+$user = elgg_get_logged_in_user_entity();
+$openid_trust_root = elgg_extract('openid_trust_root', $vars);
+
+echo '<div>' . elgg_echo('openid_server:trust_question', array($openid_trust_root, elgg_get_site_entity()->name, $user->username));
+
+/*echo '<div class="mll">'.elgg_view('input/checkbox', array(
+ 'name' => 'name',
+*/
+
+echo '<div class="elgg-footer">';
+echo elgg_view('input/hidden', array('name' => 'trust_root', 'value' => $openid_trust_root));
+echo elgg_view('input/submit', array('name' => 'trust', 'value' => elgg_echo('openid_server:confirm_trust')));
+echo elgg_view('input/submit', array('name' => 'reject', 'value' => elgg_echo('openid_server:reject_trust')));
+echo '</div>';
+
+echo '<div>'.elgg_view('input/checkbox', array('name' => 'remember', 'id' => 'remember', 'checked' => true));
+echo '<label for="remember">'.elgg_echo('openid_server:remember_trust') .'</label></div>';