$value) { if ($key == 'location1' || $key == 'location2' || $key == 'location3') { } else { $get_vars.= $key . '=' . $value . '&'; } } if (!isset($_GET['location1']) || $_GET['location1'] == '') $_GET['location1'] = '%'; if (!isset($_GET['location2']) || $_GET['location2'] == '') $_GET['location2'] = '%'; if (!isset($_GET['location3']) || $_GET['location3'] == '') $_GET['location3'] = '%'; $get_vars .= 'location2=' . $_GET['location1'] . '#' . $_GET['location2'] . '#' . $_GET['location3']; Header ( 'Location:' . URL . '/search.php?' . $get_vars); } include ( PATH . '/defaults.php' ); // Destroy user/admin session if we logout if (isset($_GET['req']) && $_GET['req'] == 'logout') $session->destroy(); // ---------------------------------------------------------------------- // INDEX PAGE SECTION // Title tag content $title = $conf['website_name_short']; $onload = 'onload="dropdown(1,locations);"'; $loc_init = 'ON'; // Template header include ( PATH . '/templates/' . $cookie_template . '/header.php' ); // Unsetting the search caches $session->varunset('usersearchvariables'); $session->varunset('listingsearchvariables'); $session->varunset('usersearchvariablespage'); $session->varunset('listingsearchvariablespage'); // Include Featured Listings module // include ( PATH . '/featured-iframe.php' ); // Include Featured Listings module include ( PATH . '/featured.php' ); // Include Featured Agents module include ( PATH . '/featured-agents.php' ); // Include Property Types module include ( PATH . '/types.php' ); // Include Most Visited Listings module include ( PATH . '/mostvisited.php' ); // Include Recent Listings module include ( PATH . '/recent.php' ); // Include Recent Agents module include ( PATH . '/agents.php' ); // Include Locations module include ( PATH . '/locations.php' ); // Include Price Range module include ( PATH . '/prices.php' ); // Include CRON jobs include ( PATH . '/cron.php' ); // Template footer include ( PATH . '/templates/' . $cookie_template . '/footer.php' ); ?>