From 98c62258b46a40bfc1669987f227c677b9942e3d Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Mon, 3 Jan 2011 15:00:14 +1100 Subject: [PATCH] Improved countdown timer --- inc/functions.php | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index b56bf29d..de188f0b 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -97,22 +97,27 @@ : '') . '

Your ban was filed on ' . formatDate($ban['set']) . - ', and ' . + ', and ' . ($ban['expires'] ? - 'expires ' . until($ban['expires']) . ' from now, which is on ' . + 'expires ' . until($ban['expires']) . ' from now, which is on ' . formatDate($ban['expires']) . - ' + ' ' - : 'will not expire' ) . - '

+ : 'will not expire.' ) . + '

Your IP address is ' . $_SERVER['REMOTE_ADDR'] . '.

';