Streamline index.php/diary_show.php. Most of its code was moved to diary.php (get_data()).