This class can be used to manage Apache user and group authentication files.
It can manage Apache .htaccess and .htgroup files to define users, groups and passwords for authentication. Optionally it can manage extra information for users, stored in a third file.
It uses Apache-style MD5-crypt passwords to be portable between win and *nix platforms.
The class provide a forms based user interface to manage the authorization files definitions of users and groups.
It can also perform HTTP basic authentication for users defined in the configuration files directly from PHP instead of having it done by Apache.
This class is based on prior work by Jarno Elonen and Sarah King.
No application links were specified for this class.
| File |
Role |
Description |
examples |
.htaccess |
Data |
apache configurationfile, need absolute pathes to htuser- and htgroupfile |
examples/admins_without_htaccess_file |
example.woh1.php |
Example |
Form to Admins, only with htusers |
example.woh2.php |
Example |
Form to Admins, with htusers and htinfos |
example.woh3.php |
Example |
Form to Admins, with htusers and htgroups |
example.woh4.php |
Example |
Form to Admins, with htusers, htinfos and htgroups |
htaccess.inc.php |
Example |
HTTP authentication with PHP |
examples/editors_with_htaccess_file |
.htaccess |
Data |
apache configurationfile |
example.wh1.php |
Example |
Form to NonAdmins, only with htusers |
example.wh2.php |
Example |
Form to NonAdmins, with htusers and htinfos |
example.wh3.php |
Example |
Form to NonAdmins, with htusers and htgroups |
example.wh4.php |
Example |
Form to NonAdmins, with htusers, htinfos and htgroups |
examples |
example_manager.inc.php |
Example |
setup the class in different ways to suit all examples |
index.html |
Example |
Frameset that hosts examples |
index2.html |
Example |
Menuframe with all Example-Links |
index3.html |
Example |
examples welcome screen ;-) |
examples/unit_tests |
.htaccess |
Data |
apache configuration file |
setup_test.php |
Test |
Setup / Configuration Test, should be run, after (new) installion |
unit_test.php |
Test |
Unit-Test, loads data and run test, independent from htfiles |
examples/visitors_with_htaccess_file |
.htaccess |
Data |
apache configurationfile |
index.php |
Example |
shows how to embedd a form for password-changes into existing pages |
examples/_htfiles |
.htaccess |
Data |
apache configurationfile |
.htgroup |
Data |
apache configurationfile, contains groupnames and groupmembers |
.htinfo |
Data |
apache configurationfile, contains user : extended-info combinations |
.htuser |
Data |
apache configurationfile, contains user : encryptedpassword combinations |
examples/_libs |
.htaccess |
Data |
apache configurationfile |
example_class.inc.php |
Class |
Classfile for examples |
hn_htusers.class.php |
Class |
the classfile |
hn_htusers.manager.php |
Appl. |
The Management Script |
LICENSE.txt |
Lic. |
licence |
README.txt |
Doc. |
readme, should be read at first |
short_documentation.html |
Doc. |
Documentation, how to initialize, configurate and execute the class |