From 839ec25a38279e563f8fd34533ad074da6d3988b Mon Sep 17 00:00:00 2001 From: Ruan Date: Wed, 18 Feb 2015 19:13:19 +0200 Subject: [PATCH] Adjust bans.php for LiteBans --- bans.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bans.php b/bans.php index 00c6788..f1285f2 100644 --- a/bans.php +++ b/bans.php @@ -7,7 +7,7 @@ // <<-----------------mysql Database Connection------------>> // require 'includes/data/database.php'; -$sql = 'SELECT name, reason, banner, time, expires FROM bans ORDER BY time DESC LIMIT 20'; +$sql = 'SELECT time,until,reason,name,banned_by_name FROM bans INNER JOIN history on bans.uuid = history.uuid ORDER BY time DESC LIMIT 20'; $retval = mysql_query($sql, $conn); if (!$retval) { @@ -57,13 +57,13 @@ if (!$retval) { $timeConvert = $timeEpoch / 1000; $timeResult = date('F j, Y, g:i a', $timeConvert); // <<-----------------Expiration Time Converter------------>> // - $expiresEpoch = $row['expires']; + $expiresEpoch = $row['until']; $expiresConvert = $expiresEpoch / 1000; $expiresResult = date('F j, Y, g:i a', $expiresConvert); ?> - " . $row['name']; ?> - " . $row['banner']; ?> + " . $row['history.name']; ?> + " . $row['banned_by_name']; ?>