Project

General

Profile

« Previous | Next » 

Revision 237

Added by ryan about 19 years ago

Removed captcha code in footer var

View differences:

trunk/wb/modules/form/add.php
31 31
// Insert an extra rows into the database
32 32
$header = '<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"100%\">';
33 33
$field_loop = '<tr><td class=\"field_title\">{TITLE}{REQUIRED}:</td><td>{FIELD}</td></tr>';
34
$footer = '';
35
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */
36
$footer .= '<tr><td class=\"field_title\">Verification:</td><td>
37
<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\">
38
<tr><td><img src=\"{WB_URL}/include/captcha.php\" alt=\"Captcha\" /></td>
39
<td><input type=\"text\" name=\"captcha\" maxlength=\"5\" /></td>
40
</tr></table>
41
</td></tr>
42
';
43
}
44
$footer .= '<tr><td>&nbsp;</td>
34
$footer = '<tr><td>&nbsp;</td>
45 35
<td>
46 36
<input type=\"submit\" name=\"submit\" value=\"Submit Form\" />
47 37
</td>

Also available in: Unified diff