summaryrefslogtreecommitdiffstats
path: root/usr/local/www/preload.php
blob: 4845b2b22113a66eadc2ef767cf1ef3a784f9db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

/* make sure we are coming from 127.0.0.1 */
$ip = $HTTP_SERVER_VARS['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']);

?>
OpenPOWER on IntegriCloud