-
Looks like some of that code that you fixed is to prevent people from looking at the source? That or you do have a real problem. You really shouldn't need anything at the beginning of the file other than whatever is required by the server to recognise the file as a PHP file. Usually, this is nothing at all or just a minimal three line declaration but, does vary from server to server.
-
The code I added is from phpBB. I added it so that the file knew what to access in the database, and it was also supposed to make phpBB realize it wasn't a hacking attempt. Looks like that didn't work.