]> andersk Git - sql-web.git/blame - tpl/login.php
git-svn-id: svn://presbrey.mit.edu/sql/mitsql@37 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[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>
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 identifed as: <?=$SSLUsername?></h3>
23<p><?=$SSLName?></p>
24<p><?=$SSLEmail?></p>
25
26<?php endif; ?>
27
28<?php if (!isSSL() || $Login2->canLogin()): ?>
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.046513 seconds and 5 git commands to generate.