Anisotropy and temperature dependence of the upper critical field of type-II superconductors