From 9b883beb1360e896fe4475f8ba5fb9f9466e416e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sat, 10 Jun 2023 11:08:49 +0200 Subject: [PATCH] Show mime type --- admin/api.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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
";