mortu on 01/16/13
Last Edited at 01/16/13 10:20pm
<?phpif (!isset($_SERVER['PHP_AUTH_USER']) || !($_SERVER['PHP_AUTH_USER'] == 'xxx' && $_SERVER['PHP_AUTH_PW'] == 'xxx')) { header('WWW-Authenticate: Basic realm="DBU Manager"'); header('HTTP/1.0 401 Unauthorized'); echo 'Access denied'; exit();}?>
Report this snippet Tweet
Comment:
You need to login to post a comment.