query("SELECT * FROM {$_SESSION['database_prefix']}modules order by id"); if ($dba->num_rows($getModules) > 0) { while($rowModules = $dba->next_record($getModules)) { if (is_dir($bftd_config->siteRoot.'/modules/'.$rowModules['folder'].'/')) { if (file_exists($bftd_config->siteRoot.'/modules/'.$rowModules['folder'].'/'.$rowModules['folder'].'.class.php')) { include($bftd_config->siteRoot.'/modules/'.$rowModules['folder'].'/'.$rowModules['folder'].'.class.php'); $$rowModules['folder'] = new $rowModules['folder']; } } } } if ($page->topCategory != $bftd_config->atemplate) { /* SEO BITS */ $SEO_TITLE = $page->getTitle(); $pageShortname = $page->topCategory; if(!strlen($pageShortname)) { $pageShortname='index'; }; $breadcrumbs = $page->getBreadcrumbs(); include('_create_menus.inc.php'); /* * * BANNERS * */ $full_page = false; if (count($bftd_config->banners) > 0) { $get_banners = $dba->query("SELECT * FROM {$_SESSION['database_prefix']}pages WHERE shortname='{$shortname}'"); if ($dba->num_rows($get_banners) > 0) { $row_banners = $dba->next_record($get_banners); if ($row_banners['banner_full'] > 0) { $full_page = true; $banner_details = $banners->load($row_banners['banner_full']); } else { foreach($bftd_config->banners as $key=>$banner) { $banner_details = $banners->load($row_banners[$key]); $banner_details['core'] = $banner; $all_banners[$key] = $banner_details; unset($banner_details); } } } } } ?>