more verbose errors

This commit is contained in:
Bruno Rybársky 2023-06-09 21:57:35 +02:00
parent 8f58b38a17
commit 40ab0e4624
No known key found for this signature in database
GPG Key ID: DFE2C061EF985CD4

@ -20,6 +20,11 @@ if (!empty($idcko)){
if(array_key_exists($idcko, $stranky)){
$entry = $stranky[$idcko];
if (!array_key_exists($entry["contentid"], $contents)){
die("Faulty link");
}
$content = $contents[$entry["contentid"]];
$nickname = $entry["nickname"];
$logmessage = "Success from $nickname($idcko), IP: $ipcka\n";
@ -36,11 +41,11 @@ if (!empty($idcko)){
}
else{
die("Bad link");
die("Nonexistent link");
}
}
else{
die("Bad link");
die("No link");
}
?>