cvs: pear /Auth/Container File.php

From: Date: Thu, 29 Nov 2001 19:01:00 +0000
Subject: cvs: pear /Auth/Container File.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1433@lists.php.net to get a copy of this message
mj Thu Nov 29 14:01:00 2001 EDT Modified files: /pear/Auth/Container File.php Log: * Add listUsers() to file container. Index: pear/Auth/Container/File.php diff -u pear/Auth/Container/File.php:1.2 pear/Auth/Container/File.php:1.3 --- pear/Auth/Container/File.php:1.2 Mon Nov 26 06:48:38 2001 +++ pear/Auth/Container/File.php Thu Nov 29 14:01:00 2001 @@ -17,7 +17,7 @@ // | Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: File.php,v 1.2 2001/11/26 11:48:38 mj Exp $ +// $Id: File.php,v 1.3 2001/11/29 19:01:00 mj Exp $ // require_once "File/Passwd.php"; @@ -32,7 +32,7 @@ * * @author Stefan Ekman <stekman@sedata.net> * @package Auth - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ class Auth_Container_File extends Auth_Container { @@ -82,6 +82,20 @@ } return $result; + } + + // }}} + // {{{ listUsers() + + function listUsers() + { + $users = $this->pwfile->listUsers(); + + foreach ($users as $key => $value) { + $retVal[] = array("username" => $key, "password" => $value); + } + + return $retVal; } // }}}

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