Re: RFC on merge of PHPLib and Pear

From: Date: Wed, 07 Mar 2001 16:52:24 +0000
Subject: Re: RFC on merge of PHPLib and Pear
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1638@lists.php.net to get a copy of this message
* Chuck Hagenbuch wrote: > Can you use phplib's auth to authenticate someone by ip address? What about by class ipauth extends Auth { . . . function auth_validatelogin() { $uid = false; if ($GLOBALS["REMOTE_ADDR"] == "193.103.103.103") { $uid = "sdfsdfsdsdfgfds"; } return $uid; } } Et voila: <?php page_open(array("sess" => "mysession", "auth" => "ipauth")); print "You have User-ID: ".$auth->auth["uid"]; ?> > username and password but only if they're coming from a certain ip address? The > list goes on and on... it's not generic. It seems you have never used PHPLIB's Auth? -- Björn Schotte bjoern@php.net http://rent-a-phpwizard.de/ bjoern@baer.main.de Software dev advocate: http://www.advogato.org/person/baerli/

« previous php.pear (#1638) next »