Revision 286
Added by stefan almost 19 years ago
sections.php | ||
---|---|---|
27 | 27 |
// Make sure people are allowed to access this page |
28 | 28 |
if(MANAGE_SECTIONS != 'enabled') { |
29 | 29 |
header('Location: '.ADMIN_URL.'/pages/index.php'); |
30 |
exit(0); |
|
30 | 31 |
} |
31 | 32 |
|
32 | 33 |
// Get page id |
33 | 34 |
if(!isset($_GET['page_id']) OR !is_numeric($_GET['page_id'])) { |
34 | 35 |
header("Location: index.php"); |
36 |
exit(0); |
|
35 | 37 |
} else { |
36 | 38 |
$page_id = $_GET['page_id']; |
37 | 39 |
} |
Also available in: Unified diff
Added an exit call after every heading("Location:...") redirector to prevent unwanted execution of code.