]> andersk Git - sql-web.git/blame - tpl/login.php
form submit bug preventing signups
[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
7<h2>Login</h2>
8
9<?php printErrors($err); ?>
10
11<?php if (!isSSL()): ?>
12
53f8750e 13<form method=post action="<?=$URI?>">
b932757d 14<h3>Please enter your MySQL login information:</h3>
1b2f1c8d 15<p>username: <input type="text" name="u" value="<?=isset($i_u)?$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?>">
1389493c 21<h3>You are identified as: <?=$SSLUsername?></h3>
dc478ec8
JP
22<p><?=$SSLName?></p>
23<p><?=$SSLEmail?></p>
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
b932757d 34<h3><a href="do/signup">Sign up</a> to use this service.</h3>
dc478ec8
JP
35
36<?php endif; ?>
37
38<?php
39include 'foot.php';
40?>
This page took 0.077664 seconds and 5 git commands to generate.