Revision 235
Added by ryan about 19 years ago
view.php | ||
---|---|---|
190 | 190 |
for($i = 0; $i < 5; $i++) { |
191 | 191 |
$_SESSION['captcha'] .= rand(0,9); |
192 | 192 |
} |
193 |
?><tr><td class="field_title">Verification:</td><td>
|
|
193 |
?><tr><td class="field_title"><?php echo $TEXT['VERIFICATION']; ?>:</td><td>
|
|
194 | 194 |
<table cellpadding="2" cellspacing="0" border="0"> |
195 | 195 |
<tr><td><img src="<?php echo WB_URL; ?>/include/captcha.php" alt="Captcha" /></td> |
196 | 196 |
<td><input type="text" name="captcha" maxlength="5" /></td> |
... | ... | |
313 | 313 |
// Now send the email |
314 | 314 |
if($email_to != '') { |
315 | 315 |
if($email_from != '') { |
316 |
if(mail($email_to,$email_subject,str_replace('\n', '', $email_body),"From: ".$email_from)) { $success = true; }
|
|
316 |
if(mail($email_to,$email_subject,str_replace("\n", '', $email_body),"From: ".$email_from)) { $success = true; }
|
|
317 | 317 |
} else { |
318 |
if(mail($email_to,$email_subject,str_replace('\n', '', $email_body))) { $success = true; }
|
|
318 |
if(mail($email_to,$email_subject,str_replace("\n", '', $email_body))) { $success = true; }
|
|
319 | 319 |
} |
320 | 320 |
} |
321 | 321 |
// Write submission to database |
Also available in: Unified diff
Updated CHANGELOG and some other files