8
?>xml version="1.0" encoding="UTF-8"?>
10
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
11
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
12
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
14
<title>Login with authority <?php echo htmlspecialchars($host); ?></title>
20
function make_footer()
26
function show_error( $error )
30
case 'webform_not_supported':
31
$title = 'Authentication method unsupported';
32
$text = 'This Authority does not allow logins using the webform method.';
35
$title = 'No authentication key given';
36
$text = 'The site that redirected you here did not send a correct authentication key. Please try again from the beginning';
39
$title = 'No redirect URL';
40
$text = 'The site that redirected you here did not send a it\'s own address.';
43
$title = 'Internal Error';
44
$text = 'No known hash method was found to check your password.';
47
$title = 'Unknown Error';
48
$text = 'An unknown error happened.';
51
?> <div class='error'>
52
<h1><?php echo $title; ?></h1>
53
<p><?php echo $text; ?></p>
60
function show_loginform( $retry = false )
62
global $redirect, $site_key_hash, $host;
65
<form action="?" method="post">
66
<h1>Login with authority <?php echo htmlspecialchars($host); ?></h1>
70
?> <p class='retry'>The username and password you entered are wrong, please try again.</p>
74
<label for="username">Username</label>
75
<input id="username" name="username" value="<?php if ( isset($_GET['user']) ) echo $_GET['user']; ?>"/>
78
<label for="password">Password</label>
79
<input id="password" name="password" type="password" />
82
<input name="redirect" type="hidden" value="<?php echo $redirect; ?>" />
83
<input name="key" type="hidden" value="<?php echo $site_key_hash; ?>" />
84
<input name="submit" type="submit" />