Project

General

Profile

« Previous | Next » 

Revision 1934

Added by darkviper about 11 years ago

/account/signup added posibility for different mailto address
/install/save.php modified internal comment

View differences:

save_signup.php
184 184
		// Captcha
185 185
		if(ENABLED_CAPTCHA) {
186 186
//			if(isset($_POST['captcha']) AND $_POST['captcha'] != '')
187
			$aReplacement = array('webmaster_email' =>
188
			                      ((defined('OWNER_EMAIL') && OWNER_EMAIL != '') ? OWNER_EMAIL : emailAdmin()));
187 189
			if($wb->StripCodeFromText($wb->get_post('captcha')) != '')
188 190
			{
189 191
				// Check for a mismatch get email user_id
190 192
				if(!isset($_POST['captcha']) OR !isset($_SESSION['captcha']) OR $_POST['captcha'] != $_SESSION['captcha']) {
191
					$replace = array('webmaster_email' => emailAdmin() );
192
	//				$aErrorMsg[] = replace_vars($MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'], $replace);
193
					msgQueue::add(replace_vars($MESSAGE['INCORRECT_CAPTCHA'], $replace));
193
					msgQueue::add(replace_vars($MESSAGE['INCORRECT_CAPTCHA'], $aReplacement));
194 194
				}
195 195
			} else {
196
				$replace = array('webmaster_email'=> emailAdmin() );
197
	//			$aErrorMsg[] = replace_vars($MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'],$replace );
198
				msgQueue::add(replace_vars($MESSAGE['INCORRECT_CAPTCHA'],$replace ));
196
				msgQueue::add(replace_vars($MESSAGE['INCORRECT_CAPTCHA'],$aReplacement ));
199 197
			}
200 198
		}
201 199
		if(isset($_SESSION['captcha'])) { unset($_SESSION['captcha']); }

Also available in: Unified diff