//Includes include('private/includes/config/paths.php'); // Include the paths include(FRAMEWORK_PATH_MF.'func.globals.php'); // Include the frame functions include(PRIVATE_PATH.'includes/config/inc.config.php'); // Include configs //Redirect to correct server name if(substr($_SERVER['SERVER_NAME'],0,4) != 'www.') { redirect301('http://www.'.$_SERVER['SERVER_NAME']); } //Make database object and connection, we need this on every page $oDb = new database(MYSQLERR_PATH, $aCore['logmysql']); $oDb->connect($DBhost, $DBusername, $DBpassword, $DBname); //Set NL $oDb->query("SET NAMES utf8 COLLATE utf8_general_ci"); $oDb->query("SET lc_time_names = 'nl_NL'"); setlocale(LC_ALL, 'nl_NL'); //Create pager and render object $oPager = new Pager(); $oRender = new Render(); //Get index content include('system/controllers/frame/frame.php'); //Get page include($oPager->getPage()); //Assigns $oRender->assign('aCore', $aCore); //$oRender->assign('aCompaniesFrame', $aCompaniesFrame); //From frame controller //$oRender->assign('aCompaniesFrameLess', $aCompaniesFrameLess); //From frame controller //$oRender->assign('aLoanTypesFrame', $aLoanTypesFrame); //From frame controller //$oRender->assign('aTopBanner', $aTopBanner); //From frame controller //Wich index tpl? if(isset($_GET['page']) && ($_GET['page'] == 'clickframe' || $_GET['page'] == 'sitemapxml' || $_GET['page'] == 'comparedetail' || ($_GET['page'] == 'misc' && $_GET['type'] == 'external_links') || ($_GET['page'] == 'misc' && isset($_GET['rss'])) || isset($_GET['printdetail']) )) { $sDisplay = 'empty.tpl'; } else { $sDisplay = 'index.tpl'; } //Header for render if($_GET['page'] == 'misc' && isset($_GET['rss']) || $_GET['page'] == 'sitemapxml') { $bH = false; } else { $bH = true; } //Display template $oRender->display($sDisplay,$bH); if($_SERVER['REMOTE_ADDR'] == '77.168.49.114'){ $included_files = get_included_files(); foreach ($included_files as $filename) { //echo "$filename
"; } } ?>