mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-20 03:26:10 +00:00
fix: all location headers need to have exit after them!
This commit is contained in:
@@ -12,14 +12,18 @@
|
||||
|
||||
if($session->goldclub == 0) {
|
||||
header("Location: plus.php?id=3");
|
||||
exit;
|
||||
}
|
||||
|
||||
if($_POST['type'] == 15) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?s=1&x=" . preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['x']) . '&y=' . preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['y']));
|
||||
exit;
|
||||
} elseif($_POST['type'] == 9) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?s=2&x=" . preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['x']) . '&y=' . preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['y']));
|
||||
exit;
|
||||
} elseif($_POST['type'] == 'both') {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?s=3&x=" . preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['x']) . '&y=' . preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['y']));
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user