Alternc
3.2
Alternc logiel libre pour l'hébergement
|
This class handle folder web restricted access through .htaccess/.htpassword files. More...
Public Member Functions | |
m_webaccess () | |
Constructor. | |
alternc_password_policy () | |
Password kind used in this class (hook for admin class) | |
hook_menu () | |
CreateDir ($dir) | |
Create a protected folder (.htaccess et .htpasswd) | |
ListDir () | |
Returns the list of all user folder currently protected by a .htpasswd file. | |
is_protected ($dir) | |
Tells if a folder is protected. | |
get_hta_detail ($dir) | |
Returns the list of login for a protected folder. | |
DelDir ($dir) | |
Unprotect a folder. | |
add_user ($user, $password, $dir) | |
Add a user to a protected folder. | |
del_user ($lst, $dir) | |
Delete a user from a protected folder. | |
change_pass ($user, $newpass, $dir) | |
Change the password of a user in a protected folder. | |
_reading_htaccess ($absolute) | |
Check that a .htaccess file is valid (for authentication) |
This class handle folder web restricted access through .htaccess/.htpassword files.
Copyleft AlternC Team
_reading_htaccess | ( | $absolute | ) |
Check that a .htaccess file is valid (for authentication)
string | $absolute | Folder we want to check (relative to user root) |
Definition at line 373 of file m_hta.php.
References $err.
add_user | ( | $user, | |
$password, | |||
$dir | |||
) |
Add a user to a protected folder.
string | $login | The user login to add |
string | $password | The password to add (cleartext) |
string | $dir | The folder we add it to (relative to user root). |
Definition at line 227 of file m_hta.php.
References $err, $password, $t, $user, _md5cr(), and checkloginmail().
alternc_password_policy | ( | ) |
change_pass | ( | $user, | |
$newpass, | |||
$dir | |||
) |
Change the password of a user in a protected folder.
string | $user | The users whose password should be changed |
string | $newpass | The new password of this user |
string | $dir | The folder, relative to user root, in which we will change a password |
Definition at line 327 of file m_hta.php.
References $err, $t, $user, and _md5cr().
CreateDir | ( | $dir | ) |
Create a protected folder (.htaccess et .htpasswd)
string | $dir | Folder to protect (relative to user root) |
Definition at line 76 of file m_hta.php.
del_user | ( | $lst, | |
$dir | |||
) |
Delete a user from a protected folder.
array | $lst | An array with login to delete. |
string | $dir | The folder, relative to user root, where we want to delete users. |
Definition at line 286 of file m_hta.php.
DelDir | ( | $dir | ) |
Unprotect a folder.
string | $dir | Folder to unprotect, relative to user root |
Definition at line 199 of file m_hta.php.
get_hta_detail | ( | $dir | ) |
Returns the list of login for a protected folder.
string | $dir | The folder to lookup (relative to user root) |
Definition at line 164 of file m_hta.php.
References $err, $i, $mem, $res, $t, and ALTERNC_HTML.
hook_menu | ( | ) |
is_protected | ( | $dir | ) |
Tells if a folder is protected.
string | $dir | Folder to check |
Definition at line 144 of file m_hta.php.
References $err, $mem, and ALTERNC_HTML.
ListDir | ( | ) |
Returns the list of all user folder currently protected by a .htpasswd file.
Definition at line 119 of file m_hta.php.