. */ namespace Fisharebest\Webtrees; use Fisharebest\Webtrees\Controller\AncestryController; use Fisharebest\Webtrees\Functions\FunctionsEdit; require 'includes/session.php'; $controller = new AncestryController; $controller->restrictAccess(Module::isActiveChart($controller->tree(), 'ancestors_chart')); // Only generate the content for interactive users (not search robots). if (Filter::getBool('ajax') && Session::has('initiated')) { echo $controller->getChart(); echo $controller->getJavascript(); return; } $ajax_url = Html::url('ancestry.php', [ 'rootid' => $controller->root->getXref(), 'ged' => $controller->root->getTree()->getName(), 'PEDIGREE_GENERATIONS' => $controller->generations, 'chart_style' => $controller->chart_style, 'show_cousins' => $controller->show_cousins, 'ajax' => 1, ]); $controller->pageHeader(); ?>