Fix MySQL error reporting, clean up index.php
Merge branch 'master' of https://github.com/Southparkfan/cms