Ejemplo n.º 1
0
function dav_login($is_admin = false)
{
    global $auth_type, $auth_users;
    if ($is_admin && Auth::is_temp_admin()) {
        return true;
    }
    switch ($auth_type) {
        case 1:
            return Auth::auth_pw($auth_users);
        case 2:
            return Auth::auth_digest($auth_users);
    }
    return false;
}