Project

General

Profile

« Previous | Next » 

Revision 2063

Added by Dietmar almost 11 years ago

  1. problems with confirmation mail solved

View differences:

confirm_mails.php
17 17

  
18 18
/* -------------------------------------------------------- */
19 19
// Must include code to stop this file being accessed directly
20
if(defined('WB_PATH') == false)
21
{
22
	die('<h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2>');
20
if(!defined('WB_PATH')) {
21
	require_once(dirname(dirname(__FILE__)).'/framework/globalExceptionHandler.php');
22
	throw new IllegalFileException();
23 23
}
24 24
/* -------------------------------------------------------- */
25 25
if (!function_exists('ObfuscateIp')) {
......
48 48
// load module language file
49 49
$mLang = Translate::getInstance();
50 50
$mLang->enableAddon('account');
51

  
51 52
//WB_MAILER settings
52 53
$sServerEmail = (defined('SERVER_EMAIL') && SERVER_EMAIL != '' ? SERVER_EMAIL : emailAdmin());
53 54
$sWebMailer   = (defined('WBMAILER_DEFAULT_SENDERNAME') && WBMAILER_DEFAULT_SENDERNAME != '' ? WBMAILER_DEFAULT_SENDERNAME : 'WebsiteBaker Mailer');
55
$sIncludeHeadLinkCss = '';
56
if( is_readable(WB_PATH .'/account/frontend.css')) {
57
	$sIncludeHeadLinkCss .= '<link href="'.WB_URL.'/account/frontend.css"';
58
	$sIncludeHeadLinkCss .= ' rel="stylesheet" type="text/css" media="screen" />'."\n";
59
    print $sIncludeHeadLinkCss;
60
}
54 61

  
55 62
/**
56 63
 * now send user email, if activation don't failed'
......
79 86

  
80 87
	$mail_replyto = $email_to;
81 88
	$mail_replyName = $sDisplayName;
82
	$mail_message = $MESSAGE['SIGNUP2_ADMIN_INFO'];
83
	$email_subject = $MESSAGE['SIGNUP2_NEW_USER'];
89
	$mail_message = $mLang->MESSAGE_SIGNUP2_ADMIN_INFO;
90
	$email_subject = $mLang->MESSAGE_SIGNUP2_NEW_USER;
84 91
	$search = array('{LOGIN_EMAIL}','{LOGIN_ID}', '{SIGNUP_DATE}', '{LOGIN_NAME}', '{LOGIN_IP}');
85 92
	$replace = array($email_to, $email_fromname.' ('.$iUserId.')', date(DATE_FORMAT.' '.TIME_FORMAT,$get_ts ), $sLoginName, $sLoginIp);
86 93
	$mail_message = str_replace($search, $replace, $mail_message);
......
96 103
	$oTpl->set_file('page', 'success.htt');
97 104
	$oTpl->debug = false; // false, true
98 105
	$oTpl->set_block('page', 'main_block', 'main');
106
//	$oTpl->parse('CSS_BLOCK', $sIncludeHeadLinkCss);
99 107
	// show messages, default block off
100 108
	$oTpl->set_block('main_block', 'show_registration_block', 'message');
101 109
	$oTpl->parse('message', '');

Also available in: Unified diff