Revision 286
Added by stefan almost 19 years ago
admin.php | ||
---|---|---|
35 | 35 |
// Stop this file being access directly |
36 | 36 |
if(!defined('WB_URL')) { |
37 | 37 |
header('Location: ../index.php'); |
38 |
exit(0); |
|
38 | 39 |
} |
39 | 40 |
|
40 | 41 |
// Get page id |
... | ... | |
43 | 44 |
if(!isset($_GET['page_id']) OR !is_numeric($_GET['page_id'])) { |
44 | 45 |
if(!isset($_POST['page_id']) OR !is_numeric($_POST['page_id'])) { |
45 | 46 |
header("Location: index.php"); |
47 |
exit(0); |
|
46 | 48 |
} else { |
47 | 49 |
$page_id = $_POST['page_id']; |
48 | 50 |
} |
... | ... | |
67 | 69 |
$section_id = 0; |
68 | 70 |
} else { |
69 | 71 |
header("Location: $section_required"); |
72 |
exit(0); |
|
70 | 73 |
} |
71 | 74 |
} |
72 | 75 |
|
Also available in: Unified diff
Added an exit call after every heading("Location:...") redirector to prevent unwanted execution of code.