Project

General

Profile

1 1773 Luisehahne
<?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$
13
 * @filesource		$HeadURL$
14
 * @lastmodified    $Date$
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
	require_once(dirname(__FILE__).'/AccountSignup.php');
26
27
    	// load module language file
28
    	$mLang = ModLanguage::getInstance();
29
30
		$sConfirmationId = ( isset($_GET['id']) ? $_GET['id'] : ( isset($_POST['confirm_code']) ? $_POST['confirm_code'] : '' ) );
31
		$sSubmitAction = 'show'; // default action
32
		$sSubmitAction = ( isset($_POST['action']) ? $_POST['action'] : $sSubmitAction );
33
		if( isset($_POST['action_cancel']))
34
		{
35
			unset($_POST);
36
			$sSubmitAction = 'cancel'; // default action
37
		}
38
39 1792 Luisehahne
        $sIncludeHeadLinkCss = '';
40
        if( is_readable(WB_PATH .'/account/frontend.css')) {
41
        	$sIncludeHeadLinkCss .= '<link href="'.WB_URL.'/account/frontend.css"';
42
        	$sIncludeHeadLinkCss .= ' rel="stylesheet" type="text/css" media="screen" />'."\n";
43
        }
44
45 1773 Luisehahne
		$output = '';
46
		msgQueue::clear();
47
		switch($sSubmitAction) :
48
			case 'save_confirm':
49
				include(dirname(__FILE__).'/save_confirm.php');
50
        		if($sSubmitAction=='finished') {
51
        			include(dirname(__FILE__).'/confirm_mails.php');
52
     				break;
53
           		}
54
				if(!msgQueue::isEmpty()) {
55
					include(dirname(__FILE__).'/confirm_form_mask.php');
56
				}
57
				break;
58
			default:
59
				include(dirname(__FILE__).'/confirm_form_mask.php');
60
		endswitch; // end of switch
61
62
63
//		if(!msgQueue::isEmpty())
64
//		{
65
//		}
66
//		if( ($msg = msgQueue::getSuccess()) != '')
67
//		{
68
//			$output = $admin->format_message($msg, 'ok').$output;
69
//		}
70
//		if( ($msg = msgQueue::getError()) != '')
71
//		{
72
//			$output = $admin->format_message($msg, 'error').$output;
73
//		}
74
//		print $output;