Просмотр файла wap.rzz.ru/code.php

Размер файла: 8.01Kb
<?
function rus($text)
{
$text = str_replace("ж","&#x0436;",$text);
$text = str_replace("ё","&#x0435;",$text);
$text = str_replace("й","&#x0439;",$text);
$text = str_replace("ю","&#x044e;",$text);
$text = str_replace("ь","&#x044c;",$text);
$text = str_replace("ч","&#x0447;",$text);
$text = str_replace("щ","&#x0449;",$text);
$text = str_replace("ц","&#x0446;",$text);
$text = str_replace("у","&#x0443;",$text);
$text = str_replace("к","&#x043a;",$text);
$text = str_replace("е","&#x0435;",$text);
$text = str_replace("н","&#x043d;",$text);
$text = str_replace("г","&#x0433;",$text);
$text = str_replace("ш","&#x0448;",$text);
$text = str_replace("з","&#x0437;",$text);
$text = str_replace("х","&#x0445;",$text);
$text = str_replace("ъ","&#x044a;",$text);
$text = str_replace("ф","&#x0444;",$text);
$text = str_replace("ы","&#x044b;",$text);
$text = str_replace("в","&#x0432;",$text);
$text = str_replace("а","&#x0430;",$text);
$text = str_replace("п","&#x043f;",$text);
$text = str_replace("р","&#x0440;",$text);
$text = str_replace("о","&#x043e;",$text);
$text = str_replace("л","&#x043b;",$text);
$text = str_replace("д","&#x0434;",$text);
$text = str_replace("э","&#x044d;",$text);
$text = str_replace("я","&#x044f;",$text);
$text = str_replace("с","&#x0441;",$text);
$text = str_replace("м","&#x043c;",$text);
$text = str_replace("и","&#x0438;",$text);
$text = str_replace("т","&#x0442;",$text);
$text = str_replace("б","&#x0431;",$text);
$text = str_replace("Ё","&#x0415;",$text);
$text = str_replace("Й","&#x0419;",$text);
$text = str_replace("Ю","&#x042e;",$text);
$text = str_replace("Ч","&#x0427;",$text);
$text = str_replace("Ь","&#x042c;",$text);
$text = str_replace("Щ","&#x0429;",$text);
$text = str_replace("Ц","&#x0426;",$text);
$text = str_replace("У","&#x0423;",$text);
$text = str_replace("К","&#x041a;",$text);
$text = str_replace("Е","&#x0415;",$text);
$text = str_replace("Н","&#x041d;",$text);
$text = str_replace("Г","&#x0413;",$text);
$text = str_replace("Ш","&#x0428;",$text);
$text = str_replace("З","&#x0417;",$text);
$text = str_replace("Х","&#x0425;",$text);
$text = str_replace("Ъ","&#x042a;",$text);
$text = str_replace("Ф","&#x0424;",$text);
$text = str_replace("Ы","&#x042b;",$text);
$text = str_replace("В","&#x0412;",$text);
$text = str_replace("А","&#x0410;",$text);
$text = str_replace("П","&#x041f;",$text);
$text = str_replace("Р","&#x0420;",$text);
$text = str_replace("О","&#x041e;",$text);
$text = str_replace("Л","&#x041b;",$text);
$text = str_replace("Д","&#x0414;",$text);
$text = str_replace("Ж","&#x0416;",$text);
$text = str_replace("Э","&#x042d;",$text);
$text = str_replace("Я","&#x042f;",$text);
$text = str_replace("С","&#x0421;",$text);
$text = str_replace("М","&#x041c;",$text);
$text = str_replace("И","&#x0418;",$text);
$text = str_replace("Т","&#x0422;",$text);
$text = str_replace("Б","&#x0411;",$text);
return $text;
}
function trans($text)
{
$text = str_replace("ts","ц",$text);
$text = str_replace("ch","ч",$text);
$text = str_replace("sh'","щ",$text);
$text = str_replace("sh","ш",$text);
$text = str_replace("i'","ы",$text);
$text = str_replace("ya","я",$text);
$text = str_replace("yu","ю",$text);
$text = str_replace("yo","ё",$text);
$text = str_replace("e'","э",$text);
$text = str_replace("zh","ж",$text);
$text = str_replace("Yo","Ё",$text);
$text = str_replace("Zh","Ж",$text);
$text = str_replace("Ts","Ц",$text);
$text = str_replace("Ch","Ч",$text);
$text = str_replace("Sh'","Щ",$text);
$text = str_replace("Sh","Ш",$text);
$text = str_replace("I'","Ы",$text);
$text = str_replace("E'","Э",$text);
$text = str_replace("Yu","Ю",$text);
$text = str_replace("Ya","Я",$text);
$text = str_replace("a","а",$text);
$text = str_replace("b","б",$text);
$text = str_replace("v","в",$text);
$text = str_replace("g","г",$text);
$text = str_replace("d","д",$text);
$text = str_replace("e","е",$text);
$text = str_replace("z","з",$text);
$text = str_replace("i","и",$text);
$text = str_replace("k","к",$text);
$text = str_replace("l","л",$text);
$text = str_replace("m","м",$text);
$text = str_replace("n","н",$text);
$text = str_replace("o","о",$text);
$text = str_replace("p","п",$text);
$text = str_replace("r","р",$text);
$text = str_replace("s","с",$text);
$text = str_replace("t","т",$text);
$text = str_replace("u","у",$text);
$text = str_replace("f","ф",$text);
$text = str_replace("h","х",$text);
$text = str_replace("_","ъ",$text);
$text = str_replace("'","ь",$text);
$text = str_replace("y","й",$text);
$text = str_replace("A","А",$text);
$text = str_replace("B","Б",$text);
$text = str_replace("V","В",$text);
$text = str_replace("G","Г",$text);
$text = str_replace("D","Д",$text);
$text = str_replace("E","Е",$text);
$text = str_replace("Z","З",$text);
$text = str_replace("I","И",$text);
$text = str_replace("Y","Й",$text);
$text = str_replace("K","К",$text);
$text = str_replace("L","Л",$text);
$text = str_replace("M","М",$text);
$text = str_replace("N","Н",$text);
$text = str_replace("O","О",$text);
$text = str_replace("P","П",$text);
$text = str_replace("R","Р",$text);
$text = str_replace("S","С",$text);
$text = str_replace("T","Т",$text);
$text = str_replace("U","У",$text);
$text = str_replace("F","Ф",$text);
$text = str_replace("H","Х",$text);
$text = str_replace("_","Ъ",$text);
$text = str_replace("'","Ь",$text);

return $text;
}


