summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 5 insertions, 0 deletions
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;