mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: all location headers need to have exit after them!
This commit is contained in:
+3
-1
@@ -12,6 +12,7 @@ include("GameEngine/Village.php");
|
||||
if(isset($_GET['newdid'])){
|
||||
$_SESSION['wid'] = $_GET['newdid'];
|
||||
header("Location: ".$_SERVER['PHP_SELF']);
|
||||
exit;
|
||||
}
|
||||
if($village->resarray['f'.$_GET['id'].'t'] == 24 and $village->currentcel == 0){
|
||||
if(!empty($_GET['type']) && $_GET['type'] == 1){
|
||||
@@ -37,4 +38,5 @@ if($village->resarray['f'.$_GET['id'].'t'] == 24 and $village->currentcel == 0){
|
||||
}
|
||||
}
|
||||
}
|
||||
header("Location: build.php?id=".$_GET['id']);
|
||||
header("Location: build.php?id=".$_GET['id']);
|
||||
exit;
|
||||
Reference in New Issue
Block a user