mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-25 05:56:13 +00:00
fix: all location headers need to have exit after them!
This commit is contained in:
@@ -23,7 +23,9 @@ if($session->access != BANNED && $session->gold >= 5){
|
||||
}
|
||||
}
|
||||
header("Location: plus.php?id=3");
|
||||
exit;
|
||||
} else {
|
||||
header("Location: banned.php");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -23,7 +23,9 @@ if($session->access != BANNED && $session->gold >= 5){
|
||||
}
|
||||
}
|
||||
header("Location: plus.php?id=3");
|
||||
exit;
|
||||
} else {
|
||||
header("Location: banned.php");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -23,7 +23,9 @@ if($session->access != BANNED && $session->gold >= 5){
|
||||
}
|
||||
}
|
||||
header("Location: plus.php?id=3");
|
||||
exit;
|
||||
} else {
|
||||
header("Location: banned.php");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -27,7 +27,9 @@ echo "failed";
|
||||
}
|
||||
|
||||
header("Location: plus.php?id=3");
|
||||
exit;
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -5,8 +5,10 @@ if($session->gold >= 100 && $session->sit == 0 && $session->goldclub == 0) {
|
||||
mysqli_query($GLOBALS['link'],"UPDATE ".TB_PREFIX."users set goldclub = 1, gold = gold - 100 where `id`='".$session->uid."'");
|
||||
}
|
||||
header("Location: plus.php?id=3");
|
||||
exit;
|
||||
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -2,7 +2,9 @@
|
||||
if($session->access!=BANNED){
|
||||
$building->finishAll();
|
||||
header("Location: plus.php?id=3");
|
||||
exit;
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -23,7 +23,9 @@ if($session->access != BANNED && $session->gold >= 10){
|
||||
}
|
||||
}
|
||||
header("Location: plus.php?id=3");
|
||||
exit;
|
||||
} else {
|
||||
header("Location: banned.php");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -23,7 +23,9 @@ if($session->access != BANNED && $session->gold >= 5){
|
||||
}
|
||||
}
|
||||
header("Location: plus.php?id=3");
|
||||
exit;
|
||||
} else {
|
||||
header("Location: banned.php");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user