Changeset - f1b145950870
[Not reviewed]
default
0 1 0
Ethan Zonca - 15 years ago 2010-12-02 21:51:42
ez@ethanzonca.com
Quick fix
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
admin.php
Show inline comments
 
@@ -25,13 +25,13 @@
 
  if(!isset($admin_pass)) {
 
    echo "<p>Administration password not configured. See config.inc for more information.</p>";
 
    $adminpage->foot();
 
  }
 

	
 
  // 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 '<p>You must authenticate to view this page.</p>';
 
    $adminpage->foot();
 
    exit;
 
  }
0 comments (0 inline, 0 general)