is this a function?
If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!global $ADMIN_PWD;
if ( $member == 1 )
{
if ( $_SERVER['PHP_AUTH_USER'] == 'admin' && $_SERVER['PHP_AUTH_PW'] == $ADMIN_PWD )
{
return true;
}
if ( $error_handle )
{
header( "WWW-Authenticate: Basic realm=\"Directory Administration\"" );
header( "HTTP/1.0 401 Unauthorized" );
echo "Access denied";
exit;
}
}
return false;
There is a mistake somewhere but, I can not see it. Someone else?
Regrads,
Chris
is this a function?
yes, it's a function it web team.
why is the $_SERVER['PHP_AUTH_USER'] set to admin if the $member is true, will this be the problem?
ok, can you post the whole function then?
try this onePHP Code:<?php
global $ADMIN_PWD;
if ( $member == 1 )
{
if (isset($_SERVER["PHP_AUTH_USER"]) &&
$_SERVER["PHP_AUTH_USER"] == "admin" &&
$_SERVER["PHP_AUTH_PW"] ==$ADMIN_PWD) {
return true;
} else {
header("WWW-Authenticate: Basic realm=\"Directory Administration\"");
header("HTTP/1.0 401 Unauthorized");
}}
?>
regards tog
thanks problem solved.
Bookmarks