Browse Source

Allow php-cli to use functions.php

pull/40/head
Savetheinternet 13 years ago
parent
commit
b00bf92e7f
  1. 2
      inc/functions.php

2
inc/functions.php

@ -66,7 +66,7 @@
ini_set('display_errors', 1); ini_set('display_errors', 1);
} }
if($config['ipv6_ipv4']) { if($config['ipv6_ipv4'] && isset($_SERVER['REMOTE_ADDR'])) {
// Keep the original address to properly comply with other board configurations // Keep the original address to properly comply with other board configurations
if(!isset($__ip)) if(!isset($__ip))
$__ip = $_SERVER['REMOTE_ADDR']; $__ip = $_SERVER['REMOTE_ADDR'];

Loading…
Cancel
Save