function trans2($text)
{
$text = str_replace("ts","&#x0446;",$text);
$text = str_replace("ch","ч",$text);
$text = str_replace("sh'","щ",$text);
$text = str_replace("sh","&#x0448;",$text);
$text = str_replace("i'","ы",$text);
$text = str_replace("ya",".",$text);
$text = str_replace("ja","&#x044f;",$text);
$text = str_replace("yu","&#x044e;",$text);
$text = str_replace("yo","ё",$text);
$text = str_replace("e'","&#x044d;",$text);
$text = str_replace("zh","&#x0436;",$text);
$text = str_replace("Yo","Ё",$text);
$text = str_replace("Zh","Ж",$text);
$text = str_replace("Ts","Ц",$text);
$text = str_replace("Ch","Ч",$text);
$text = str_replace("Sh'","Щ",$text);
$text = str_replace("Sh","Ш",$text);
$text = str_replace("I'","Ы",$text);
$text = str_replace("E'","Э",$text);
$text = str_replace("Yu","&#x042e;",$text);
$text = str_replace("Ya","Я",$text);
$text = str_replace("a","&#x0430;",$text);
$text = str_replace("b","б",$text);
$text = str_replace("v","&#x0432;",$text);
$text = str_replace("g","&#x0433;",$text);
$text = str_replace("1d","&#x0434;",$text);
$text = str_replace("1e","&#x0435;",$text);
$text = str_replace("z","&#x0437;",$text);
$text = str_replace("i","&#x0438;",$text);
$text = str_replace("k","&#x043a;",$text);
$text = str_replace("l","&#x043b;",$text);
$text = str_replace("m","&#x043c;",$text);
$text = str_replace("n","&#x043d;",$text);
$text = str_replace("o","&#x043e;",$text);
$text = str_replace("p","п",$text);
$text = str_replace("r","&#x0440;",$text);
$text = str_replace("s","&#x0441;",$text);
$text = str_replace("t","&#x0442;",$text);
$text = str_replace("u","у",$text);
$text = str_replace("f'","&#x0444;",$text);
$text = str_replace("h","&#x0445;",$text);
$text = str_replace("_","ъ",$text);
$text = str_replace("'","&#x044c;",$text);
$text = str_replace("y","й",$text);

$text = str_replace("A","А",$text);
$text = str_replace("B","Б",$text);
$text = str_replace("V","В",$text);
$text = str_replace("G","Г",$text);
$text = str_replace("D","Д",$text);
$text = str_replace("E","Е",$text);
$text = str_replace("Z","З",$text);
$text = str_replace("I","И",$text);
$text = str_replace("Y","Й",$text);
$text = str_replace("K","К",$text);
$text = str_replace("L","Л",$text);
$text = str_replace("M","М",$text);
$text = str_replace("N","Н",$text);
$text = str_replace("O","О",$text);
$text = str_replace("P","П",$text);
$text = str_replace("R","Р",$text);
$text = str_replace("S","С",$text);
$text = str_replace("T","Т",$text);
$text = str_replace("U","У",$text);
$text = str_replace("F","Ф",$text);
$text = str_replace("H","Х",$text);
$text = str_replace("_","Ъ",$text);
$text = str_replace("'","Ь",$text);

return $text;
}


?>