]>
Commit | Line | Data |
---|---|---|
997305cf JP |
1 | <?php |
2 | ||
3 | require_once('mitsql.cfg.php'); | |
4 | require_once('mitsql.lib.php'); | |
5 | ||
6 | if (isPost() && isSSL()) { | |
7 | $cred = getSSLCert(); | |
8 | if (count($cred)) { | |
9 | $Login = new Login($cred['Username']); | |
10 | if (!$Login->exists()) { | |
11 | addUser($cred); | |
12 | $Login->refresh(); | |
13 | } | |
14 | } else { | |
15 | $err[] = 'Your SSL certificate failed to identify you.'; | |
16 | } | |
17 | } elseif (isPost()) { | |
18 | } elseif (isSSL()) { | |
19 | require('tpl/login_ssl.php'); | |
20 | } else { | |
21 | } | |
22 | ||
23 | if (isLoggedIn()) | |
24 | redirect('main'); | |
25 | ||
26 | ?> |