]>
Commit | Line | Data |
---|---|---|
dc478ec8 JP |
1 | <?php |
2 | include '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> |
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?>"> |
aaf1710a | 21 | <p>You are identified as: <?=$SSLUsername?></p> |
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 | |
aaf1710a | 34 | <p><a href="do/signup">Sign up</a> to use this service.</p> |
dc478ec8 JP |
35 | |
36 | <?php endif; ?> | |
37 | ||
38 | <?php | |
39 | include 'foot.php'; | |
40 | ?> |