Core code needed for TypiCMS