include("../modules/prefs.ht");
$page_access_level = 1;
include("$modules_path/security.php3");
include("$modules_path/ip2country.php3");
if($local){
$language_url[0]="language.htm?l=0";
$language_url[1]="language.htm?l=1";
} else {
$language_url[0]="http://www.shoe-icons.com/index.htm";
$language_url[1]="http://eng.shoe-icons.com/index.htm";
}
if(isset($default_language)){
$language = $default_language;
} else {
$code= ip2country_get_country_code2($REMOTE_ADDR);
if($code=='RU' or $code=='BY' or $code=='UA'){
$language =0;
} else {
$language =1;
}
}
Header("Location: ".$language_url[$language]);
exit();
/*
include("../modules/prefs.ht");
if(!$splash){
if(!$splash_viewed){
$splash_cookieTTL = time()+604800; //86400*7 1 неделя
setcookie ("splash_viewed", 1 ,$splash_cookieTTL,"$htmlrootpath/", "$this_domain",0); //
} else {
if(!$local){
Header("Location: http://www.shoe-icons.com/language.htm?l=$default_language");
} else {
Header("Location: index.htm");
}
exit();
}
}
*/
?>
Shoe-Icons
Русская версия
English version