Rings with Central Idempotent or Nilpotent Elements