Project

General

Profile

1
<?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: confirm.php 1924 2013-06-08 13:58:40Z darkviper $
13
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/account/confirm.php $
14
 * @lastmodified    $Date: 2013-06-08 15:58:40 +0200 (Sat, 08 Jun 2013) $
15
 *
16
 */
17

    
18
require_once('../config.php');
19
$mLang = Translate::getinstance();
20
$mLang->enableAddon('account');
21

    
22
if(!class_exists('frontend', false)){ include(WB_PATH.'/framework/class.frontend.php'); }
23

    
24
require_once(WB_PATH.'/framework/functions.php');
25

    
26
// Create new frontend object
27
$wb = new frontend(false);
28

    
29
// load module language file
30
//$sAutoLanguage = isset($_SESSION['LANGUAGE']) ? $_SESSION['LANGUAGE'] : AccountSignup::GetBowserLanguage(DEFAULT_LANGUAGE);
31

    
32
//$langDir = WB_PATH . '/languages/' . LANGUAGE . '.php';
33
//require_once(!file_exists($langDir) ? WB_PATH . '/languages/EN.php' : $langDir );
34

    
35
// 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
$page_id = defined('REFERRER_ID') ? REFERRER_ID : isset($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0;
48
// 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
// Required page details
54
$page_description = '';
55
$page_keywords = '';
56
// 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
define('PAGE_ID', $page_id);
62
define('ROOT_PARENT', $root_parent);
63
define('PARENT', 0);
64
define('LEVEL', $level);
65
define('PAGE_TITLE', $mLang->TEXT_SIGNUP);
66
define('MENU_TITLE', $mLang->TEXT_SIGNUP);
67
define('MODULE', '');
68
define('VISIBILITY', 'public');
69

    
70
define('PAGE_CONTENT', WB_PATH.'/account/confirm_form.php');
71

    
72
$mLang->disableAddon();
73
// Include the index (wrapper) file
74
require(WB_PATH.'/index.php');
75

    
(2-2/22)