iPhone Chargers

I have seen many 'ibles on battery-powered USB chargers that say they cannot charge iPhones/iTouches because they require power to be supplied to the data pins. How, then, have I seen iPhone chargers (that work) with only two inner wires - a red and a black? 

I recently bought an iPhone charger, so I could cut the wallwart off and use it instead of a USB port in this circuit. However, I have discovered that it only has 2 inner wires, as previously detailed. How could I use a 9V (PP3) battery and a 5V (7805) voltage regulator to turn this into a battery-powered charger?

Both of the above questions are ones I would like answers to.

Thanks in advance,
~H4ZZ