Revision 40
Added by stefan about 19 years ago
save_settings.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
// $Id: save_settings.php,v 1.2 2005/04/01 07:52:58 rdjurovich Exp $
|
|
3 |
// $Id$ |
|
4 | 4 |
|
5 | 5 |
/* |
6 | 6 |
|
... | ... | |
32 | 32 |
// This code removes any <?php tags and adds slashes |
33 | 33 |
$friendly = array('<', '>', '?php'); |
34 | 34 |
$raw = array('<', '>', ''); |
35 |
$header = addslashes(str_replace($friendly, $raw, $_POST['header']));
|
|
36 |
$post_loop = addslashes(str_replace($friendly, $raw, $_POST['post_loop']));
|
|
37 |
$footer = addslashes(str_replace($friendly, $raw, $_POST['footer']));
|
|
38 |
$post_header = addslashes(str_replace($friendly, $raw, $_POST['post_header']));
|
|
39 |
$post_footer = addslashes(str_replace($friendly, $raw, $_POST['post_footer']));
|
|
40 |
$comments_header = addslashes(str_replace($friendly, $raw, $_POST['comments_header']));
|
|
41 |
$comments_loop = addslashes(str_replace($friendly, $raw, $_POST['comments_loop']));
|
|
42 |
$comments_footer = addslashes(str_replace($friendly, $raw, $_POST['comments_footer']));
|
|
43 |
$comments_page = addslashes(str_replace($friendly, $raw, $_POST['comments_page']));
|
|
35 |
$header = $admin->add_slashes(str_replace($friendly, $raw, $_POST['header']));
|
|
36 |
$post_loop = $admin->add_slashes(str_replace($friendly, $raw, $_POST['post_loop']));
|
|
37 |
$footer = $admin->add_slashes(str_replace($friendly, $raw, $_POST['footer']));
|
|
38 |
$post_header = $admin->add_slashes(str_replace($friendly, $raw, $_POST['post_header']));
|
|
39 |
$post_footer = $admin->add_slashes(str_replace($friendly, $raw, $_POST['post_footer']));
|
|
40 |
$comments_header = $admin->add_slashes(str_replace($friendly, $raw, $_POST['comments_header']));
|
|
41 |
$comments_loop = $admin->add_slashes(str_replace($friendly, $raw, $_POST['comments_loop']));
|
|
42 |
$comments_footer = $admin->add_slashes(str_replace($friendly, $raw, $_POST['comments_footer']));
|
|
43 |
$comments_page = $admin->add_slashes(str_replace($friendly, $raw, $_POST['comments_page']));
|
|
44 | 44 |
$commenting = $_POST['commenting']; |
45 | 45 |
$posts_per_page = $_POST['posts_per_page']; |
46 | 46 |
if(extension_loaded('gd') AND function_exists('imageCreateFromJpeg')) { |
Also available in: Unified diff
Change addslashes,stripslashes to (wb class) method calls add_slashes,strip_slashes