From 752f34d41b53e1eb6559c19fcef87e5b85e578c1 Mon Sep 17 00:00:00 2001 From: Dan Untenzu Date: Thu, 12 Jan 2017 17:27:46 +0100 Subject: [PATCH] [FEATURE] Show download link in admin panel Show the download link for a file in the admin panel, to find it again easily if the uploader has lost it somehow. Move the "direct download" action into the last column instead. Refs #68 --- lib/functions.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/functions.php b/lib/functions.php index 592e841..d454011 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -613,11 +613,8 @@ jirafeau_admin_list ($name, $file_hash, $link_hash) /* Print link informations. */ echo ''; echo '' . - '
' . - '' . - '' . - '' . - '
'; + '' . htmlspecialchars($l['file_name']) . ''; echo ''; echo '' . $l['mime_type'] . ''; echo '' . jirafeau_human_size ($l['file_size']) . ''; @@ -633,6 +630,11 @@ jirafeau_admin_list ($name, $file_hash, $link_hash) echo '' . $l['ip'] . ''; echo '' . '
' . + '' . + '' . + '' . + '
' . + '
' . '' . '' . '' . -- 2.34.1