cvs: php4 /pear/File Passwd.php

From: Date: Thu, 29 Nov 2001 18:52:53 +0000
Subject: cvs: php4 /pear/File Passwd.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1432@lists.php.net to get a copy of this message
mj Thu Nov 29 13:52:53 2001 EDT Modified files: /php4/pear/File Passwd.php Log: * Add function listUsers() that returns all users from passwd file. Index: php4/pear/File/Passwd.php diff -u php4/pear/File/Passwd.php:1.5 php4/pear/File/Passwd.php:1.6 --- php4/pear/File/Passwd.php:1.5 Mon Nov 26 06:41:17 2001 +++ php4/pear/File/Passwd.php Thu Nov 29 13:52:53 2001 @@ -16,7 +16,7 @@ // | Authors: Rasmus Lerdorf <rasmus@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Passwd.php,v 1.5 2001/11/26 11:41:17 mj Exp $ +// $Id: Passwd.php,v 1.6 2001/11/29 18:52:53 mj Exp $ // // Manipulate standard UNIX passwd,.htpasswd and CVS pserver passwd files @@ -183,6 +183,16 @@ } return false; } // end func verifyPassword() + + /** + * Return all users from passwd file + * + * @access public + * @return array + */ + function listUsers() { + return $this->users; + } // end func listUsers() /** * Writes changes to passwd file and unlocks it

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