It appears you have not yet registered with our community. To register please click here...

DNforum.com - Domain Sales, Domain Forum, Domain Appraisals
 
Register Now!
Register Now for FREE!
Our records show you have not yet registered to our forums. To sign up for your FREE account INSTANTLY fill out the form below!

Username: Password: Confirm Password: E-Mail: Confirm E-Mail:  
Birthday:       I agree to forum rules 

Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion > Coding/Programming/Languages
Register Search Today's Posts Mark Forums Read
Click Here
Reply
 
LinkBack Thread Tools Display Modes
Old 08-31-2005, 01:14 PM   #1 (permalink)
Platinum Lifetime Member
 
Last Online: 06-24-2008 05:55 PM
iTrader: (2)
Join Date: Aug 2004
Posts: 143
DNF$: 208
Location: Belgium


Php Error

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
__________________
www.yemoo.net - Free web directory
chris1906 is offline   Reply With Quote
Sponsored Links
Old 08-31-2005, 01:28 PM   #2 (permalink)
www.LOL.biz
 
Bender's Avatar
 
Name: Daniel
Last Online: 11-21-2008 05:33 PM
iTrader: (13)
Join Date: Apr 2004
Posts: 1,809
DNF$: 5,262
Location: .ro
Country:


Re: Php Error

is this a function?
__________________
Eli Stone|
Bender is offline   Reply With Quote
Old 08-31-2005, 02:27 PM   #3 (permalink)
Platinum Lifetime Member
 
Last Online: 06-24-2008 05:55 PM
iTrader: (2)
Join Date: Aug 2004
Posts: 143
DNF$: 208
Location: Belgium


Re: Php Error

yes, it's a function it web team.
__________________
www.yemoo.net - Free web directory
chris1906 is offline   Reply With Quote
Old 08-31-2005, 03:22 PM   #4 (permalink)
David Ausman
 
DavidAusman's Avatar
 
Last Online: 11-09-2008 09:58 AM
iTrader: (40)
Join Date: May 2005
Posts: 822
DNF$: 848
Location: 127.0.0.1


Re: Php Error

why is the $_SERVER['PHP_AUTH_USER'] set to admin if the $member is true, will this be the problem?
__________________
Best Regard
~ David Ausman
DavidAusman is offline   Reply With Quote
Old 08-31-2005, 03:22 PM   #5 (permalink)
www.LOL.biz
 
Bender's Avatar
 
Name: Daniel
Last Online: 11-21-2008 05:33 PM
iTrader: (13)
Join Date: Apr 2004
Posts: 1,809
DNF$: 5,262
Location: .ro
Country:


Re: Php Error

ok, can you post the whole function then?
__________________
Eli Stone|
Bender is offline   Reply With Quote
Old 08-31-2005, 04:27 PM   #6 (permalink)
Platinum Lifetime Member
 
Last Online: 11-01-2008 12:32 PM
iTrader: (1)
Join Date: Jun 2005
Posts: 42
DNF$: 9,430
Location: good old germany


Re: Php Error

PHP Code:
<?php
global $ADMIN_PWD;
if ( 
$member == )
{
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");
}}
?>
try this one

regards tog
TogZip is offline   Reply With Quote
Old 08-31-2005, 06:41 PM   #7 (permalink)
Platinum Lifetime Member
 
Last Online: 06-24-2008 05:55 PM
iTrader: (2)
Join Date: Aug 2004
Posts: 143
DNF$: 208
Location: Belgium


Re: Php Error

thanks problem solved.
__________________
www.yemoo.net - Free web directory
chris1906 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 12:50 AM.
Copyright @2001-2008 DNForum.com

Learn Domains
Promote Domains
Research Domains
Buy Domains
Resell Domains
Park Domains
Sell Domains
Build Domains
Host Domains
Trademark Domains
Domain Domains
manage Domains
Appraise Domains