Revision 605
Added by thorn almost 17 years ago
add.php | ||
---|---|---|
48 | 48 |
$success_email_subject = 'You have submitted a form'; |
49 | 49 |
$max_submissions = 50; |
50 | 50 |
$stored_submissions = 50; |
51 |
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { /* Make's sure GD library is installed */ |
|
52 |
$use_captcha = true; |
|
53 |
} else { |
|
54 |
$use_captcha = false; |
|
55 |
} |
|
51 |
$use_captcha = true; |
|
56 | 52 |
$database->query("INSERT INTO ".TABLE_PREFIX."mod_form_settings (page_id,section_id,header,field_loop,footer,email_to,email_from,email_subject,success_page,success_email_to,success_email_from,success_email_text,success_email_subject,max_submissions,stored_submissions,use_captcha) VALUES ('$page_id','$section_id','$header','$field_loop','$footer','$email_to','$email_from','$email_subject','$success_page','$success_email_to','$success_email_from','$success_email_text','$success_email_subject','$max_submissions','$stored_submissions','$use_captcha')"); |
57 | 53 |
|
58 | 54 |
?> |
Also available in: Unified diff
fixed some issues with CAPTCHA and ASP: Adjusted baseline of '*' in supplyed fonts to meet baseline of numbers. Added counter to ttf_image generation-loop. Removed now unneeded GD-lib checks. Improved ASP in news-module.