X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/f9f84c1e4389dc23e77b51dadd53410377128cfc..6ceeb5ff538f89833b1ab3f2ecd3cf89a3d8e17e:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index c26c5bc..97733d5 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -446,11 +446,11 @@ jirafeau_admin_list ($name, $file_hash, $link_hash) { echo '
'; if (!empty ($name)) - echo $name . ' '; + echo t('Filename') . ": $name "; if (!empty ($file_hash)) - echo $file_hash . ' '; + echo t('file') . ": $file_hash "; if (!empty ($link_hash)) - echo $link_hash . ' '; + echo t('link') . ": $link_hash "; if (empty ($name) && empty ($file_hash) && empty ($link_hash)) echo t('List all files'); echo ''; @@ -489,15 +489,21 @@ jirafeau_admin_list ($name, $file_hash, $link_hash) continue; /* Filter. */ - if (!empty ($name) && $name != $l['file_name']) + if (!empty ($name) && !preg_match ("/$name/i", $l['file_name'])) continue; if (!empty ($file_hash) && $file_hash != $l['md5']) continue; - if (!empty ($link_hash) && $link_hash != $link) + if (!empty ($link_hash) && $link_hash != $node) continue; /* Print link informations. */ echo ''; - echo '' . $l['file_name'] . ''; + echo '' . + '
' . + '' . + '' . + '' . + '
'; + echo ''; echo '' . $l['mime_type'] . ''; echo '' . jirafeau_human_size ($l['file_size']) . ''; echo '' . ($l['time'] == -1 ? '' : strftime ('%c', $l['time'])) .