cvs: pear /File_Passwd Passwd.php

From: Date: Wed, 01 Oct 2003 13:25:38 +0000
Subject: cvs: pear /File_Passwd Passwd.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13226@lists.php.net to get a copy of this message
mike Wed Oct 1 09:25:38 2003 EDT Modified files: /pear/File_Passwd Passwd.php Log: added encryption mode for File_Passwd::staticAuth for Authbasic class Index: pear/File_Passwd/Passwd.php diff -u pear/File_Passwd/Passwd.php:1.8 pear/File_Passwd/Passwd.php:1.9 --- pear/File_Passwd/Passwd.php:1.8 Thu Sep 25 10:36:59 2003 +++ pear/File_Passwd/Passwd.php Wed Oct 1 09:25:38 2003 @@ -15,7 +15,7 @@ // | Author: Rasmus Lerdorf <rasmus@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Passwd.php,v 1.8 2003/09/25 14:36:59 mike Exp $ +// $Id: Passwd.php,v 1.9 2003/10/01 13:25:38 mike Exp $ /** * Manipulate many kinds of passwd files. @@ -116,7 +116,7 @@ * @author Rasmus Lerdorf <rasmus@php.net> * @package File_Passwd * @category FileSystem -* @version $Revision: 1.8 $ +* @version $Revision: 1.9 $ * @deprecated <b>Please use the provided factory instead!</b> * * <code> @@ -455,6 +455,7 @@ * @param string $pass the plaintext password * @param string $opt o Smb: NT or LM * o Unix: des or md5 + * o Authbasic des, sha or md5 * o Authdigest realm the user is in */ function staticAuth($type, $file, $user, $pass, $opt = ''){ @@ -464,23 +465,28 @@ } switch($type){ case 'Unix': - return File_Passwd_Unix::staticAuth($file, $user, $pass, $opt); + return File_Passwd_Unix::staticAuth( + $file, $user, $pass, $opt + ); break; case 'Cvs': - return File_Passwd_Cvs::staticAuth($file, $user, $pass); + return File_Passwd_Cvs::staticAuth( + $file, $user, $pass + ); break; case 'Smb': - return File_Passwd_Smb::StaticAuth($file, $user, $pass, $opt); + return File_Passwd_Smb::StaticAuth( + $file, $user, $pass, $opt + ); break; case 'Authbasic': - return File_Passwd_Authbasic::staticAuth($file, $user, $pass); + return File_Passwd_Authbasic::staticAuth( + $file, $user, $pass, $opt + ); break; case 'Authdigest': return File_Passwd_Authdigest::staticAuth( - $file, - $user, - $pass, - $opt + $file, $user, $pass, $opt ); break; }

« previous php.pear.cvs (#13226) next »