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']); ?>