# HG changeset patch # User Ethan Zonca # Date 2010-12-02 21:51:42 # Node ID f1b1459508704c1ef10a784a7ebd97a1750ba179 # Parent 0b3a61f80ac356151a3950a69daf717e54307172 Quick fix diff --git a/admin.php b/admin.php --- a/admin.php +++ b/admin.php @@ -28,7 +28,7 @@ } // Force authentication - if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_PW'] != $admin_pass) { + else if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_PW'] != $admin_pass) { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); echo '

You must authenticate to view this page.

';