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 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.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
	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
		$output = '';
40
		msgQueue::clear();
41
		switch($sSubmitAction) :
42
			case 'save_confirm':
43
				include(dirname(__FILE__).'/save_confirm.php');
44
        		if($sSubmitAction=='finished') {
45
        			include(dirname(__FILE__).'/confirm_mails.php');
46
     				break;
47
           		}
48
				if(!msgQueue::isEmpty()) {
49
					include(dirname(__FILE__).'/confirm_form_mask.php');
50
				}
51
				break;
52
			default:
53
				include(dirname(__FILE__).'/confirm_form_mask.php');
54
		endswitch; // end of switch
55

    
56

    
57
//		if(!msgQueue::isEmpty())
58
//		{
59
//		}
60
//		if( ($msg = msgQueue::getSuccess()) != '')
61
//		{
62
//			$output = $admin->format_message($msg, 'ok').$output;
63
//		}
64
//		if( ($msg = msgQueue::getError()) != '')
65
//		{
66
//			$output = $admin->format_message($msg, 'error').$output;
67
//		}
68
//		print $output;
(3-3/22)