Project

General

Profile

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 1792 Luisehahne
if(!class_exists('frontend', false)){ include(WB_PATH.'/framework/class.frontend.php'); }
21
22
require_once(WB_PATH.'/framework/functions.php');
23
24 1773 Luisehahne
// Create new frontend object
25 1792 Luisehahne
$wb = new frontend(false);
26 1773 Luisehahne
27
// load module language file
28 1792 Luisehahne
//$sAutoLanguage = isset($_SESSION['LANGUAGE']) ? $_SESSION['LANGUAGE'] : AccountSignup::GetBowserLanguage(DEFAULT_LANGUAGE);
29 1773 Luisehahne
30
$mLang = ModLanguage::getInstance();
31 1792 Luisehahne
$mLang->setLanguage(dirname(__FILE__).'/languages/', LANGUAGE, DEFAULT_LANGUAGE);
32 1773 Luisehahne
33 1792 Luisehahne
//$langDir = WB_PATH . '/languages/' . LANGUAGE . '.php';
34
//require_once(!file_exists($langDir) ? WB_PATH . '/languages/EN.php' : $langDir );
35
36 1773 Luisehahne
// form faked? Check the honeypot-fields.
37
if(ENABLED_ASP && isset($_POST['username']) && (
38
	(!isset($_POST['submitted_when']) OR !isset($_SESSION['submitted_when']) ) OR
39
		($_POST['submitted_when'] != $_SESSION['submitted_when']) OR
40
			(!isset($_POST['email-address']) OR $_POST['email-address']) OR
41
				(!isset($_POST['name']) OR $_POST['name']) OR
42
					(!isset($_POST['full_name']) OR $_POST['full_name'])
43
	))
44
{
45
	$wb->send_header(WB_URL.'/index.php');
46
}
47
48 1792 Luisehahne
$page_id = defined('REFERRER_ID') ? REFERRER_ID : isset($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0;
49 1773 Luisehahne
// needed for backlink/cancel
50
$_SESSION['HTTP_REFERER'] = isset($_SESSION['HTTP_REFERER']) ? ($_SESSION['HTTP_REFERER']) : WB_URL.'/';
51
// action modus
52
$_POST['action'] = !isset($_POST['action']) ? 'show' : $_POST['action'];
53
54 1792 Luisehahne
// Required page details
55 1773 Luisehahne
$page_description = '';
56
$page_keywords = '';
57 1792 Luisehahne
// Work out level
58
$level = ($page_id > 0 )? level_count($page_id): $page_id;
59
// Work out root parent
60
$root_parent = ($page_id > 0 )? root_parent($page_id): $page_id;
61
62 1773 Luisehahne
define('PAGE_ID', $page_id);
63 1792 Luisehahne
define('ROOT_PARENT', $root_parent);
64 1773 Luisehahne
define('PARENT', 0);
65 1792 Luisehahne
define('LEVEL', $level);
66 1773 Luisehahne
define('PAGE_TITLE', $TEXT['SIGNUP']);
67
define('MENU_TITLE', $TEXT['SIGNUP']);
68
define('MODULE', '');
69
define('VISIBILITY', 'public');
70
71
define('PAGE_CONTENT', WB_PATH.'/account/confirm_form.php');
72
73
74
// Include the index (wrapper) file
75
require(WB_PATH.'/index.php');