fix: all location headers need to have exit after them!

This commit is contained in:
Martin Ambrus
2017-10-22 13:00:54 +02:00
parent 43a2775ebc
commit 7270a69a63
74 changed files with 367 additions and 78 deletions
+2
View File
@@ -23,7 +23,9 @@ if($session->access != BANNED && $session->gold >= 5){
}
}
header("Location: plus.php?id=3");
exit;
} else {
header("Location: banned.php");
exit;
}
?>
+2
View File
@@ -23,7 +23,9 @@ if($session->access != BANNED && $session->gold >= 5){
}
}
header("Location: plus.php?id=3");
exit;
} else {
header("Location: banned.php");
exit;
}
?>
+2
View File
@@ -23,7 +23,9 @@ if($session->access != BANNED && $session->gold >= 5){
}
}
header("Location: plus.php?id=3");
exit;
} else {
header("Location: banned.php");
exit;
}
?>
+2
View File
@@ -27,7 +27,9 @@ echo "failed";
}
header("Location: plus.php?id=3");
exit;
}else{
header("Location: banned.php");
exit;
}
?>
+2
View File
@@ -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
View File
@@ -2,7 +2,9 @@
if($session->access!=BANNED){
$building->finishAll();
header("Location: plus.php?id=3");
exit;
}else{
header("Location: banned.php");
exit;
}
?>
+2
View File
@@ -23,7 +23,9 @@ if($session->access != BANNED && $session->gold >= 10){
}
}
header("Location: plus.php?id=3");
exit;
} else {
header("Location: banned.php");
exit;
}
?>
+2
View File
@@ -23,7 +23,9 @@ if($session->access != BANNED && $session->gold >= 5){
}
}
header("Location: plus.php?id=3");
exit;
} else {
header("Location: banned.php");
exit;
}
?>