Periodic orbits of the planar anisotropic generalized Kepler problem