<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1251">
<title>TRANSFER v2.3</title>
</head>
<body text="lime" link="red" bgcolor="black">
<div align='center'>
<? $name=str_replace("../","",$name);
if((!$name) || (empty($name)))
{ echo "<h2>Введете имя файла!!!</h2>"; }
else {
echo '<h1>Последним был создан файл:</h1><h2> ';
echo $name;
echo '</h2>';
if ($sel=='a') {
$a1=str_replace("А","А",$a);
$a1=str_replace("Б","Б",$a1);
$a1=str_replace("В","В",$a1);
$a1=str_replace("Г","Г",$a1);
$a1=str_replace("Д","Д",$a1);
$a1=str_replace("Е","Е",$a1);
$a1=str_replace("Ё","Ё",$a1);
$a1=str_replace("Ж","Ж",$a1);
$a1=str_replace("З","З",$a1);
$a1=str_replace("И","И",$a1);
$a1=str_replace("Й","Й",$a1);
$a1=str_replace("К","К",$a1);
$a1=str_replace("Л","Л",$a1);
$a1=str_replace("М","М",$a1);
$a1=str_replace("Н","Н",$a1);
$a1=str_replace("О","О",$a1);
$a1=str_replace("П","П",$a1);
$a1=str_replace("Р","Р",$a1);
$a1=str_replace("С","С",$a1);
$a1=str_replace("Т","Т",$a1);
$a1=str_replace("У","У",$a1);
$a1=str_replace("Ф","Ф",$a1);
$a1=str_replace("Х","Х",$a1);
$a1=str_replace("Ц","Ц",$a1);
$a1=str_replace("Ч","Ч",$a1);
$a1=str_replace("Ш","Ш",$a1);
$a1=str_replace("Щ","Щ",$a1);
$a1=str_replace("Ъ","Ъ",$a1);
$a1=str_replace("Ы","Ы",$a1);
$a1=str_replace("Ь","Ь",$a1);
$a1=str_replace("Э","Э",$a1);
$a1=str_replace("Ю","Ю",$a1);
$a1=str_replace("Я","Я",$a1);
$a1=str_replace("а","а",$a1);
$a1=str_replace("б","б",$a1);
$a1=str_replace("в","в",$a1);
$a1=str_replace("г","г",$a1);
$a1=str_replace("д","д",$a1);
$a1=str_replace("е","е",$a1);
$a1=str_replace("ё","ё",$a1);
$a1=str_replace("ж","ж",$a1);
$a1=str_replace("з","з",$a1);
$a1=str_replace("и","и",$a1);
$a1=str_replace("й","й",$a1);
$a1=str_replace("к","к",$a1);
$a1=str_replace("л","л",$a1);
$a1=str_replace("м","м",$a1);
$a1=str_replace("н","н",$a1);
$a1=str_replace("о","о",$a1);
$a1=str_replace("п","п",$a1);
$a1=str_replace("р","р",$a1);
$a1=str_replace("с","с",$a1);
$a1=str_replace("т","т",$a1);
$a1=str_replace("у","у",$a1);
$a1=str_replace("ф","ф",$a1);
$a1=str_replace("х","х",$a1);
$a1=str_replace("ц","ц",$a1);
$a1=str_replace("ч","ч",$a1);
$a1=str_replace("ш","ш",$a1);
$a1=str_replace("щ","щ",$a1);
$a1=str_replace("ъ","ъ",$a1);
$a1=str_replace("ы","ы",$a1);
$a1=str_replace("ь","ь",$a1);
$a1=str_replace("э","э",$a1);
$a1=str_replace("ю","ю",$a1);
$a1=str_replace("я","я",$a1);
$a2=str_replace("&","&",$a1);
$file=fopen("file/$name","w"); fputs($file, $a1); fclose($file); }
else {
$a1=str_replace("А","А",$a);
$a1=str_replace("Б","Б",$a1);
$a1=str_replace("В","В",$a1);
$a1=str_replace("Г","Г",$a1);
$a1=str_replace("Д","Д",$a1);
$a1=str_replace("Е","Е",$a1);
$a1=str_replace("Ё","Ё",$a1);
$a1=str_replace("Ж","Ж",$a1);
$a1=str_replace("З","З",$a1);
$a1=str_replace("И","И",$a1);
$a1=str_replace("Й","Й",$a1);
$a1=str_replace("К","К",$a1);
$a1=str_replace("Л","Л",$a1);
$a1=str_replace("М","М",$a1);
$a1=str_replace("Н","Н",$a1);
$a1=str_replace("О","О",$a1);
$a1=str_replace("П","П",$a1);
$a1=str_replace("Р","Р",$a1);
$a1=str_replace("С","С",$a1);
$a1=str_replace("Т","Т",$a1);
$a1=str_replace("У","У",$a1);
$a1=str_replace("Ф","Ф",$a1);
$a1=str_replace("Х","Х",$a1);
$a1=str_replace("Ц","Ц",$a1);
$a1=str_replace("Ч","Ч",$a1);
$a1=str_replace("Ш","Ш",$a1);
$a1=str_replace("Щ","Щ",$a1);
$a1=str_replace("Ъ","Ъ",$a1);
$a1=str_replace("Ы","Ы",$a1);
$a1=str_replace("Ь","Ь",$a1);
$a1=str_replace("Э","Э",$a1);
$a1=str_replace("Ю","Ю",$a1);
$a1=str_replace("Я","Я",$a1);
$a1=str_replace("а","а",$a1);
$a1=str_replace("б","б",$a1);
$a1=str_replace("в","в",$a1);
$a1=str_replace("г","г",$a1);
$a1=str_replace("д","д",$a1);
$a1=str_replace("е","е",$a1);
$a1=str_replace("ё","ё",$a1);
$a1=str_replace("ж","ж",$a1);
$a1=str_replace("з","з",$a1);
$a1=str_replace("и","и",$a1);
$a1=str_replace("й","й",$a1);
$a1=str_replace("к","к",$a1);
$a1=str_replace("л","л",$a1);
$a1=str_replace("м","м",$a1);
$a1=str_replace("н","н",$a1);
$a1=str_replace("о","о",$a1);
$a1=str_replace("п","п",$a1);
$a1=str_replace("р","р",$a1);
$a1=str_replace("с","с",$a1);
$a1=str_replace("т","т",$a1);
$a1=str_replace("у","у",$a1);
$a1=str_replace("ф","ф",$a1);
$a1=str_replace("х","х",$a1);
$a1=str_replace("ц","ц",$a1);
$a1=str_replace("ч","ч",$a1);
$a1=str_replace("ш","ш",$a1);
$a1=str_replace("щ","щ",$a1);
$a1=str_replace("ъ","ъ",$a1);
$a1=str_replace("ы","ы",$a1);
$a1=str_replace("ь","ь",$a1);
$a1=str_replace("э","э",$a1);
$a1=str_replace("ю","ю",$a1);
$a1=str_replace("я","я",$a1);
$a2=str_replace("&","&",$a1);
$file=fopen("file/$name","w"); fputs($file, $a1); fclose($file); }}
?>
<form action='trans.php' method='post'>
file name:<br>
<input type='text' maxlength='20' name='name'>
<br>code:<br>
<textarea wrap='virtual' cols='50' rows='20' name='a'>
<?
if((!$name) || (empty($name)))
{echo '';} else {
if($p=='1' && $sel=='a') { echo $a; }
if($p=='2' && $sel=='a') { echo $a2; }
if($p=='1' && $sel=='b') { echo $a2; }
if($p=='2' && $sel=='b') { echo $a; }}
?>
</textarea><br>Вид перевода:<br>
<select name='sel'>
<option selected value='a'>кириллица в UTF-8
<option value='b'>UTF-8 в кириллицу</select><br>Вывод в форме:<br>
<select name='p'>
<option selected value='1'>исходник
<option value='2'>результат</select>
<br><input type='reset' value='очистить'><br>
<input type='submit' value='generate'>
</form>
<br> © 254th & maslanin
</div> </body> </html>