mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 23:29:57 +09:00
17515512: JanRain php-openid library included, normalization fix
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5137 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f541dd59b9
commit
658c0e6dbc
219 changed files with 41415 additions and 10 deletions
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
require_once "lib/session.php";
|
||||
require_once "lib/render.php";
|
||||
|
||||
define('trust_form_pat',
|
||||
'<div class="form">
|
||||
<p>Do you wish to confirm your identity URL (<code>%s</code>) with <code>%s</code>?</p>
|
||||
<form method="post" action="%s">
|
||||
<input type="checkbox" name="remember" value="on" id="remember"><label
|
||||
for="remember">Remember this decision</label>
|
||||
<br />
|
||||
<input type="submit" name="trust" value="Confirm" />
|
||||
<input type="submit" value="Do not confirm" />
|
||||
</form>
|
||||
</div>
|
||||
');
|
||||
|
||||
function trust_render($info)
|
||||
{
|
||||
$current_user = getLoggedInUser();
|
||||
$lnk = link_render($current_user);
|
||||
$trust_root = htmlspecialchars($info->trust_root);
|
||||
$trust_url = buildURL('trust', true);
|
||||
$form = sprintf(trust_form_pat, $lnk, $trust_root, $trust_url);
|
||||
return page_render($form, $current_user, 'Trust This Site');
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue