diff --git a/admin/api.php b/admin/api.php index 7da6c79..8c10176 100644 --- a/admin/api.php +++ b/admin/api.php @@ -51,16 +51,17 @@ if (!empty($action) && $_SESSION["password"] == $config["admin_pwd"]){ $stmt4->bind_result ($contentid, $type, $content); $stmt4->execute(); $stmt4->store_result(); - $out = ""; + $out = "
Content IDContentButton
"; while ($stmt4->fetch()) { $id = htmlspecialchars($contentid); if(empty($type)){ $content = htmlspecialchars($content); + $type = "Normal text"; } else{ $content = "Binary data"; } - $out = $out . ""; + $out = $out . ""; } $out = $out . ""; $out = $out . "
Content IDContentMIME typeButton
$id$content
$id$content$type
";