Location: PHPKode > projects > FAQMasterFlex > FAQMasterFlex/FAQMasterFlex/admin_authorize.php
<?php
include "faq_config.php";

$PHP_AUTH_USER = $_SERVER['PHP_AUTH_USER'];
$PHP_AUTH_PW = $_SERVER['PHP_AUTH_PW'];

if ((!isset ($PHP_AUTH_USER)) || (!isset($PHP_AUTH_PW)) || ($PHP_AUTH_USER != "$username") || ($PHP_AUTH_PW != "$password")) {
   header( 'WWW-Authenticate: Basic realm="FAQMasterFlex: Administration"' );
   header( 'HTTP/1.0 401 Unauthorized' ); 
   echo '<META http-equiv="refresh" content="0;URL=../">'; 
   exit; 
} 

else {$login = "<p><strong>Login Successful</strong></p>";} 
mysql_close($link);		    			    
?>
Return current item: FAQMasterFlex