$_GET['keyword']), $_GET['cmsversion']); if (!$page or ($_GET['cmsversion'] and !$_SESSION['admin']['id'])) { header("HTTP/1.0 404 Not Found"); exit('Page Not Found'); } $page['nav_keyword'] = $keyword; // for use in navigation in header $page['nav_chain'] = find_nav_chain($db, $page); // find the IDs of the nav heirarchy, for use in header navigation $page['breadcrumbs'] = get_breadcrumbs($page['nav_chain'], '›', true); $page['meta_title'] = $page['title'] . ($settings['html_title_snippet'] ? " {$settings['html_title_snippet']}" : '') ; // set the title of last item in nav_chain - may have been set by special content include $nav_chain_keys = array_keys($page['nav_chain']); $page['nav_chain'][end($nav_chain_keys)]['title'] = $page['title']; $page['content'] = cms_render_page($db, $page, $settings); $page['id_nav_root_page'] = 0; $page['nav_depth'] = 3; $page['nav_html'] = $extra_nav_html.cms_get_nav_html($db, $page['id_nav_root_page'], $page['nav_chain'], $page['nav_depth'], '', true); } // display the page ob_start('ob_gzhandler'); include 'common/headerfooter.php';