more verbose errors
This commit is contained in:
@@ -20,6 +20,11 @@ if (!empty($idcko)){
|
|||||||
if(array_key_exists($idcko, $stranky)){
|
if(array_key_exists($idcko, $stranky)){
|
||||||
|
|
||||||
$entry = $stranky[$idcko];
|
$entry = $stranky[$idcko];
|
||||||
|
|
||||||
|
if (!array_key_exists($entry["contentid"], $contents)){
|
||||||
|
die("Faulty link");
|
||||||
|
}
|
||||||
|
|
||||||
$content = $contents[$entry["contentid"]];
|
$content = $contents[$entry["contentid"]];
|
||||||
$nickname = $entry["nickname"];
|
$nickname = $entry["nickname"];
|
||||||
$logmessage = "Success from $nickname($idcko), IP: $ipcka\n";
|
$logmessage = "Success from $nickname($idcko), IP: $ipcka\n";
|
||||||
@@ -36,11 +41,11 @@ if (!empty($idcko)){
|
|||||||
}
|
}
|
||||||
|
|
||||||
else{
|
else{
|
||||||
die("Bad link");
|
die("Nonexistent link");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
die("Bad link");
|
die("No link");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Reference in New Issue
Block a user