Revision 312
Added by ryan almost 19 years ago
add.php | ||
---|---|---|
43 | 43 |
$success_message = 'Thank-you.'; |
44 | 44 |
$max_submissions = 50; |
45 | 45 |
$stored_submissions = 100; |
46 |
$use_captcha = true; |
|
46 |
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */ |
|
47 |
$use_captcha = true; |
|
48 |
} else { |
|
49 |
$use_captcha = false; |
|
50 |
} |
|
47 | 51 |
$database->query("INSERT INTO ".TABLE_PREFIX."mod_form_settings (page_id,section_id,header,field_loop,footer,email_to,email_from,email_subject,success_message,max_submissions,stored_submissions,use_captcha) VALUES ('$page_id','$section_id','$header','$field_loop','$footer','$email_to','$email_from','$email_subject','$success_message','$max_submissions','$stored_submissions','$use_captcha')"); |
48 | 52 |
|
49 | 53 |
?> |
Also available in: Unified diff
Fixed ticket #133