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 1792 2012-10-24 00:43:00Z Luisehahne $
13
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/account/confirm_form_mask.php $
14
 * @lastmodified    $Date: 2012-10-24 02:43:00 +0200 (Wed, 24 Oct 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
        'CSS_BLOCK'	=> $sIncludeHeadLinkCss,
37
		'HTTP_REFERER' => isset($_SESSION['HTTP_REFERER']) ? $_SESSION['HTTP_REFERER'] : WB_URL,
38
		'CONFIRM_CODE' => $sConfirmationId,
39
		'MESSAGE_VALUE' => '',
40
		'ERROR_VALUE' => '',
41
		'HEADING_SIGNUP' => $mLang->HEADING_SIGNUP2_CONFIMED_REGISTRATION,
42
		'TEXT_LANGUAGE' => $TEXT['LANGUAGE'],
43
		'HELP_CONFIRM_PASSWORD' => $mLang->HELP_CONFIRM_PASSWORD,
44
		'HEADING_MESSAGE_WELCOME' => $mLang->HEADING_MESSAGE_WELCOME,
45
		'TEXT_SIGNUP' => $mLang->TEXT_ACTIVATION,
46
		'TEXT_RESET' => $TEXT['RESET'],
47
		'TEXT_CANCEL' => $TEXT['CANCEL'],
48
		)
49
	);
50
//print '<pre style="text-align: left;"><strong>function '.__FUNCTION__.'( '.$sSubmitAction.' );</strong>  basename: '.basename(__FILE__).'  line: '.__LINE__.' -> <br />';
51
//print_r( $sConfirmationId ); print '</pre>';
52

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

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

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

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