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 1924 2013-06-08 13:58:40Z darkviper $
|
13
|
* @filesource $HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/account/confirm_form.php $
|
14
|
* @lastmodified $Date: 2013-06-08 15:58:40 +0200 (Sat, 08 Jun 2013) $
|
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 = Translate::getInstance();
|
29
|
$mLang->enableAddon('account');
|
30
|
|
31
|
$sConfirmationId = ( isset($_GET['id']) ? $_GET['id'] : ( isset($_POST['confirm_code']) ? $_POST['confirm_code'] : '' ) );
|
32
|
$sSubmitAction = 'show'; // default action
|
33
|
$sSubmitAction = ( isset($_POST['action']) ? $_POST['action'] : $sSubmitAction );
|
34
|
if( isset($_POST['action_cancel']))
|
35
|
{
|
36
|
unset($_POST);
|
37
|
$sSubmitAction = 'cancel'; // default action
|
38
|
}
|
39
|
|
40
|
$sIncludeHeadLinkCss = '';
|
41
|
if( is_readable(WB_PATH .'/account/frontend.css')) {
|
42
|
$sIncludeHeadLinkCss .= '<link href="'.WB_URL.'/account/frontend.css"';
|
43
|
$sIncludeHeadLinkCss .= ' rel="stylesheet" type="text/css" media="screen" />'."\n";
|
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
|
62
|
|
63
|
|
64
|
// if(!msgQueue::isEmpty())
|
65
|
// {
|
66
|
// }
|
67
|
// if( ($msg = msgQueue::getSuccess()) != '')
|
68
|
// {
|
69
|
// $output = $admin->format_message($msg, 'ok').$output;
|
70
|
// }
|
71
|
// if( ($msg = msgQueue::getError()) != '')
|
72
|
// {
|
73
|
// $output = $admin->format_message($msg, 'error').$output;
|
74
|
// }
|
75
|
// print $output;
|