示例#1
0
function RebuildHtpasswd($vars)
{
    global $config;
    if (in_array('htpasswd', $config['plugins']['protect'])) {
        htpasswd_update();
    }
    ajaxResponse(array("msg" => "success"));
}
示例#2
0
function htpasswd_updatelogin($htpasswd, $old_login, $new_login)
{
    htpasswd_update('login', $htpasswd, $old_login, $new_login);
}