"1", "US" => "2", "DE" => "3", "HK" => "4", "SG" => "5" ); // based on http://stackoverflow.com/questions/12553160/getting-visitors-country-from-their-ip $output = NULL; $ip = $_SERVER["REMOTE_ADDR"]; if (filter_var(@$_SERVER['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP)) $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; if (filter_var(@$_SERVER['HTTP_CLIENT_IP'], FILTER_VALIDATE_IP)) $ip = $_SERVER['HTTP_CLIENT_IP']; echo ''; // just for testing if (filter_var($ip, FILTER_VALIDATE_IP)) { $ipdat = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=" . $ip)); if (@strlen(trim($ipdat->geoplugin_countryCode)) == 2) { $output = @$ipdat->geoplugin_countryCode; } } // echo 'got this from geoplugin: ' . $output . '
'; // if user is in country that we've got a language for, convert returned country code into one of Publisher's IDs if (array_key_exists($output, $country_ids)) { return $country_ids[$output]; } else { return null; } } /****************************************************************************************** GO! ******************************************************************************************/ // detect user's country (or load it from cookie if we've done this before) if (isset($_COOKIE["detected_country_id"])) { $detected_country_id = $_COOKIE["detected_country_id"]; } else { $detected_country_id = get_country_id(); setcookie("detected_country_id", $detected_country_id, 0); // store just until end of session } // check if they're looking at the right site... if (!$detected_country_id) { // if we're not in a country that has it's own site, don't show anything setcookie("chosen_language", $detected_country_id); echo ''; } else if ($detected_country_id == "1") { // if we're already on the site we were going to recommend, save this as our chosen one // setcookie("chosen_language", $detected_country_id); echo ''; } else { // otherwise, give them the choice to switch to it echo ''; echo ''; echo ''; } } else { echo ''; } ?> Concise | Expertise

Companies across a broad range of industries trust Concise to enhance their live events.

From telecoms to travel, and from energy giants to leading fashion houses. Over the years, we have honed our expertise in four sectors in particular, each with their own unique demands.

Sector experience