Revision 1654
Added by Luisehahne over 13 years ago
| signup2.php | ||
|---|---|---|
| 21 | 21 |
|
| 22 | 22 |
// require_once(WB_PATH.'/framework/class.wb.php'); |
| 23 | 23 |
$wb = new wb('Start', 'start', false, false);
|
| 24 |
|
|
| 24 |
include_once (WB_PATH.'/framework/functions.php'); |
|
| 25 | 25 |
// Get details entered |
| 26 | 26 |
$groups_id = FRONTEND_SIGNUP; |
| 27 | 27 |
$active = 1; |
| ... | ... | |
| 59 | 59 |
$replace = array( SERVER_EMAIL); |
| 60 | 60 |
// Captcha |
| 61 | 61 |
if(ENABLED_CAPTCHA) {
|
| 62 |
$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] = str_replace($search,$replace,$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA']); |
|
| 62 |
$aServerEmail = (defined('SERVER_EMAIL') && SERVER_EMAIL != '' ? SERVER_EMAIL : $_SERVER['SERVER_NAME']);
|
|
| 63 |
$replace = array('SERVER_EMAIL' => $aServerEmail );
|
|
| 64 |
$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] = replace_vars($MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'], $replace); |
|
| 63 | 65 |
if(isset($_POST['captcha']) AND $_POST['captcha'] != ''){
|
| 64 | 66 |
// Check for a mismatch |
| 65 | 67 |
if(!isset($_POST['captcha']) OR !isset($_SESSION['captcha']) OR $_POST['captcha'] != $_SESSION['captcha']) {
|
Also available in: Unified diff
Fixed SERVER_EMAIL in languages, needs double brackets
Installer redesign Step 2