diff options
author | Sem <sembrestels@riseup.net> | 2013-11-09 16:26:19 +0100 |
---|---|---|
committer | Sem <sembrestels@riseup.net> | 2013-11-09 16:26:19 +0100 |
commit | 5cc7f96262509b2a5d43fa6fbb6cd083064385be (patch) | |
tree | c2de1ca30876063882cbbb0818d1d618cc6da4c4 /mod/openid_server/views/default/forms/openid_server/trust.php | |
parent | 2161e2335c9c650b8e44a56f6c9b0bd37546ae1f (diff) | |
parent | b6c722ac63d250972fea066b30e58026d00ab3e2 (diff) | |
download | elgg-5cc7f96262509b2a5d43fa6fbb6cd083064385be.tar.gz elgg-5cc7f96262509b2a5d43fa6fbb6cd083064385be.tar.bz2 |
Add 'mod/openid_server/' from commit 'b6c722ac63d250972fea066b30e58026d00ab3e2'
git-subtree-dir: mod/openid_server
git-subtree-mainline: 2161e2335c9c650b8e44a56f6c9b0bd37546ae1f
git-subtree-split: b6c722ac63d250972fea066b30e58026d00ab3e2
Diffstat (limited to 'mod/openid_server/views/default/forms/openid_server/trust.php')
-rwxr-xr-x | mod/openid_server/views/default/forms/openid_server/trust.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/mod/openid_server/views/default/forms/openid_server/trust.php b/mod/openid_server/views/default/forms/openid_server/trust.php new file mode 100755 index 000000000..b9e4c3333 --- /dev/null +++ b/mod/openid_server/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>';
|