1
|
<?php
|
2
|
/**
|
3
|
*
|
4
|
* @category frontend
|
5
|
* @package account
|
6
|
* @author WebsiteBaker Project
|
7
|
* @copyright Ryan Djurovich
|
8
|
* @copyright WebsiteBaker Org. e.V.
|
9
|
* @link http://websitebaker.org/
|
10
|
* @license http://www.gnu.org/licenses/gpl.html
|
11
|
* @platform WebsiteBaker 2.8.3
|
12
|
* @requirements PHP 5.3.6 and higher
|
13
|
* @version $Id: signup.php 2 2017-07-02 15:14:29Z Manuela $
|
14
|
* @filesource $HeadURL: svn://isteam.dynxs.de/wb/2.10.x/trunk/account/signup.php $
|
15
|
* @lastmodified $Date: 2017-07-02 17:14:29 +0200 (Sun, 02 Jul 2017) $
|
16
|
*
|
17
|
*/
|
18
|
|
19
|
if ( !defined( 'WB_PATH' ) ){ require(dirname(__DIR__).'/config.php'); }
|
20
|
|
21
|
if (!(int)FRONTEND_SIGNUP || (int)($_SESSION['USER_ID'] ?: 0)) {
|
22
|
if(INTRO_PAGE) {
|
23
|
$no_intro = true;
|
24
|
}
|
25
|
include dirname(__DIR__).'/index.php';
|
26
|
}
|
27
|
|
28
|
if(ENABLED_ASP && isset($_POST['username']) && ( // form faked? Check the honeypot-fields.
|
29
|
(!isset($_POST['submitted_when']) OR !isset($_SESSION['submitted_when'])) OR
|
30
|
($_POST['submitted_when'] != $_SESSION['submitted_when']) OR
|
31
|
(!isset($_POST['email-address']) OR $_POST['email-address']) OR
|
32
|
(!isset($_POST['name']) OR $_POST['name']) OR
|
33
|
(!isset($_POST['full_name']) OR $_POST['full_name'])
|
34
|
)) {
|
35
|
exit(header("Location: ".WB_URL."/index.php"));
|
36
|
}
|
37
|
|
38
|
// Load the language file
|
39
|
if(!file_exists(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php')) {
|
40
|
exit('Error loading language file '.DEFAULT_LANGUAGE.', please check configuration');
|
41
|
} else {
|
42
|
require_once(WB_PATH.'/languages/'.DEFAULT_LANGUAGE.'.php');
|
43
|
$load_language = false;
|
44
|
}
|
45
|
$_SESSION['display_form'] = true;
|
46
|
|
47
|
$page_id = (int)($_SESSION['PAGE_ID'] ?: 0);
|
48
|
|
49
|
// Required page details
|
50
|
// $page_id = 0;
|
51
|
$page_description = '';
|
52
|
$page_keywords = '';
|
53
|
define('PAGE_ID', $page_id);
|
54
|
define('ROOT_PARENT', 0);
|
55
|
define('PARENT', 0);
|
56
|
define('LEVEL', 0);
|
57
|
define('PAGE_TITLE', $TEXT['SIGNUP']);
|
58
|
define('MENU_TITLE', $TEXT['SIGNUP']);
|
59
|
define('MODULE', '');
|
60
|
define('VISIBILITY', 'public');
|
61
|
|
62
|
// Set the page content include file
|
63
|
define('PAGE_CONTENT', WB_PATH.'/account/signup_form.php');
|
64
|
|
65
|
// Set auto authentication to false
|
66
|
$auto_auth = false;
|
67
|
|
68
|
// Include the index (wrapper) file
|
69
|
require(WB_PATH.'/index.php');
|