Re: [Phplib-users] Giancarlo Pinerolo (pingus) auth patch
Brought to you by:
nhruby,
richardarcher
|
From: Joe S. <jo...@be...> - 2002-06-06 12:18:51
|
On Thu, Jun 06, 2002 at 11:23:39AM +0200, Michele Marcucci wrote: > Hi there, > i'm looking for a method to put everywhere the loginform (like many > site, like phpnuke for example) so i get this patch > (https://sourceforge.net/tracker/index.php?func=detail&aid=561500&group_id=31885&atid=403613) > but i dont understand how it works, please can you help me? > > -- > Another method that works without patching phplib is like this: if(isset($HTTP_POST_VARS['username'])) { // this would be present if a login is in progress $auth->auth["uid"]= "form"; // this is what auth seems to want $auth->start(); } $auth->login_if(!$perm->have_perm('user')); Here is the original post: http://marc.theaimsgroup.com/?l=phplib&m=99114081209404&w=2 Here is a simple example: http://www.phpslash.org/index.php3?section_id=11 have fun, Joe > > Michele Marcucci > |