]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | include 'head.php'; | |
3 | ||
4 | $thisTxt = isSSL()?' using this Certificate':' using your MySQL Password'; | |
5 | ?> | |
6 | ||
7 | <h3>Login</h3> | |
8 | ||
9 | <?php printErrors($err); ?> | |
10 | ||
11 | <?php if (!isSSL()): ?> | |
12 | ||
13 | <form method=post action="<?=$URI?>"> | |
14 | <p>Please enter your MySQL login information:</p> | |
15 | <p>username: <input type="text" name="u" value="<?=isset($i_u)?$i_u:''?>"></p> | |
16 | <p>password: <input type="password" name="p"></p> | |
17 | ||
18 | <?php elseif (isSSL() && !empty($SSLCred)): ?> | |
19 | ||
20 | <form method=post action="<?=$URI?>"> | |
21 | <p>You are identified as: <?=$SSLUsername?></p> | |
22 | <p><?=$SSLName?></p> | |
23 | <p><?=$SSLEmail?></p> | |
24 | ||
25 | <?php endif; ?> | |
26 | ||
27 | <?php if (!isSSL() || $LoginSSL->canLogin()): ?> | |
28 | ||
29 | <input type=submit value="Login<?=$thisTxt?>"> | |
30 | </form> | |
31 | ||
32 | <?php elseif (isSSL() && !is_null($SSLCred)): ?> | |
33 | ||
34 | <p><a href="do/signup">Sign up</a> to use this service.</p> | |
35 | ||
36 | <?php endif; ?> | |
37 | ||
38 | <?php | |
39 | include 'foot.php'; | |
40 | ?> |