LoggedIn() ) { redirect("/main.php?a=user.jump"); } include '../include/mobile_agents.php'; $s_agent = $_SERVER['HTTP_USER_AGENT']; foreach ($mobile_redirects as $mobile_redirect) { if (strpos(strtolower($s_agent), strtolower($mobile_redirect)) !== false) { header('Location: http://webdate.mobi'); exit(); } } $launch_time = 1147294846; // 5pm Wed April 10, 2006 $time = time(); $open_since = ceil(($time - $launch_time) / 3600); $online_count = rand(-500, 500) + 5000; /* GeoIP Lookup */ $referrer = $_SERVER['HTTP_REFERER']; $gi = geoip_open(WWW_PACKAGES_DIR.'/geoip/data/GeoIPCity.dat', GEOIP_STANDARD); $geo = geoip_record_by_addr($gi, $_SERVER['REMOTE_ADDR']); geoip_close($gi); $geo_location = $geo->city; $qs_select = select_menu_opts($qs_options, NULL, true); $country_select = select_menu_opts($_country_options, $geo->country_code, true); ///////////////////////////////////////////////////////////////////////////// $api_result = fetch_api_results( 'geo.get_from_ip,geo.get_cities_from_ip', array('ip_address'=>$_SERVER['REMOTE_ADDR']) ); $geo_city = $api_result['geo_get_from_ip']['city']; $geo_state = $api_result['geo_get_from_ip']['region']; $geo_country = $api_result['geo_get_from_ip']['country_code']; if ($geo_country == 'US' || $geo_country == 'CA') { $default_city = "$geo_city, $geo_state"; $cities = $api_result['geo_get_cities_from_ip']['cities']; if (empty($cities)) { $cities[] = array('city_name' => $geo_city, 'state_code' => $geo_state, 'country_name' => $geo_country); } } else { $default_city = $api_result['geo_get_from_ip']['country_name']; $cities[] = array('city_name' => $api_result['geo_get_from_ip']['country_name']); } /* if (WWW_DOMAIN == 'shop4guys.com') { $thumbs = get_random_thumbs('m', 'g', 10, $cities); } elseif ($_GET['g']) { $thumbs = get_random_thumbs('w', 'g', 16, $cities); $thumbs = mix_couples($thumbs, 'pg'); } elseif ($_GET['pg']) { $thumbs = get_random_thumbs('w', 'pg', 16, $cities); $thumbs = mix_couples($thumbs, 'pg'); } elseif ($geo_country == 'US') { $thumbs = get_random_thumbs('w', strtolower($geo_state), 30, $cities, true); } else { $thumbs = get_random_thumbs('w', 'r', 16, $cities); $thumbs = mix_couples($thumbs, 'r'); } */ $thumbs = front_page_thumbs( 16, 30 ); if ($_GET['g']) { $interested_ins = array( 'Fun, Online Relationships and Other', 'Fun, Dating and Online Flirting', 'Online Relationships, Dating and Other', 'Fun, Online Flirting and Other' ); } else { $interested_ins = array( 'Fetish, Group Fun and Other', 'Fetish, Group Fun and Sexual Relations', 'Fetish, Group Fun and Online Flirting', 'Group Fun, Sexual Relations and Online Flirting', 'Fetish, Group Fun, Sexual Relations and Online Flirting', 'Sexual Relations, Online Flirting and Other' ); } ///////////////////////////////////////////////////////////////////////////// include_pub_template('index_page.html'); ?>