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