mcserep / htaccessManager

Simple web editor of htpasswd files (basic authentication) for repository management. User may alter their passwords, administrators can add, delete and modify users.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A .htaccess manager

Simple web editor of htpasswd files (basic authentication) for repository management. Users may alter their passwords, administrators can add, delete and modify users.

Example usage assuming authentication was enforced on page load by htaccess:

require_once 'htaccessManager.php';
$manager = new htaccessManager(
    'example',                 // required; name of the repository, serves as a title
    array('admin1', 'admin2'), // optional; users with administrator privileges
    '/path/to/passwd/folder',  // optional; the location of .htpasswd file, 
                               // defaults to the value defined in htaccessManager.php
    'htpasswd file name'       // optional; name of the .htpasswd file, 
                               // defaults to the repository name
);
$manager->show($_SERVER['PHP_AUTH_USER']); 

About

Simple web editor of htpasswd files (basic authentication) for repository management. User may alter their passwords, administrators can add, delete and modify users.

License:MIT License


Languages

Language:PHP 97.8%Language:ApacheConf 2.2%