Revision 250
Added by ryan almost 19 years ago
save_settings.php | ||
---|---|---|
45 | 45 |
$posts_per_page = $_POST['posts_per_page']; |
46 | 46 |
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { |
47 | 47 |
$resize = $_POST['resize']; |
48 |
$use_captcha = $_POST['use_captcha']; |
|
48 | 49 |
} else { |
49 | 50 |
$resize = ''; |
51 |
$use_captcha = false; |
|
50 | 52 |
} |
51 | 53 |
|
52 | 54 |
// Update settings |
53 |
$database->query("UPDATE ".TABLE_PREFIX."mod_news_settings SET header = '$header', post_loop = '$post_loop', footer = '$footer', posts_per_page = '$posts_per_page', post_header = '$post_header', post_footer = '$post_footer', comments_header = '$comments_header', comments_loop = '$comments_loop', comments_footer = '$comments_footer', comments_page = '$comments_page', commenting = '$commenting', resize = '$resize' WHERE section_id = '$section_id'"); |
|
55 |
$database->query("UPDATE ".TABLE_PREFIX."mod_news_settings SET header = '$header', post_loop = '$post_loop', footer = '$footer', posts_per_page = '$posts_per_page', post_header = '$post_header', post_footer = '$post_footer', comments_header = '$comments_header', comments_loop = '$comments_loop', comments_footer = '$comments_footer', comments_page = '$comments_page', commenting = '$commenting', resize = '$resize', use_captcha = '$use_captcha' WHERE section_id = '$section_id'");
|
|
54 | 56 |
|
55 | 57 |
// Check if there is a db error, otherwise say successful |
56 | 58 |
if($database->is_error()) { |
Also available in: Unified diff
Added Captcha to News module