diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-07 00:43:39 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-07 00:43:39 +0000 |
commit | f7b01c1df558014ce70fa22eab605961b324a882 (patch) | |
tree | c74497dfbc5a4b5d791b388052de8aa478d57df0 /usr/local | |
parent | 6dfa2edce8aabf2e000c3ed1d7de803c4764fc8b (diff) | |
download | pfsense-f7b01c1df558014ce70fa22eab605961b324a882.zip pfsense-f7b01c1df558014ce70fa22eab605961b324a882.tar.gz |
Use $HTTP_SERVER_VARS['REMOTE_ADDR']
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/preload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/preload.php b/usr/local/www/preload.php index 7d09ff5..4845b2b 100755 --- a/usr/local/www/preload.php +++ b/usr/local/www/preload.php @@ -1,7 +1,7 @@ <?php /* make sure we are coming from 127.0.0.1 */ -$ip = getenv('REMOTE_ADDR'); +$ip = $HTTP_SERVER_VARS['REMOTE_ADDR']; if($ip <> "127.0.0.1") exit; else |