$r_csn=strtolower(getenv("CHARSET")); $r_port=getenv("CHARSET_SERVER_PORT"); $r_file=$SCRIPT_NAME; $r_ua=getenv("HTTP_USER_AGENT"); $host=getenv("REMOTE_ADDR"); $phpco=0; if (strcmp($r_port,"80")==0) if (strlen(strpos($r_ua,"htdig"))==0) { if (strcmp($r_csn,"windows-1251")==0) $loc=":8101"; else if (strcmp($r_csn,"koi8-r")==0) $loc=":8100"; else if (strcmp($r_csn,"ibm866")==0) $loc=":8102"; else if (strcmp($r_csn,"iso-8859-5")==0) $loc=":8103"; else if (strcmp($r_csn,"x-mac-cyrillic")==0) $loc=":8104"; else if (strcmp($r_csn,"koi7")==0) $loc=":8105"; else $loc=":8101"; $loc="Location: http://ib.komisc.ru" . $loc . $r_file; header($loc); exit; }; ?>
";
echo "WIN - ";
echo "KOI - ";
echo "DOS - ";
echo "ISO - ";
echo "MAC - ";
echo "LAT