Removing closing php tags and recentactivity fix