Hi Helionet I am new here! I was reading this topic to know more about the host where my new site will be.
My suggestion is that the reason you got hacked it's no php bugs, no chmod mistakes, it was a CPANEL Bug! cPanel Bug Lets Remote Authenticated Users Gain Root Access!
This happened to other hosts as well: check this http://www.goodwebhosting.info/article.py/61
Also, the index pages they replaced had a virus that was infecting Internet Explorer users.