. */ namespace Fisharebest\Webtrees; use Fisharebest\Webtrees\Controller\PageController; use Michelf\MarkdownExtra; define('WT_SCRIPT_NAME', 'admin_site_readme.php'); require './includes/session.php'; $controller = new PageController; $controller ->restrictAccess(Auth::isAdmin()) ->setPageTitle(I18N::translate('README documentation')) ->pageHeader(); // The readme file contains code-quality badges before the first header $readme = file_get_contents('README.md'); $readme = preg_replace('/.*(?=# webtrees)/s', '', $readme); ?>