]> andersk Git - sql-web.git/blame - tpl/login.php
login remember username
[sql-web.git] / tpl / login.php
CommitLineData
dc478ec8
JP
1<?php
2include 'head.php';
3
4$thisTxt = isSSL()?' with this Certificate':' via SQL';
5$otherTxt = isSSL()?' without a Certificate':' with a Certificate';
6?>
7
8<h2>Login</h2>
9
10<?php printErrors($err); ?>
11
12<?php if (!isSSL()): ?>
13
14<form method=post>
15<h3>Enter your SQL login:</h3>
1b2f1c8d 16<p>username: <input type="text" name="u" value="<?=isset($i_u)?$i_u:''?>"></p>
dc478ec8
JP
17<p>password: <input type="password" name="p"></p>
18
19<?php elseif (isSSL() && !empty($SSLCred)): ?>
20
21<form method=post>
1389493c 22<h3>You are identified as: <?=$SSLUsername?></h3>
dc478ec8
JP
23<p><?=$SSLName?></p>
24<p><?=$SSLEmail?></p>
25
26<?php endif; ?>
27
1389493c 28<?php if (!isSSL() || $LoginSSL->canLogin()): ?>
dc478ec8
JP
29
30<input type=submit value="Login<?=$thisTxt?>">
31</form>
32
50855303 33<?php elseif (isSSL() && !is_null($SSLCred)): ?>
dc478ec8
JP
34
35<h3><a href="signup">Signup</a> to use this service.</h3>
36
37<?php endif; ?>
38
39<?php
40include 'foot.php';
41?>
This page took 0.053382 seconds and 5 git commands to generate.