Four men have admitted to running an international paedophile ring that distributed millions of indecent images around the world.