From 51675e7a9bf4d5055ed45b37bac964f788800399 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Fri, 13 Apr 2012 00:18:19 +1000 Subject: code cleanup --- inc/config.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'inc/config.php') diff --git a/inc/config.php b/inc/config.php index b7e3a243..0ea25b46 100644 --- a/inc/config.php +++ b/inc/config.php @@ -156,11 +156,11 @@ // $octets = explode('.', $ip); // // // days since last activity - // if($octets[1] > 14) + // if ($octets[1] > 14) // return false; // // // "threat score" (http://www.projecthoneypot.org/threat_info.php) - // if($octets[2] < 5) + // if ($octets[2] < 5) // return false; // // return true; @@ -696,7 +696,7 @@ // The root directory, including the trailing slash, for Tinyboard. // examples: '/', 'http://boards.chan.org/', '/chan/' - if(isset($_SERVER['REQUEST_URI'])) + if (isset($_SERVER['REQUEST_URI'])) $config['root'] = (str_replace('\\', '/', dirname($_SERVER['REQUEST_URI'])) == '/' ? '/' : str_replace('\\', '/', dirname($_SERVER['REQUEST_URI'])) . '/'); else $config['root'] = '/'; // CLI mode @@ -855,7 +855,7 @@ $config['mod']['snippet_length'] = 75; // Probably best not to change these: - if(!defined('JANITOR')) { + if (!defined('JANITOR')) { define('JANITOR', 0, true); define('MOD', 1, true); define('ADMIN', 2, true); -- cgit v1.3