Revision 286
Added by stefan almost 19 years ago
save.php | ||
---|---|---|
1 | 1 |
<?php |
2 | 2 |
|
3 |
// $Id: save.php,v 1.2 2005/04/02 06:25:37 rdjurovich Exp $
|
|
3 |
// $Id$ |
|
4 | 4 |
|
5 | 5 |
/* |
6 | 6 |
|
... | ... | |
26 | 26 |
// Get page & section id |
27 | 27 |
if(!isset($_POST['page_id']) OR !is_numeric($_POST['page_id'])) { |
28 | 28 |
header("Location: index.php"); |
29 |
exit(0); |
|
29 | 30 |
} else { |
30 | 31 |
$page_id = $_POST['page_id']; |
31 | 32 |
} |
32 | 33 |
if(!isset($_POST['section_id']) OR !is_numeric($_POST['section_id'])) { |
33 | 34 |
header("Location: index.php"); |
35 |
exit(0); |
|
34 | 36 |
} else { |
35 | 37 |
$section_id = $_POST['section_id']; |
36 | 38 |
} |
Also available in: Unified diff
Added an exit call after every heading("Location:...") redirector to prevent unwanted execution of code.