die() after header to stop going any further

This commit is contained in:
Matt Pass
2014-09-18 15:43:48 +01:00
parent 1276e894b5
commit 7adefd1ff0

View File

@@ -6,6 +6,7 @@ $t = $text['index'];
// Check IP permissions
if (!in_array($_SERVER["REMOTE_ADDR"], $_SESSION['allowedIPs']) && !in_array("*", $_SESSION['allowedIPs'])) {
header('Location: /');
die("Sorry, not in allowed IPs list");
};
$updateMsg = '';