check_slave_account($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'])) { $dom->echo_domain_list(); } else { header('WWW-Authenticate: Basic realm="Domain List Authentication"'); header('HTTP/1.0 401 Unauthorized'); exit; } } ?>