summaryrefslogtreecommitdiffstats
path: root/web/html/register.php
blob: 843fea9742b8d38ffe8197532790b46ec12c8c89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php

set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');

include_once('aur.inc.php');         # access AUR common functions
include_once('acctfuncs.inc.php');   # access Account specific functions

set_lang();                 # this sets up the visitor's language
check_sid();                # see if they're still logged in

if (isset($_COOKIE["AURSID"])) {
	header('Location: /');
	exit();
}

html_header(__('Register'));

echo '<div class="box">';
echo '<h2>' . __('Register') . '</h2>';

if (in_request("Action") == "NewAccount") {
	list($success, $message) = process_account_form(
		"new",
		"NewAccount",
		in_request("U"),
		1,
		0,
		in_request("E"),
		in_request("H"),
		'',
		'',
		in_request("R"),
		in_request("L"),
		in_request("TZ"),
		in_request("HP"),
		in_request("I"),
		in_request("K"),
		in_request("PK"),
		0,
		in_request("CN"),
		in_request("UN"),
		in_request("ON"));

	print $message;

	if (!$success) {
		display_account_form("NewAccount",
			in_request("U"),
			1,
			0,
			in_request("E"),
			in_request("H"),
			'',
			'',
			in_request("R"),
			in_request("L"),
			in_request("TZ"),
			in_request("HP"),
			in_request("I"),
			in_request("K"),
			in_request("PK"),
			0,
			in_request("CN"),
			in_request("UN"),
			in_request("ON"));
	}
} else {
	print '<p>' . __("Use this form to create an account.") . '</p>';
	display_account_form("NewAccount", "", "", "", "", "", "", "", "", $LANG);
}

echo '</div>';

html_footer(AURWEB_VERSION);

?>