Well this helped quite a bit. I am getting this same situation.
Once I put your code in place only one "Notice: Undefined variable:" remained.
It is the one referencing this line.
Code:
if($act == "Arcade" || $autocom=="arcade") {
Otherwise this is the best fix so far for the notification at the top of the index file and the score posting page.
Any ideas about that one line?
Thank you for your efforts!