]> andersk Git - sql-web.git/blame - signup.php
git-svn-id: svn://presbrey.mit.edu/sql/mitsql@46 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[sql-web.git] / signup.php
CommitLineData
dc478ec8
JP
1<?php
2
3require_once('mitsql.cfg.php');
4require_once('mitsql.lib.php');
5
6if (!isSSL())
1389493c 7 redirect('signup',true);
dc478ec8
JP
8
9if (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
28include 'tpl/signup.php';
29
30?>
This page took 1.023626 seconds and 5 git commands to generate.