diff --git a/README.md b/README.md index 0c728a0..4b96501 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ maxbans-php =========== -# This repo has been completely abandoned. I've moved to a new framework that not many people use so not worth updating this to a framework that not many people use. - PHP listings script for MaxBans Demo: http://maxbans.yive.me/ +___ +**I updated to allow us to use pagination and fix other pages access.** + +FabioZumbi12 diff --git a/bans.php b/bans.php index d8d0731..f97c357 100644 --- a/bans.php +++ b/bans.php @@ -7,6 +7,13 @@ > // + $page = 1; + if(!empty($_GET['p'])) { + $page = $_GET['p']; + } + $limit = 20; + $offset = ($page - 1) * $limit; + require 'includes/data/database.php'; $sql = 'SELECT name, reason, banner, time, expires FROM bans ORDER BY time DESC LIMIT 20'; $retval = $conn->query($sql); @@ -16,6 +23,13 @@