From 39c71a7c9506818482fcaacc6f10aafb0171439f Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Fri, 25 Jul 2014 12:39:00 +0100 Subject: Add support for only showing the most recent X files --- index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.php b/index.php index e563ee8..942df76 100644 --- a/index.php +++ b/index.php @@ -136,6 +136,11 @@ while ($this_array = each($new_array)){ $value = $this_array['value']; $key = $this_array['key']; + // Only show last X entries if requested + if (isset($_GET['last']) && ($listsize > $_GET['last'] - 1)) { + break; + } + // Drop if on index ignore list if (in_array($value, $indexignore)) { continue; -- cgit v1.2.3