Update inbox.php and mainpage.php

With the exception of marking messages as read, both of these files are
functioning as expected.