diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-07 00:32:33 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-07 00:32:33 +0000 |
commit | c8b0a897cb6a0808d5b5d4a565808929b5373dad (patch) | |
tree | 8e9afeac62d83abe95e326ae19ad5b82dde8fb5e /usr/local/www | |
parent | 86ccdfd0ae1447d84c2a488dd87411e6f9e6527e (diff) | |
download | pfsense-c8b0a897cb6a0808d5b5d4a565808929b5373dad.zip pfsense-c8b0a897cb6a0808d5b5d4a565808929b5373dad.tar.gz |
Set user to root then back to "" for preload.
Only preload from 127.0.0.1 requests
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/preload.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/preload.php b/usr/local/www/preload.php index a72bf83..7d09ff5 100755 --- a/usr/local/www/preload.php +++ b/usr/local/www/preload.php @@ -4,10 +4,14 @@ $ip = getenv('REMOTE_ADDR'); if($ip <> "127.0.0.1") exit; +else + $HTTP_SERVER_VARS['AUTH_USER'] = "root"; /* preload */ require("config.inc"); require("functions.inc"); require("auth.inc"); +unset($HTTP_SERVER_VARS['AUTH_USER']); + ?>
\ No newline at end of file |