Login   Register  
PHP Classes
elePHPant
Icontem

HN_htusers: Manage Apache user and group authentication files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (31)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-10-28 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 388 All time: 5,935 This week: 1,604Up
Version License PHP version Categories  
hn_htusers 1.1Freely Distributable4.2User Management, Configuration
Description Author  

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.

Picture of Horst Nogajski
Name: Horst Nogajski <contact>
Classes: 7 packages by
Country: Germany Germany
Age: 45
All time rank: 475 in Germany Germany
Week rank: 568 Down26 in Germany Germany Down
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • screenshots/screen4.jpg
  • screenshots/screen3.jpg
  • screenshots/screen1.jpg
  • screenshots/screen2.jpg
  Files folder image Files  
File Role Description
Files folder imageexamples (5 files, 6 directories)
Plain text file hn_htusers.class.php Class the classfile
Accessible without login Plain text file hn_htusers.manager.php Appl. The Management Script
Accessible without login Plain text file LICENSE.txt Lic. licence
Accessible without login Plain text file README.txt Doc. readme, should be read at first
Accessible without login HTML file short_documentation.html Doc. Documentation, how to initialize, configurate and execute the class

  Files folder image Files  /  examples  
File Role Description
Files folder imageadmins_without_htaccess_file (5 files)
Files folder imageeditors_with_htaccess_file (5 files)
Files folder imageunit_tests (3 files)
Files folder imagevisitors_with_htaccess_file (2 files)
Files folder image_htfiles (4 files)
Files folder image_libs (2 files)
  Plain text file .htaccess Data apache configurationfile, need absolute pathes to htuser- and htgroupfile
  Plain text file example_manager.inc.php Example setup the class in different ways to suit all examples
  HTML file index.html Example Frameset that hosts examples
  HTML file index2.html Example Menuframe with all Example-Links
  HTML file index3.html Example examples welcome screen ;-)

  Files folder image Files  /  examples  /  admins_without_htaccess_file  
File Role Description
  Plain text file example.woh1.php Example Form to Admins, only with htusers
  Plain text file example.woh2.php Example Form to Admins, with htusers and htinfos
  Plain text file example.woh3.php Example Form to Admins, with htusers and htgroups
  Plain text file example.woh4.php Example Form to Admins, with htusers, htinfos and htgroups
  Plain text file htaccess.inc.php Example HTTP authentication with PHP

  Files folder image Files  /  examples  /  editors_with_htaccess_file  
File Role Description
  Plain text file .htaccess Data apache configurationfile
  Plain text file example.wh1.php Example Form to NonAdmins, only with htusers
  Plain text file example.wh2.php Example Form to NonAdmins, with htusers and htinfos
  Plain text file example.wh3.php Example Form to NonAdmins, with htusers and htgroups
  Plain text file example.wh4.php Example Form to NonAdmins, with htusers, htinfos and htgroups

  Files folder image Files  /  examples  /  unit_tests  
File Role Description
  Plain text file .htaccess Data apache configuration file
  Plain text file setup_test.php Test Setup / Configuration Test, should be run, after (new) installion
  Plain text file unit_test.php Test Unit-Test, loads data and run test, independent from htfiles

  Files folder image Files  /  examples  /  visitors_with_htaccess_file  
File Role Description
  Plain text file .htaccess Data apache configurationfile
  Plain text file index.php Example shows how to embedd a form for password-changes into existing pages

  Files folder image Files  /  examples  /  _htfiles  
File Role Description
  Plain text file .htaccess Data apache configurationfile
  Plain text file .htgroup Data apache configurationfile, contains groupnames and groupmembers
  Plain text file .htinfo Data apache configurationfile, contains user : extended-info combinations
  Plain text file .htuser Data apache configurationfile, contains user : encryptedpassword combinations

  Files folder image Files  /  examples  /  _libs  
File Role Description
  Plain text file .htaccess Data apache configurationfile
  Plain text file example_class.inc.php Class Classfile for examples

 Version Control Unique User Downloads Download Rankings  
 0%Total:388All time:5,935
 This week:0This week:1,604Up