Re: password protect WRM2

From: Date: Sun, 07 Jan 2001 21:16:10 +0000
Subject: Re: password protect WRM2
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-33122@lists.php.net to get a copy of this message
(BC == "Brian Clark") brianj@fusionwerks.com writes: BC> (DS == "David Smith") webmaster@indywebdesign.com writes: DS>> I am currently using the following code to password protect a DS>> file but it uses only one login/pass. How would I change this DS>> code to accept multiple logins by checking fields login/pass from DS>> a mysql db? BC> function Authenticate() BC> { BC> /* old code from an old class */ BC> /* will need adjustments for your code */ BC> reset($GLOBALS); BC> $username = $GLOBALS['PHP_AUTH_USER']; BC> $password = $GLOBALS['PHP_AUTH_PW']; I forgot to mention that the above ^^^ should come from your WWW-Authenticate headers (pop-up dialog). -Brian

« previous php.general (#33122) next »