mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-02 18:44:21 +00:00
fix: all location headers need to have exit after them!
This commit is contained in:
@@ -401,8 +401,10 @@ class Technology {
|
||||
}
|
||||
}
|
||||
header("Location: build.php?id=".$post['id']);
|
||||
exit;
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -678,6 +680,7 @@ private function trainUnit($unit,$amt,$great=false) {
|
||||
}
|
||||
$session->changeChecker();
|
||||
header("Location: build.php?id=".$get['id']);
|
||||
exit;
|
||||
}
|
||||
|
||||
private function upgradeSword($get) {
|
||||
@@ -696,6 +699,7 @@ private function trainUnit($unit,$amt,$great=false) {
|
||||
}
|
||||
$session->changeChecker();
|
||||
header("Location: build.php?id=".$get['id']);
|
||||
exit;
|
||||
}
|
||||
|
||||
private function upgradeArmour($get) {
|
||||
@@ -714,6 +718,7 @@ private function trainUnit($unit,$amt,$great=false) {
|
||||
}
|
||||
$session->changeChecker();
|
||||
header("Location: build.php?id=".$get['id']);
|
||||
exit;
|
||||
}
|
||||
|
||||
public function getUnitName($i) {
|
||||
|
||||
Reference in New Issue
Block a user