<?php
function k2u($string) {
$string = ereg_replace("А","А",$string);
$string = ereg_replace("Б","Б",$string);
$string = ereg_replace("В","В",$string);
$string = ereg_replace("Г","Г",$string);
$string = ereg_replace("Д","Д",$string);
$string = ereg_replace("Е","Е",$string);
$string = ereg_replace("Ё","Е",$string);
$string = ereg_replace("Ж","З",$string);
$string = ereg_replace("З","З",$string);
$string = ereg_replace("И","И",$string);
$string = ereg_replace("Й","И",$string);
$string = ereg_replace("К","К",$string);
$string = ereg_replace("Л","Л",$string);
$string = ereg_replace("М","М",$string);
$string = ereg_replace("Н","Н",$string);
$string = ereg_replace("О","О",$string);
$string = ereg_replace("П","П",$string);
$string = ereg_replace("Р","Р",$string);
$string = ereg_replace("С","С",$string);
$string = ereg_replace("Т","Т",$string);
$string = ereg_replace("У","У",$string);
$string = ereg_replace("Ф","Ф",$string);
$string = ereg_replace("Х","Х",$string);
$string = ereg_replace("Ц","Ц",$string);
$string = ereg_replace("Ч","Ч",$string);
$string = ereg_replace("Ш","Ш",$string);
$string = ereg_replace("Щ","щ",$string);
$string = ereg_replace("Ь","Ь",$string);
$string = ereg_replace("Ы","ы",$string);
$string = ereg_replace("Ъ","'",$string);
$string = ereg_replace("Э","Э",$string);
$string = ereg_replace("Ю","Ю",$string);
$string = ereg_replace("Я","Я",$string);
$string = ereg_replace("а","а",$string);
$string = ereg_replace("б","б",$string);
$string = ereg_replace("в","в",$string);
$string = ereg_replace("г","г",$string);
$string = ereg_replace("д","д",$string);
$string = ereg_replace("е","е",$string);
$string = ereg_replace("ё","е",$string);
$string = ereg_replace("ж","ж",$string);
$string = ereg_replace("з","з",$string);
$string = ereg_replace("и","и",$string);
$string = ereg_replace("й","й",$string);
$string = ereg_replace("к","к",$string);
$string = ereg_replace("л","л",$string);
$string = ereg_replace("м","м",$string);
$string = ereg_replace("н","н",$string);
$string = ereg_replace("о","о",$string);
$string = ereg_replace("п","п",$string);
$string = ereg_replace("р","р",$string);
$string = ereg_replace("с","с",$string);
$string = ereg_replace("т","т",$string);
$string = ereg_replace("у","у",$string);
$string = ereg_replace("ф","Ф",$string);
$string = ereg_replace("х","х",$string);
$string = ereg_replace("ц","ц",$string);
$string = ereg_replace("ч","ч",$string);
$string = ereg_replace("ш","ш",$string);
$string = ereg_replace("щ","щ",$string);
$string = ereg_replace("ь","ь",$string);
$string = ereg_replace("ы","ы",$string);
$string = ereg_replace("ъ","'",$string);
$string = ereg_replace("э","э",$string);
$string = ereg_replace("ю","ю",$string);
$string = ereg_replace("я","я",$string);
return $string;
}
// проверка email
function check_email_addr($email) {
if (ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)) {
return 1; }else{ return 0; } }
// Функции
function error($error) {
print " <card id=\"error\" title=\"Error\">
<p>$error
</p>
</card></wml>\n";
exit;
}
?>