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.php 2070 2014-01-03 01:21:42Z darkviper $
13
 * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/account/confirm_form.php $
14
 * @lastmodified    $Date: 2014-01-03 02:21:42 +0100 (Fri, 03 Jan 2014) $
15
 *
16
 */
17
/* -------------------------------------------------------- */
18
// Must include code to stop this file being accessed directly
19
if(!defined('WB_PATH')) {
20
	require_once(dirname(dirname(__FILE__)).'/framework/globalExceptionHandler.php');
21
	throw new IllegalFileException();
22
}
23
/* -------------------------------------------------------- */
24

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

    
27
    	// load module language file
28
    	$mLang = Translate::getInstance();
29
		$mLang->enableAddon('account');
30
        $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

    
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
(3-3/22)