$lang = getenv ("HTTP_ACCEPT_LANGUAGE"); $country_code = apache_note("GEOIP_COUNTRY_CODE"); $set_lang = explode(',', $lang); $i = 0; while ($i < 1) { $code = substr("$set_lang[$i]", 0, 2); if ($code == 'de') { header("Location: /index_de.php"); } if ($code == 'ru') { header("Location: /index_ru.php"); } if ($code == 'fr') { header("Location: /index_fr.php"); } if ($code == 'zh') { header("Location: /index_cn.php"); } if ($code == 'pt') { header("Location: /index_pt.php"); } if ($code == 'jp') { header("Location: /index_jp.php"); } if ( $country_code == "JP" ) { header ("Location: /index_jp.php" ); } if ($code == 'es') { header("Location: /index_es.php"); } if ($code == 'nl') { header("Location: /index_nl.php"); } if ($code == 'ro') { header("Location: /index_ro.php"); } if ( $country_code == "SE" ) { header ("Location: /index_se.php" ); } if ( $country_code == "SE" ) { header ("Location: /index_se.php" ); } if ( $country_code == "BA" ) { header ("Location: /index_yu.php" ); } if ( $country_code == "CS" ) { header ("Location: /index_yu.php" ); } if ( $country_code == "SI" ) { header ("Location: /index_yu.php" ); } if ( $country_code == "HR" ) { header ("Location: /index_yu.php" ); } if ( $country_code == "MK" ) { header ("Location: /index_yu.php" ); } if ($code == 'sh') { header("Location: /index_yu.php"); } if ($code == 'sl') { header("Location: /index_yu.php"); } if ($code == 'hr') { header("Location: /index_yu.php"); } if ($code == 'mk') { header("Location: /index_yu.php"); } if ($code == 'sr') { header("Location: /index_yu.php"); } if ( $country_code == "PH" ) { header ("Location: /index_ph.php" ); } if ( $country_code == "PL" ) { header ("Location: /index_pl.php" ); } if ($code == 'pl') { header("Location: /index_pl.php"); } if ( $country_code == "NO" ) { header ("Location: /index_no.php" ); } if ($code == 'no') { header("Location: /index_no.php"); } if ( $country_code == "BG" ) { header ("Location: /index_bg.php" ); } if ($code == 'bg') { header("Location: /index_bg.php"); } if ( $country_code == "GR" ) { header ("Location: /index_gr.php" ); } if ($code == 'gr') { header("Location: /index_gr.php"); } if ( $country_code == "TW" ) { header ("Location: /index_cn.php" ); } if ( $country_code == "CN" ) { header ("Location: /index_cn.php" ); } if ( $country_code == "HK" ) { header ("Location: /index_cn.php" ); } $i++; } ?>
Trace | Phone GPS | Mobile Tracking | Support | Comments | Documentation |
HOW DOES IT WORK? |