From: Dan Untenzu Date: Thu, 12 Jan 2017 16:27:46 +0000 (+0100) Subject: [FEATURE] Show download link in admin panel X-Git-Tag: 1.2.0~11 X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/752f34d41b53e1eb6559c19fcef87e5b85e578c1?hp=26d3657f83ba96b080c9cb0a242ee8b2d8fc1fe1 [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 --- 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 '' . '
' . + '' . + '' . + '' . + '
' . + '
' . '' . '' . '' .