Project

General

Profile

1
<?php
2
/**
3
 *
4
 * @category        frontend
5
 * @package         account
6
 * @author          WebsiteBaker Project
7
 * @copyright       2004-2009, Ryan Djurovich
8
 * @copyright       2009-2010, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
10
 * @license         http://www.gnu.org/licenses/gpl.html
11
 * @platform        WebsiteBaker 2.8.x
12
 * @requirements    PHP 4.3.4 and higher
13
 * @version         $Id: signup.php 1289 2010-02-10 15:13:21Z kweitzel $
14
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/trunk/wb/account/signup.php $
15
 * @lastmodified    $Date: 2010-02-10 16:13:21 +0100 (Wed, 10 Feb 2010) $
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
?>
(12-12/14)