register.php 1.2 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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") {
22
23
	list($success, $message) = process_account_form(
			"new", "NewAccount", in_request("U"), 1, 0,
24
			in_request("E"), in_request("H"), '', '', in_request("R"),
25
26
27
			in_request("L"), in_request("I"), in_request("K"),
			in_request("PK"));

28
29
30
31
	print $message;

	if (!$success) {
		display_account_form("NewAccount", in_request("U"), 1, 0,
32
			in_request("E"), in_request("H"), '', '', in_request("R"),
33
34
35
			in_request("L"), in_request("I"), in_request("K"),
			in_request("PK"));
	}
36
} else {
Marcel Korpel's avatar
Marcel Korpel committed
37
	print '<p>' . __("Use this form to create an account.") . '</p>';
38
	display_account_form("NewAccount", "", "", "", "", "", "", "", "", $LANG);
39
40
41
42
43
44
45
}

echo '</div>';

html_footer(AURWEB_VERSION);

?>