]>
Commit | Line | Data |
---|---|---|
dc478ec8 JP |
1 | <?php |
2 | ||
3 | require_once('mitsql.cfg.php'); | |
4 | require_once('mitsql.lib.php'); | |
5 | ||
6 | if (!isSSL()) | |
1389493c | 7 | redirect('signup',true); |
dc478ec8 JP |
8 | |
9 | if (isLoggedIn()) { | |
10 | ||
11 | redirect('index'); | |
12 | ||
13 | } else { | |
50855303 JP |
14 | |
15 | if (is_null($SSLCred)) { | |
16 | $err[] = 'Please install a valid certificate.'; | |
17 | } else { | |
1389493c JP |
18 | if (isPost() && $LoginSSL->canSignup()) { |
19 | $u = new User($LoginSSL->getUserId()); | |
20 | $u->signup($i_p1); | |
21 | $LoginSSL->refresh(); | |
22 | sess('Login', $LoginSSL); | |
23 | redirect('login', true); | |
24 | } | |
dc478ec8 | 25 | } |
dc478ec8 JP |
26 | } |
27 | ||
28 | include 'tpl/signup.php'; | |
29 | ||
30 | ?> |