diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-04-13 00:18:19 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-04-13 00:18:19 +1000 |
| commit | 51675e7a9bf4d5055ed45b37bac964f788800399 (patch) | |
| tree | 3df1b07b09315b184556a4418d2102e095c26cdd /inc/config.php | |
| parent | da52307c67818893cb7ee54d8e2d6c93c0e34a02 (diff) | |
code cleanup
Diffstat (limited to 'inc/config.php')
| -rw-r--r-- | inc/config.php | 8 |
1 files changed, 4 insertions, 4 deletions
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); |
