mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-01 16:17:13 +00:00
fix: all location headers need to have exit after them!
This commit is contained in:
@@ -6,6 +6,7 @@ if(isset($_GET['t'])==99 && isset($_POST['action'])=='addList' && $_POST['did']!
|
||||
$database->createFarmList($_POST['did'], $session->uid, $_POST['name']);
|
||||
}else if(isset($_GET['t'])==99 && isset($_POST['action'])=='addList'){
|
||||
header("Location: build.php?gid=16&t=99&action=addList");
|
||||
exit;
|
||||
}
|
||||
|
||||
$sql = mysqli_query($GLOBALS['link'],"SELECT * FROM ".TB_PREFIX."farmlist WHERE owner = ".(int) $session->uid." ORDER BY wref = $village->wid DESC");
|
||||
|
||||
@@ -62,6 +62,7 @@ $vdata = $database->getVillage($Wref);
|
||||
$database->addSlotFarm($_POST['lid'], $Wref, $WrefX, $WrefY, $distance, $_POST['t1'], $_POST['t2'], $_POST['t3'], $_POST['t4'], $_POST['t5'], $_POST['t6'], $_POST['t7'], $_POST['t8'], $_POST['t9'], $_POST['t10']);
|
||||
|
||||
header("Location: build.php?id=39&t=99");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
?>
|
||||
@@ -159,5 +160,6 @@ $vill[$towref] = 1;
|
||||
<?php
|
||||
}else{
|
||||
header("Location: build.php?id=39&t=99");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -64,6 +64,7 @@ $troops = "".$_POST['t1']."+".$_POST['t2']."+".$_POST['t3']."+".$_POST['t4']."+"
|
||||
$database->editSlotFarm($_GET['eid'], $_POST['lid'], $Wref, $WrefX, $WrefY, $distance, $_POST['t1'], $_POST['t2'], $_POST['t3'], $_POST['t4'], $_POST['t5'], $_POST['t6'], $_POST['t7'], $_POST['t8'], $_POST['t9'], $_POST['t10']);
|
||||
|
||||
header("Location: build.php?id=39&t=99");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if($FLData['owner'] == $session->uid){
|
||||
@@ -166,5 +167,6 @@ $vill[$towref] = 1;
|
||||
<?php
|
||||
}else{
|
||||
header("Location: build.php?id=39&t=99");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user