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 2063 Luisehahne
if(!defined('WB_PATH')) {
20
	require_once(dirname(dirname(__FILE__)).'/framework/globalExceptionHandler.php');
21
	throw new IllegalFileException();
22 1773 Luisehahne
}
23
/* -------------------------------------------------------- */
24
25
	require_once(dirname(__FILE__).'/AccountSignup.php');
26
27
    	// load module language file
28 1924 darkviper
    	$mLang = Translate::getInstance();
29
		$mLang->enableAddon('account');
30 2063 Luisehahne
        $sIncludeHeadLinkCss = '';
31
        if( is_readable(WB_PATH .'/account/frontend.css')) {
32
        	$sIncludeHeadLinkCss .= '<link href="'.WB_URL.'/account/frontend.css"';
33
        	$sIncludeHeadLinkCss .= ' rel="stylesheet" type="text/css" media="screen" />'."\n";
34
            print $sIncludeHeadLinkCss;
35
        }
36 1773 Luisehahne
37
		$sConfirmationId = ( isset($_GET['id']) ? $_GET['id'] : ( isset($_POST['confirm_code']) ? $_POST['confirm_code'] : '' ) );
38
		$sSubmitAction = 'show'; // default action
39
		$sSubmitAction = ( isset($_POST['action']) ? $_POST['action'] : $sSubmitAction );
40
		if( isset($_POST['action_cancel']))
41
		{
42
			unset($_POST);
43
			$sSubmitAction = 'cancel'; // default action
44
		}
45
46
		$output = '';
47
		msgQueue::clear();
48
		switch($sSubmitAction) :
49
			case 'save_confirm':
50
				include(dirname(__FILE__).'/save_confirm.php');
51
        		if($sSubmitAction=='finished') {
52
        			include(dirname(__FILE__).'/confirm_mails.php');
53
     				break;
54
           		}
55
				if(!msgQueue::isEmpty()) {
56
					include(dirname(__FILE__).'/confirm_form_mask.php');
57
				}
58
				break;
59
			default:
60
				include(dirname(__FILE__).'/confirm_form_mask.php');
61
		endswitch; // end of switch