]> andersk Git - sql-web.git/blame - tpl/login.php
Fix failure to escape HTML on login page
[sql-web.git] / tpl / login.php
CommitLineData
dc478ec8
JP
1<?php
2include 'head.php';
3
b932757d 4$thisTxt = isSSL()?' using this Certificate':' using your MySQL Password';
dc478ec8
JP
5?>
6
aaf1710a 7<h3>Login</h3>
dc478ec8
JP
8
9<?php printErrors($err); ?>
10
11<?php if (!isSSL()): ?>
12
53f8750e 13<form method=post action="<?=$URI?>">
aaf1710a 14<p>Please enter your MySQL login information:</p>
4d357007 15<p>username: <input type="text" name="u" value="<?=isset($i_u)?htmlentities($i_u):''?>"></p>
dc478ec8
JP
16<p>password: <input type="password" name="p"></p>
17
18<?php elseif (isSSL() && !empty($SSLCred)): ?>
19
53f8750e 20<form method=post action="<?=$URI?>">
4d357007
AD
21<p>You are identified as: <?=htmlentities($SSLUsername)?></p>
22<p><?=htmlentities($SSLName)?></p>
23<p><?=htmlentities($SSLEmail)?></p>
dc478ec8
JP
24
25<?php endif; ?>
26
1389493c 27<?php if (!isSSL() || $LoginSSL->canLogin()): ?>
dc478ec8
JP
28
29<input type=submit value="Login<?=$thisTxt?>">
30</form>
31
50855303 32<?php elseif (isSSL() && !is_null($SSLCred)): ?>
dc478ec8 33
aaf1710a 34<p><a href="do/signup">Sign up</a> to use this service.</p>
dc478ec8
JP
35
36<?php endif; ?>
37
38<?php
39include 'foot.php';
40?>
This page took 0.070283 seconds and 5 git commands to generate.