The current deluser method has a couple minor flaws:
1. Newline issue with passwords do either:
a. Trim the password $lineArr so it does not have a newline in it, or
b. remove "\n" when saving names back to file.
2. wrong index being used for password (end up with username for password):
3. in the example you instantiate the htaccess object with some parameters (htaccess and htpasswd) but the constructor is empty. I changed the constructor to be:
4. I'll assume that you just didn't get a chance to complete the groups methods. You have an addGroup meth but nothing ot add users to the group or to use the group for access levels. I'll be adding my own if I get around to it and I'll post it here to add to this great little class.