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_form_mask.php 1773 2012-09-27 23:42:13Z Luisehahne $
13
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/account/confirm_form_mask.php $
14
 * @lastmodified    $Date: 2012-09-28 01:42:13 +0200 (Fri, 28 Sep 2012) $
15
 *
16
 */
17
/* -------------------------------------------------------- */
18
// Must include code to stop this file being accessed directly
19
if(defined('WB_PATH') == false)
20
{
21
	die('<h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2>');
22
}
23
/* -------------------------------------------------------- */
24

    
25

    
26
// set template file and assign module and template block
27
	$oTpl = new Template(dirname(__FILE__).'/htt','keep');
28
	$oTpl->set_file('page', 'confirm.htt');
29
	$oTpl->debug = false; // false, true
30
	$oTpl->set_block('page', 'main_block', 'main');
31
	$oTpl->set_var(array(
32
		'FTAN' => $wb->getFTAN(),
33
		'ACTION_URL' => WB_URL.'/account/confirm.php',
34
		'WB_URL' => WB_URL,
35
		'THEME_URL' => THEME_URL,
36
		'HTTP_REFERER' => isset($_SESSION['HTTP_REFERER']) ? $_SESSION['HTTP_REFERER'] : WB_URL,
37
		'CONFIRM_CODE' => $sConfirmationId,
38
		'MESSAGE_VALUE' => '',
39
		'ERROR_VALUE' => '',
40
		'HEADING_SIGNUP' => $mLang->HEADING_SIGNUP2_CONFIMED_REGISTRATION,
41
		'TEXT_LANGUAGE' => $TEXT['LANGUAGE'],
42
		'HELP_CONFIRM_PASSWORD' => $mLang->HELP_CONFIRM_PASSWORD,
43
		'HEADING_MESSAGE_WELCOME' => $mLang->HEADING_MESSAGE_WELCOME,
44
		'TEXT_SIGNUP' => $mLang->TEXT_ACTIVATION,
45
		'TEXT_RESET' => $TEXT['RESET'],
46
		'TEXT_CANCEL' => $TEXT['CANCEL'],
47
		)
48
	);
49
//print '<pre style="text-align: left;"><strong>function '.__FUNCTION__.'( '.$sSubmitAction.' );</strong>  basename: '.basename(__FILE__).'  line: '.__LINE__.' -> <br />';
50
//print_r( $sConfirmationId ); print '</pre>';
51

    
52
	$sSelected = ' selected="selected"';
53
	$checked   = ' checked="checked"';
54
// show messages, default block off
55
	$oTpl->set_block('main_block', 'message_block', 'message');
56
	$oTpl->parse('message', '');
57
	if( ($msg = msgQueue::getError()) != '')
58
	{
59
		$output = $wb->format_message($msg, 'error');
60
		$oTpl->set_var('MESSAGE_VALUE',$output);
61
		$oTpl->parse('message', 'message_block', true);
62
	}
63
	$oTpl->set_var('MESSAGE','');
64

    
65
	$oTpl->set_block('main_block', 'asp_block', 'asp');
66
	if(ENABLED_ASP) {
67
		$oTpl->set_var('DISPLAY_ASP','nixhier');
68
		$oTpl->parse('asp', 'asp_block', true);
69
	} else {
70
		$oTpl->parse('asp', '', true);
71
	}
72

    
73
	$oTpl->set_var(array(
74
			'DISPLAY_USER' => '',
75
			'TEXT_USERNAME' => $mLang->TEXT_USERNAME,
76
			'TEXT_PASSWORD' => $mLang->TEXT_PASSWORD,
77
			)
78
		);
79

    
80
	// Parse template object
81
	$oTpl->parse('main', 'main_block', false);
82
	$output = $oTpl->finish($oTpl->parse('output', 'page'));
83
	unset($oTpl);
84
	print $output;
(4-4/22)