Authorization Required.
If you think there is an error please contact webmaster at admin@shawinternet.com';
$auth_user = $_SERVER["PHP_AUTH_USER"];
$auth_pwd = $_SERVER["PHP_AUTH_PW"];
if (!isset( $auth_user )||!isset($auth_pwd)){
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='$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($auth_pwd) and isset($passw)){
if (!in_array($auth_pwd, $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;
}
}
?>
Fresh Webmaster Content