1 |
1773
|
Luisehahne
|
<?php
|
2 |
|
|
/**
|
3 |
|
|
*
|
4 |
|
|
* @category frontend
|
5 |
|
|
* @package account
|
6 |
|
|
* @author WebsiteBaker Project
|
7 |
|
|
* @copyright 2009-2012, WebsiteBaker Org. e.V.
|
8 |
|
|
* @link http://www.websitebaker2.org/
|
9 |
|
|
* @license http://www.gnu.org/licenses/gpl.html
|
10 |
|
|
* @platform WebsiteBaker 2.8.x
|
11 |
|
|
* @requirements PHP 5.2.2 and higher
|
12 |
|
|
* @version $Id$
|
13 |
|
|
* @filesource $HeadURL$
|
14 |
|
|
* @lastmodified $Date$
|
15 |
|
|
*
|
16 |
|
|
*/
|
17 |
|
|
|
18 |
|
|
require_once('../config.php');
|
19 |
|
|
|
20 |
|
|
require_once(WB_PATH.'/framework/class.admin.php');
|
21 |
|
|
// Create new frontend object
|
22 |
|
|
$wb = new admin();
|
23 |
|
|
|
24 |
|
|
//require_once(dirname(__FILE__).'/AccountSignup.php');
|
25 |
|
|
|
26 |
|
|
// load module language file
|
27 |
1777
|
Luisehahne
|
$sAutoLanguage = isset($_SESSION['LANGUAGE']) ? $_SESSION['LANGUAGE'] : AccountSignup::GetBowserLanguage(DEFAULT_LANGUAGE);
|
28 |
1773
|
Luisehahne
|
|
29 |
|
|
$mLang = ModLanguage::getInstance();
|
30 |
|
|
$mLang->setLanguage(dirname(__FILE__).'/languages/', $sAutoLanguage, DEFAULT_LANGUAGE);
|
31 |
|
|
|
32 |
|
|
// form faked? Check the honeypot-fields.
|
33 |
|
|
if(ENABLED_ASP && isset($_POST['username']) && (
|
34 |
|
|
(!isset($_POST['submitted_when']) OR !isset($_SESSION['submitted_when']) ) OR
|
35 |
|
|
($_POST['submitted_when'] != $_SESSION['submitted_when']) OR
|
36 |
|
|
(!isset($_POST['email-address']) OR $_POST['email-address']) OR
|
37 |
|
|
(!isset($_POST['name']) OR $_POST['name']) OR
|
38 |
|
|
(!isset($_POST['full_name']) OR $_POST['full_name'])
|
39 |
|
|
))
|
40 |
|
|
{
|
41 |
|
|
$wb->send_header(WB_URL.'/index.php');
|
42 |
|
|
}
|
43 |
|
|
|
44 |
|
|
$page_id = isset($_SESSION['PAGE_ID']) ? intval($_SESSION['PAGE_ID']) : 0;
|
45 |
|
|
// needed for backlink/cancel
|
46 |
|
|
$_SESSION['HTTP_REFERER'] = isset($_SESSION['HTTP_REFERER']) ? ($_SESSION['HTTP_REFERER']) : WB_URL.'/';
|
47 |
|
|
// action modus
|
48 |
|
|
$_POST['action'] = !isset($_POST['action']) ? 'show' : $_POST['action'];
|
49 |
|
|
|
50 |
|
|
$page_description = '';
|
51 |
|
|
$page_keywords = '';
|
52 |
|
|
define('PAGE_ID', $page_id);
|
53 |
|
|
define('ROOT_PARENT', 0);
|
54 |
|
|
define('PARENT', 0);
|
55 |
|
|
define('LEVEL', 0);
|
56 |
|
|
define('PAGE_TITLE', $TEXT['SIGNUP']);
|
57 |
|
|
define('MENU_TITLE', $TEXT['SIGNUP']);
|
58 |
|
|
define('MODULE', '');
|
59 |
|
|
define('VISIBILITY', 'public');
|
60 |
|
|
|
61 |
|
|
define('PAGE_CONTENT', WB_PATH.'/account/confirm_form.php');
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
// Include the index (wrapper) file
|
65 |
|
|
require(WB_PATH.'/index.php');
|