Random Code Found at Bottom of index.php Files

Change ftp password to some really bizzare. That will do the trick.
There's a script that uses brute-forced ftp accounts to download iframes into any html or php files.
The idea is to infect visitors with bot, thus creating botnet. On the market since 2001, as I reckon