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 1792 2012-10-24 00:43:00Z Luisehahne $
13
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/account/confirm.php $
14
 * @lastmodified    $Date: 2012-10-24 02:43:00 +0200 (Wed, 24 Oct 2012) $
15
 *
16
 */
17

    
18
require_once('../config.php');
19

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

    
22
require_once(WB_PATH.'/framework/functions.php');
23

    
24
// Create new frontend object
25
$wb = new frontend(false);
26

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

    
30
$mLang = ModLanguage::getInstance();
31
$mLang->setLanguage(dirname(__FILE__).'/languages/', LANGUAGE, DEFAULT_LANGUAGE);
32

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

    
36
// 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
$page_id = defined('REFERRER_ID') ? REFERRER_ID : isset($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0;
49
// 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
// Required page details
55
$page_description = '';
56
$page_keywords = '';
57
// 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
define('PAGE_ID', $page_id);
63
define('ROOT_PARENT', $root_parent);
64
define('PARENT', 0);
65
define('LEVEL', $level);
66
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');
76

    
(2-2/22)