Project

General

Profile

« Previous | Next » 

Revision 1792

Added by Dietmar almost 12 years ago

! all changes in folder account, Signup with confirmation Mail
! frontend.css now included by account script

View differences:

confirm.php
17 17

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

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

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

  
21 24
// Create new frontend object
22
$wb = new admin();
25
$wb = new frontend(false);
23 26

  
24
//require_once(dirname(__FILE__).'/AccountSignup.php');
25

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

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

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

  
32 36
// form faked? Check the honeypot-fields.
33 37
if(ENABLED_ASP && isset($_POST['username']) && (
34 38
	(!isset($_POST['submitted_when']) OR !isset($_SESSION['submitted_when']) ) OR
......
41 45
	$wb->send_header(WB_URL.'/index.php');
42 46
}
43 47

  
44
$page_id = isset($_SESSION['PAGE_ID']) ? intval($_SESSION['PAGE_ID']) : 0;
48
$page_id = defined('REFERRER_ID') ? REFERRER_ID : isset($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0;
45 49
// needed for backlink/cancel
46 50
$_SESSION['HTTP_REFERER'] = isset($_SESSION['HTTP_REFERER']) ? ($_SESSION['HTTP_REFERER']) : WB_URL.'/';
47 51
// action modus
48 52
$_POST['action'] = !isset($_POST['action']) ? 'show' : $_POST['action'];
49 53

  
54
// Required page details
50 55
$page_description = '';
51 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

  
52 62
define('PAGE_ID', $page_id);
53
define('ROOT_PARENT', 0);
63
define('ROOT_PARENT', $root_parent);
54 64
define('PARENT', 0);
55
define('LEVEL', 0);
65
define('LEVEL', $level);
56 66
define('PAGE_TITLE', $TEXT['SIGNUP']);
57 67
define('MENU_TITLE', $TEXT['SIGNUP']);
58 68
define('MODULE', '');

Also available in: Unified diff