I'm making an autoreport system for an online game, where when a 'match' is finish, a URL will be requested, such as: http://egsl.enguards.net/update.php?...=5&heartsTwo=0

http://www.enguards.net/egsl.zip
Here is what I have. update.php is really messy and several things are not working - for example, viewing player account profiles and the ?mode=top.

At the player profiles, I also get this error: Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/sites/enguards.net/public_html/egsl/singles.php on line 43


Can anyone help clean this up?