]> andersk Git - sql-web.git/blob - tpl/login.php
34dd8fefb4b64c03c86e1ff1e2bfc1a64aea32a3
[sql-web.git] / tpl / login.php
1 <?php
2 include '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>
16 <p>username: <input type="text" name="u"></p>
17 <p>password: <input type="password" name="p"></p>
18
19 <?php elseif (isSSL() && !empty($SSLCred)): ?>
20
21 <form method=post>
22 <h3>You are identified as: <?=$SSLUsername?></h3>
23 <p><?=$SSLName?></p>
24 <p><?=$SSLEmail?></p>
25
26 <?php endif; ?>
27
28 <?php if (!isSSL() || $LoginSSL->canLogin()): ?>
29
30 <input type=submit value="Login<?=$thisTxt?>">
31 </form>
32
33 <?php elseif (isSSL() && !is_null($SSLCred)): ?>
34
35 <h3><a href="signup">Signup</a> to use this service.</h3>
36
37 <?php endif; ?>
38
39 <?php
40 include 'foot.php';
41 ?>
This page took 0.024749 seconds and 3 git commands to generate.