Revision 596
Added by thorn almost 17 years ago
signup_form.php | ||
---|---|---|
27 | 27 |
header('Location: ../index.php'); |
28 | 28 |
exit(0); |
29 | 29 |
} |
30 |
|
|
30 |
require_once(WB_PATH.'/include/captcha/captcha.php'); |
|
31 |
require_once(WB_PATH.'/include/captcha/asp.php'); |
|
31 | 32 |
?> |
32 | 33 |
|
33 | 34 |
<style> |
... | ... | |
42 | 43 |
|
43 | 44 |
<table cellpadding="5" cellspacing="0" border="0" width="90%"> |
44 | 45 |
<tr> |
46 |
<?php if(ENABLED_ASP) { // add some honeypot-fields |
|
47 |
?> |
|
48 |
<input type="hidden" name="submitted_when" value="<?php $t=time(); echo $t; $_SESSION['submitted_when']=$t; ?>" /> |
|
49 |
<p class="nixhier"> |
|
50 |
email-address: |
|
51 |
<label for="email-address">Leave this field empty, dont enter your e-mail address:</label> |
|
52 |
<input id="email-address" name="email-address" size="60" value="" /><br /> |
|
53 |
username (id): |
|
54 |
<label for="name">Enter your user name or id not here:</label> |
|
55 |
<input id="name" name="name" size="60" value="" /><br /> |
|
56 |
Full Name: |
|
57 |
<label for="full_name">This is to leave blank, dont enter your full name here:</label> |
|
58 |
<input id="full_name" name="full_name" size="60" value="" /><br /> |
|
59 |
</p> |
|
60 |
<?php } |
|
61 |
?> |
|
45 | 62 |
<td width="180"><?php echo $TEXT['USERNAME']; ?>:</td> |
46 | 63 |
<td class="value_input"> |
47 | 64 |
<input type="text" name="username" maxlength="30" /> |
... | ... | |
61 | 78 |
</tr> |
62 | 79 |
<?php |
63 | 80 |
// Captcha |
64 |
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */ |
|
65 |
if(CAPTCHA_VERIFICATION == true) { |
|
66 |
$_SESSION['captcha'] = ''; |
|
67 |
for($i = 0; $i < 5; $i++) { |
|
68 |
$_SESSION['captcha'] .= rand(0,9); |
|
69 |
} |
|
70 |
?><tr><td class="field_title"><?php echo $TEXT['VERIFICATION']; ?>:</td><td> |
|
71 |
<table cellpadding="2" cellspacing="0" border="0"> |
|
72 |
<tr><td><img src="<?php echo WB_URL; ?>/include/captcha.php?t=<?php echo time(); ?>" alt="Captcha" /></td> |
|
73 |
<td><input type="text" name="captcha" maxlength="5" /></td> |
|
74 |
</tr></table> |
|
75 |
</td></tr> |
|
76 |
<?php |
|
77 |
} |
|
81 |
if(ENABLED_CAPTCHA) { |
|
82 |
?><tr> |
|
83 |
<td class="field_title"><?php echo $TEXT['VERIFICATION']; ?>:</td> |
|
84 |
<td><?php call_captcha(); ?></td> |
|
85 |
</tr> |
|
86 |
<?php |
|
78 | 87 |
} |
79 | 88 |
?> |
80 | 89 |
<tr> |
Also available in: Unified diff
added new CAPTCHA and ASP (Advanced Spam Protection)