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
+1
View File
@@ -187,5 +187,6 @@ function showCheckList() {
<p class="btn"><input type="image" id="fbtn_ok" value="ok" name="s1" class="dynamic_img" src="img/x.gif" alt="OK" /></p></form>
<?php }else{
header("Location: banned.php");
exit;
}
?>
+1
View File
@@ -88,5 +88,6 @@ foreach($posts as $pos) {
<span style="color: #DD0000"><b>Warning:</b> you can't use the values <b>[message]</b> or <b>[/message]</b> in your post because it can cause problem with bbcode system.</span>
<?php }else{
header("Location: banned.php");
exit;
}
?>
+1
View File
@@ -255,5 +255,6 @@ if($closed1 != 0){
</p>
<?php }else{
header("Location: banned.php");
exit;
}
?>
+1
View File
@@ -47,5 +47,6 @@ $show_cat = $database->ForumCat($session->alliance);
<p class="btn"><input type="image" id="fbtn_ok" value="ok" name="s1" class="dynamic_img" src="img/x.gif" alt="OK" /></form></p>
<?php }else{
header("Location: banned.php");
exit;
}
?>
+1
View File
@@ -108,5 +108,6 @@ echo '<tr>
</p>
<?php }else{
header("Location: banned.php");
exit;
}
?>
+1
View File
@@ -139,5 +139,6 @@ Option 8: <input class="text" type="text" name="option_8" maxlength="100" style=
<span style="color: #DD0000"><b>Warning:</b> you can't use the values <b>[message]</b> or <b>[/message]</b> in your post because it can cause problem with bbcode system.</span>
<?php }else{
header("Location: banned.php");
exit;
}
?>
+1
View File
@@ -173,5 +173,6 @@ echo '<div class="clear dotted"></div><div class="text">'.$bbcode_post.'</div></
echo '</div>';
}else{
header("Location: banned.php");
exit;
}
?>
+1
View File
@@ -72,5 +72,6 @@ foreach($topics as $arr) {
<span style="color: #DD0000"><b>Warning:</b> you can't use the values <b>[message]</b> or <b>[/message]</b> in your post because it can cause problem with bbcode system.</span>
<?php }else{
header("Location: banned.php");
exit;
}
?>
+1
View File
@@ -111,5 +111,6 @@ foreach($forum_data as $cats) {
</table><p class="btn"><input type="image" value="ok" name="s1" id="fbtn_ok" class="dynamic_img" src="img/x.gif" alt="OK" /></form></p>
<?php }else{
header("Location: banned.php");
exit;
}
?>
+1
View File
@@ -83,5 +83,6 @@ foreach($topics as $top) {
<span style="color: #DD0000"><b>Warning:</b> you can't use the values <b>[message]</b> or <b>[/message]</b> in your post because it can cause problem with bbcode system.</span>
<?php }else{
header("Location: banned.php");
exit;
}
?>
+1
View File
@@ -47,5 +47,6 @@ if($session->access!=BANNED){
<?php
}else{
header("Location: banned.php");
exit;
}
?>
+2 -1
View File
@@ -11,7 +11,8 @@ $allianceinfo = $database->getAlliance($aid);
$memberlist = $database->getAllMember($aid);
$totalpop = 0;
if($allianceinfo['tag']==""){
header("Location: allianz.php");
header("Location: allianz.php");
exit;
}
foreach($memberlist as $member) {
$totalpop += $database->getVSumField($member['id'],"pop");