Project

General

Profile

« Previous | Next » 

Revision 2063

Added by Dietmar over 10 years ago

  1. problems with confirmation mail solved

View differences:

confirm_form.php
16 16
 */
17 17
/* -------------------------------------------------------- */
18 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>');
19
if(!defined('WB_PATH')) {
20
	require_once(dirname(dirname(__FILE__)).'/framework/globalExceptionHandler.php');
21
	throw new IllegalFileException();
22 22
}
23 23
/* -------------------------------------------------------- */
24 24

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

  
31 37
		$sConfirmationId = ( isset($_GET['id']) ? $_GET['id'] : ( isset($_POST['confirm_code']) ? $_POST['confirm_code'] : '' ) );
32 38
		$sSubmitAction = 'show'; // default action
......
37 43
			$sSubmitAction = 'cancel'; // default action
38 44
		}
39 45

  
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 46
		$output = '';
47 47
		msgQueue::clear();
48 48
		switch($sSubmitAction) :
......
59 59
			default:
60 60
				include(dirname(__FILE__).'/confirm_form_mask.php');
61 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;

Also available in: Unified diff