Update index.php

Added full PHP open tags.
Better laid-out switch block and allowed more dynamic handling of user pages.
Added a few report php includes in the case blocks.