diff --git a/page/allBans.php b/page/allBans.php index 0df776c..7b3ebdf 100644 --- a/page/allBans.php +++ b/page/allBans.php @@ -12,6 +12,7 @@ function getAllBan($db, $sortBy = 'ban_date, ban_time', $order = 'DESC') { return $allBan; } ?> +

All time banned

Service diff --git a/page/currentBan.php b/page/currentBan.php index a9c9acd..1bca902 100644 --- a/page/currentBan.php +++ b/page/currentBan.php @@ -12,8 +12,13 @@ function getCurrentBan($db, $sortBy = 'ban_date, ban_time', $order = 'DESC') { } //echo '

Currently ',abs($currentlybanned),' ',$grammer,' banned.

'; + if (empty($sortBy)) { + $sortBy = 'ban_date'; + } + $currentBan = getCurrentBan($db, $sortBy, $order); + $nbCurrentBan = count($currentBan); ?> -

Currently Banned

+

Currently Banned ()

@@ -33,10 +38,6 @@ function getCurrentBan($db, $sortBy = 'ban_date, ban_time', $order = 'DESC') {
', $value['service'], '
diff --git a/page/lastBan.php b/page/lastBan.php index 35626ba..379f1a6 100644 --- a/page/lastBan.php +++ b/page/lastBan.php @@ -9,7 +9,13 @@ function getLast24hBan($db, $sortBy = 'ban_date, ban_time', $order = 'DESC') { } return $lastBan; } + if (empty($sortBy)) { + $sortBy = 'ban_date'; + } + $getLast24hBan = getLast24hBan($db, $sortBy, $order); + $nbLast24hBan = count($getLast24hBan); ?> +

Last 24h ban ()

Service @@ -27,10 +33,6 @@ function getLast24hBan($db, $sortBy = 'ban_date, ban_time', $order = 'DESC') { Country