mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-11 07:06:06 +00:00
fix: all location headers need to have exit after them!
This commit is contained in:
@@ -18,12 +18,16 @@ if(isset($_GET['newdid'])) {
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
if(isset($_GET['t'])) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?t=".$_GET['t']);
|
||||
exit;
|
||||
}else if(isset($_GET['vill']) && isset($_GET['id'])) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?id=".$_GET['id']."&vill=".$_GET['vill']."");
|
||||
exit;
|
||||
}else if($_GET['id']!=0) {
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?id=".$_GET['id']);
|
||||
exit;
|
||||
}else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
exit;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user