Project

General

Profile

1 1262 Luisehahne
<?php
2
/**
3
 *
4
 * @category        frontend
5
 * @package         account
6 1268 Luisehahne
 * @author          WebsiteBaker Project
7 1262 Luisehahne
 * @copyright       2004-2009, Ryan Djurovich
8 1349 Luisehahne
 * @copyright       2009-2011, Website Baker Org. e.V.
9 1262 Luisehahne
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12 1374 Luisehahne
 * @requirements    PHP 5.2.2 and higher
13 1268 Luisehahne
 * @version         $Id$
14
 * @filesource		$HeadURL$
15 1262 Luisehahne
 * @lastmodified    $Date$
16
 *
17
 */
18
19
require_once('../config.php');
20
21
if(!is_numeric(FRONTEND_SIGNUP)) {
22
	if(INTRO_PAGE) {
23
		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
24
		exit(0);
25
	} else {
26
		header('Location: '.WB_URL.'/index.php');
27
		exit(0);
28
	}
29
}
30
31
if(ENABLED_ASP && isset($_POST['username']) && ( // form faked? Check the honeypot-fields.
32
	(!isset($_POST['submitted_when']) OR !isset($_SESSION['submitted_when'])) OR
33
	($_POST['submitted_when'] != $_SESSION['submitted_when']) OR
34
	(!isset($_POST['email-address']) OR $_POST['email-address']) OR
35
	(!isset($_POST['name']) OR $_POST['name']) OR
36
	(!isset($_POST['full_name']) OR $_POST['full_name'])
37
)) {
38
	exit(header("Location: ".WB_URL.PAGES_DIRECTORY.""));
39
}
40
41
// Load the language file
42
if(!file_exists(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php')) {
43
	exit('Error loading language file '.DEFAULT_LANGUAGE.', please check configuration');
44
} else {
45
	require_once(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php');
46
	$load_language = false;
47
}
48
49
50
// Required page details
51
$page_id = 0;
52
$page_description = '';
53
$page_keywords = '';
54
define('PAGE_ID', 0);
55
define('ROOT_PARENT', 0);
56
define('PARENT', 0);
57
define('LEVEL', 0);
58
define('PAGE_TITLE', $TEXT['SIGNUP']);
59
define('MENU_TITLE', $TEXT['SIGNUP']);
60
define('MODULE', '');
61
define('VISIBILITY', 'public');
62
63
// Set the page content include file
64
if(isset($_POST['username'])) {
65
	define('PAGE_CONTENT', WB_PATH.'/account/signup2.php');
66
} else {
67
	define('PAGE_CONTENT', WB_PATH.'/account/signup_form.php');
68
}
69
70
// Set auto authentication to false
71
$auto_auth = false;
72
73
// Include the index (wrapper) file
74
require(WB_PATH.'/index.php');
75
76 4 ryan
?>