@mcfreder Please do not post that many lines of HTML here, especially don't post the malware scripts. If you need to share then please use pastebin.com and post the link to that paste.
Editing individual files never works and only treats the symptoms. You really have to delouse your installation and this link can help get you there.