okay I found this other file that seems to fix a similar problem but a different encode string.
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
I tried replacing my code from the infected files but I just get parse errors. Anyone help? Please?