. */ namespace Fisharebest\Webtrees; use Fisharebest\Webtrees\Controller\PageController; define('WT_SCRIPT_NAME', 'admin_site_info.php'); require './includes/session.php'; $controller = new PageController; $controller ->restrictAccess(Auth::isAdmin()) ->setPageTitle(I18N::translate('Server information')) ->pageHeader(); $variables = Database::prepare("SHOW VARIABLES")->fetchAssoc(); array_walk($variables, function (&$x) { $x = str_replace(',', ', ', $x); }); ob_start(); phpinfo(INFO_ALL & ~INFO_CREDITS & ~INFO_LICENSE); preg_match('%
(.*)%s', ob_get_clean(), $matches); $html = $matches[1]; ?>