list of movies

htpasswd parser class

you can parse .htpasswd files and control users .

Methods

contructor($address) address of .htpasswd
parse() parse .htpasswd file
reload() fetch content and parse again
haveUser() check .htaccess have user or not
userExists($username) check $username exists or not
addUser($username , $password ) push new user in $users[]
updateUser($username , $password ) update user ( user password )
deleteUser($username) unset $username from $users[]
eneratePw($pw) generate crypted password
save() save changes. needed after addUser , updateUser , deleteUser
 contact me @ telegram ( @pp2007ws)