mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 10:19:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5137 201d5d3c-b55e-5fd7-737f-ddc643e51545
29 lines
No EOL
862 B
PHP
29 lines
No EOL
862 B
PHP
<?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');
|
|
}
|
|
|
|
?>
|