summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-01-03 02:28:29 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-01-03 02:28:29 +1100
commitdb1760322149162062e774cf2849357c76a6749e (patch)
treea1120246aea311c0e7a36da0aa337fb775e13074
parent714e531303d6406a41c9b3b82c7f14964028d133 (diff)
Locking permissions
-rw-r--r--inc/config.php3
-rw-r--r--inc/functions.php4
2 files changed, 4 insertions, 3 deletions
diff --git a/inc/config.php b/inc/config.php
index 809e8148..d40f7654 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -207,7 +207,8 @@
define('MOD_LINK_DELETEBYIP', '[D+]', true);
define('MOD_LINK_STICKY', '[Sticky]', true);
define('MOD_LINK_DESTICKY', '[-Sticky]', true);
-
+ define('MOD_LINK_LOCK', '[Lock]', true);
+ define('MOD_LINK_UNLOCK', '[-Lock]', true);
// A small file in the main directory indicating that the script has been ran and the board(s) have been generated.
// This keeps the script from querying the database and causing strain when not needed.
define('HAS_INSTALLED', '.installed', true);
diff --git a/inc/functions.php b/inc/functions.php
index a5ec0093..8cea487e 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -99,9 +99,9 @@
formatDate($ban['set']) .
'</strong>, and ' .
($ban['expires'] ?
- 'expires on <strong>' .
+ 'expires ' . until($ban['expires']) . ' from now, which is on <strong>' .
formatDate($ban['expires']) .
- '</strong>, which is ' . until($ban['expires']) . ' from now'
+ '</strong>'
: '<em>will not expire</em>' ) .
'.</p>
<p>Your IP address is <strong>' . $_SERVER['REMOTE_ADDR'] . '</strong>.</p>