Revision 286
Added by stefan almost 19 years ago
tool.php | ||
---|---|---|
29 | 29 |
|
30 | 30 |
if(!isset($_GET['tool'])) { |
31 | 31 |
header("Location: index.php?advanced=yes"); |
32 |
exit(0); |
|
32 | 33 |
} |
33 | 34 |
|
34 | 35 |
// Check if tool is installed |
35 | 36 |
$result = $database->query("SELECT * FROM ".TABLE_PREFIX."addons WHERE type = 'module' AND function = 'tool' AND directory = '".$_GET['tool']."'"); |
36 | 37 |
if($result->numRows() == 0) { |
37 | 38 |
header("Location: index.php?advanced=yes"); |
39 |
exit(0); |
|
38 | 40 |
} |
39 | 41 |
$tool = $result->fetchRow(); |
40 | 42 |
|
Also available in: Unified diff
Added an exit call after every heading("Location:...") redirector to prevent unwanted execution of code.