extends |
Module_Skeleton |
---|
htaccess/htpasswd
Methods | ||
---|---|---|
public
|
__construct()
|
# |
public
|
is_protected($host, $path = '/')
|
# |
public
|
protect_location($host, $path = '/', $realm = self::DEF_REALM_NAME, $type = 'digest')
|
# |
public
|
get_locations($host)
|
# |
public
|
delete_location($host, $path)
|
# |
public
|
edit_location($host, $path, $opts)
|
# |
public
|
location_info($host, $path)
|
# |
public
|
user_exists($host, $user)
|
# |
public
|
add_user($host, $user, $passwd = null)
|
# |
public
|
delete_user($host, $user)
|
# |
public
|
get_users($host)
|
# |
public
|
get_groups($host)
|
# |
public
|
change_password($host, $user)
|
# |
public
|
create_group($host, $group, $users = [])
|
# |
public
|
user_in_group($host, $user, $group)
|
# |
public
|
remove_user_group($host, $user, $group)
|
# |
public
|
add_user_group($host, $user, $group)
|
# |
public
|
delete_group($host, $group)
|
# |
public
|
deauthorize_role($host, $role)
|
# |
public
|
authorize_role($host, $role)
|
# |
public
|
is_authorized($host, $role, $path = '/')
|
# |
Constants | ||
---|---|---|
public
|
HTPASSWD_DIR = '/var/www/.htfiles'
|
# |
public
|
DEF_REALM_NAME = 'Restricted Area'
|
# |