Authorization Required.
If you think there is an error please contact webmaster at admin@shawinternet.com';
if (!isset( $PHP_AUTH_USER )||!isset($PHP_AUTH_PW)){
header( 'WWW-Authenticate: Basic realm="Private"' );
header( 'HTTP/1.0 401 Unauthorized' );
echo "$Author";
exit;
//header ("Location: autenticate.php?links=female");
}
else{
$get_qu="SELECT UserName, PW, RV from passreq WHERE UserName='$PHP_AUTH_USER' AND (RV='Y' OR RV='P')";
$qu_result=mysql_query($get_qu);
while ($qu_myraw=mysql_fetch_array($qu_result)){
$passw[]=$qu_myraw['PW'];
}
if (isset($PHP_AUTH_PW) and isset($passw)){
if (!in_array($PHP_AUTH_PW, $passw)){
header( 'WWW-Authenticate: Basic realm="Private"' );
header( 'HTTP/1.0 401 Unauthorized' );
echo "$Author";
exit;
}
}
else {
header( 'WWW-Authenticate: Basic realm="Private"' );
header( 'HTTP/1.0 401 Unauthorized' );
echo "$Author";
exit;
}
}
?>
Untitled
Click here to continue.