mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-12 06:11:00 +00:00
fix: all location headers need to have exit after them!
This commit is contained in:
@@ -102,5 +102,6 @@ $database->updateUserField($session->uid,gpack,$_POST["custom_url"],1);
|
||||
<?php
|
||||
}else{
|
||||
header("Location: ".$_SERVER['PHP_SELF']."?uid=".$session->uid);
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
@@ -1,2 +1,3 @@
|
||||
<?php
|
||||
header("Location: dorf1.php");
|
||||
header("Location: dorf1.php");
|
||||
exit;
|
||||
@@ -2,6 +2,7 @@
|
||||
if(isset($_GET['del']) && is_numeric($_GET['del'])){
|
||||
$database->removeLinks($_GET['del'],$session->uid);
|
||||
header("Location: spieler.php?s=2");
|
||||
exit;
|
||||
}
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
@@ -55,6 +56,7 @@ if($_POST) {
|
||||
$query = mysqli_query($GLOBALS['link'],'INSERT INTO `' . TB_PREFIX . 'links` (`userid`, `name`, `url`, `pos`) VALUES (' . $userid . ', \'' . $link['linkname'] . '\', \'' . $link['linkziel'] . '\', ' . $link['nr'] . ')');
|
||||
}else{
|
||||
header("Location: banned.php");
|
||||
exit;
|
||||
}
|
||||
} elseif(trim($link['nr']) != '' AND trim($link['linkname']) != '' AND trim($link['linkziel']) != '' AND trim($link['id']) != '') {
|
||||
// Update link
|
||||
|
||||
Reference in New Issue
Block a user