Fixes for very ornery PHP parser on lunarpages