Jump to content
php.lv forumi

ppc

Reģistrētie lietotāji
  • Posts

    23
  • Joined

  • Last visited

Everything posted by ppc

  1. Sveiki, gribēju jautāt, vai tādā veidā var dzēst lietotājus automātiski, ja ir kļūda, lūdzu palīdiet to labot. $del_time = time() - 43200; if (''.$del_time.''){ $id = abs(intval($_GET['id'])); $a = $db->query("SELECT `id`,`foto` FROM `ankets` WHERE `id`='$id'")->fetch_assoc(); $b = $db->query("SELECT `id`,`file` FROM `mail_msg` WHERE `id`='$id'")->fetch_assoc(); $db->query("DELETE FROM `mail_msg` WHERE `user_2` = '$id'"); $db->query("DELETE FROM `mail_msg` WHERE `user_1` = '$id'"); $db->query("DELETE FROM `notice` WHERE `to` = '$id'"); $db->query("DELETE FROM `friend` WHERE `user2` = '$id'"); $db->query("DELETE FROM `friend` WHERE `user1` = '$id'"); $db->query("DELETE FROM `users_likes` WHERE `user` = '$id'"); $db->query("DELETE FROM `users_likes` WHERE `to` = '$id'"); if (!empty($a[foto])) unlink($a[foto]); if (!empty($b[file])) unlink($b[file]); $db->query('DELETE FROM `ankets` WHERE `id` = "'.$id.'"'); }
  2. Sveiki vissiem! Man ir jautājums tiem, kuri ir kodējuši UserJS scriptus... Vai ir iespēja Operas brauzerim uzkodēt autoklikeri kurš klikotu uz linku vienalga kuru, piem ja uz atvērtās lapas ir viens links viņš automātiski klikšķina uz to ātri piem 09 no sekundes nenoteiktās reizes... ieslēgt pieņemsim ar shift+q izslēgt shift+w. Un galvenais lai klikšķina visos atvērtajos tabos brauzerī. Vajag Opera brauzerim jo man vajag tieši wml lapaspusē lai klikšķina.. :) protams par samaksu.
  3. Paldies. vnk varēji pateikt, kad esi nacionālists ar to r pietiktu. )))
  4. Tu varētu pārtaisīt? Pilnīgi visu to translīta kodu. Un cik prasīsi par darbu
  5. Protams, kad nē. Jāpārtaisa pats kods, jo citā failā, bots raksta mājienus, un ja garumzīme ir ?
  6. Man vajag noņemt win_to_utf un utf_to_win funkciju, lai darbojas tikai utf-8. Var kāds palīdzēt? function rus_to_k($str) { $str = str_replace("а","a",$str); $str = str_replace("б","b",$str); $str = str_replace("в","v",$str); $str = str_replace("г","g",$str); $str = str_replace("д","d",$str); $str = str_replace("е","e",$str); $str = str_replace("ё","e",$str); $str = str_replace("ж","j",$str); $str = str_replace("з","z",$str); $str = str_replace("и","i",$str); $str = str_replace("й","y",$str); $str = str_replace("к","k",$str); $str = str_replace("л","l",$str); $str = str_replace("м","m",$str); $str = str_replace("н","n",$str); $str = str_replace("о","o",$str); $str = str_replace("п","p",$str); $str = str_replace("р","r",$str); $str = str_replace("с","s",$str); $str = str_replace("т","t",$str); $str = str_replace("у","u",$str); $str = str_replace("ф","f",$str); $str = str_replace("х","h",$str); $str = str_replace("ч","c",$str); $str = str_replace("ц","q",$str); $str = str_replace("ш","w",$str); $str = str_replace("щ",">",$str); $str = str_replace("ь","<",$str); $str = str_replace("ы","x",$str); $str = str_replace("ъ",".",$str); $str = str_replace("э",":",$str); $str = str_replace("ю",";",$str); $str = str_replace("я","}",$str); $str = str_replace("А","a",$str); $str = str_replace("Б","b",$str); $str = str_replace("В","v",$str); $str = str_replace("Г","g",$str); $str = str_replace("Д","d",$str); $str = str_replace("Е","e",$str); $str = str_replace("Ё","e",$str); $str = str_replace("Ж","j",$str); $str = str_replace("З","z",$str); $str = str_replace("И","i",$str); $str = str_replace("Й","y",$str); $str = str_replace("К","k",$str); $str = str_replace("Л","l",$str); $str = str_replace("М","m",$str); $str = str_replace("Н","n",$str); $str = str_replace("О","o",$str); $str = str_replace("П","p",$str); $str = str_replace("Р","r",$str); $str = str_replace("С","s",$str); $str = str_replace("Т","t",$str); $str = str_replace("У","u",$str); $str = str_replace("Ф","f",$str); $str = str_replace("Х","h",$str); $str = str_replace("Ч","c",$str); $str = str_replace("Ц","q",$str); $str = str_replace("Ш","w",$str); $str = str_replace("Щ",">",$str); $str = str_replace("Ь","<",$str); $str = str_replace("Ы","x",$str); $str = str_replace("Ъ",".",$str); $str = str_replace("Э",":",$str); $str = str_replace("Ю",";",$str); $str = str_replace("Я","}",$str); return $str; } function win_to_utf($str) { if (function_exists('mb_convert_encoding')) return mb_convert_encoding($str, 'utf-8', 'windows-1251'); if (function_exists('iconv')) return iconv('windows-1251', 'utf-8', $str); $win1251utf8 = array( "\xC0"=>"А","\xC1"=>"Б","\xC2"=>"В","\xC3"=>"Г","\xC4"=>"Д","\xC5"=>"Е","\xA8"=>"Ё","\xC6"=>"Ж","\xC7"=>"З","\xC8"=>"И","\xC9"=>"Й","\xCA"=>"К","\xCB"=>"Л","\xCC"=>"М", "\xCD"=>"Н","\xCE"=>"О","\xCF"=>"П","\xD0"=>"Р","\xD1"=>"С","\xD2"=>"Т","\xD3"=>"У","\xD4"=>"Ф","\xD5"=>"Х","\xD6"=>"Ц","\xD7"=>"Ч","\xD8"=>"Ш","\xD9"=>"Щ","\xDA"=>"Ъ", "\xDB"=>"Ы","\xDC"=>"Ь","\xDD"=>"Э","\xDE"=>"Ю","\xDF"=>"Я","\xE0"=>"а","\xE1"=>"б","\xE2"=>"в","\xE3"=>"г","\xE4"=>"д","\xE5"=>"е","\xB8"=>"ё","\xE6"=>"ж","\xE7"=>"з", "\xE8"=>"и","\xE9"=>"й","\xEA"=>"к","\xEB"=>"л","\xEC"=>"м","\xED"=>"н","\xEE"=>"о","\xEF"=>"п","\xF0"=>"р","\xF1"=>"с","\xF2"=>"т","\xF3"=>"у","\xF4"=>"ф","\xF5"=>"х", "\xF6"=>"ц","\xF7"=>"ч","\xF8"=>"ш","\xF9"=>"щ","\xFA"=>"ъ","\xFB"=>"ы","\xFC"=>"ь","\xFD"=>"э","\xFE"=>"ю","\xFF"=>"я"); return strtr($str, $win1251utf8); } function utf_to_win($str) { if (function_exists('mb_convert_encoding')) return mb_convert_encoding($str, 'windows-1251', 'utf-8'); if (function_exists('iconv')) return iconv('utf-8', 'windows-1251', $str); $utf8win1251 = array( "А"=>"\xC0","Б"=>"\xC1","В"=>"\xC2","Г"=>"\xC3","Д"=>"\xC4","Е"=>"\xC5","Ё"=>"\xA8","Ж"=>"\xC6","З"=>"\xC7","И"=>"\xC8","Й"=>"\xC9","К"=>"\xCA","Л"=>"\xCB","М"=>"\xCC", "Н"=>"\xCD","О"=>"\xCE","П"=>"\xCF","Р"=>"\xD0","С"=>"\xD1","Т"=>"\xD2","У"=>"\xD3","Ф"=>"\xD4","Х"=>"\xD5","Ц"=>"\xD6","Ч"=>"\xD7","Ш"=>"\xD8","Щ"=>"\xD9","Ъ"=>"\xDA", "Ы"=>"\xDB","Ь"=>"\xDC","Э"=>"\xDD","Ю"=>"\xDE","Я"=>"\xDF","а"=>"\xE0","б"=>"\xE1","в"=>"\xE2","г"=>"\xE3","д"=>"\xE4","е"=>"\xE5","ё"=>"\xB8","ж"=>"\xE6","з"=>"\xE7", "и"=>"\xE8","й"=>"\xE9","к"=>"\xEA","л"=>"\xEB","м"=>"\xEC","н"=>"\xED","о"=>"\xEE","п"=>"\xEF","р"=>"\xF0","с"=>"\xF1","т"=>"\xF2","у"=>"\xF3","ф"=>"\xF4","х"=>"\xF5", "ц"=>"\xF6","ч"=>"\xF7","ш"=>"\xF8","щ"=>"\xF9","ъ"=>"\xFA","ы"=>"\xFB","ь"=>"\xFC","э"=>"\xFD","ю"=>"\xFE","я"=>"\xFF"); return strtr($str, $utf8win1251); } function trun_to_rus($str) { $str = str_replace("ch","ч",$str); $str = str_replace("sc","щ",$str); $str = str_replace("sh","ш",$str); $str = str_replace("ye","э",$str); $str = str_replace("yu","ю",$str); $str = str_replace("ya","я",$str); $str = str_replace("CH","Ч",$str); $str = str_replace("Ch","Ч",$str); $str = str_replace("SC","Щ",$str); $str = str_replace("Sc","Щ",$str); $str = str_replace("SH","Ш",$str); $str = str_replace("Sh","Ш",$str); $str = str_replace("""","Ъ",$str); $str = str_replace(""","ъ",$str); $str = str_replace("‘‘","Ь",$str); $str = str_replace("‘","ь",$str); $str = str_replace("YE","Э",$str); $str = str_replace("Ye","Э",$str); $str = str_replace("YU","Ю",$str); $str = str_replace("Yu","Ю",$str); $str = str_replace("YA","Я",$str); $str = str_replace("Ya","Я",$str); $str = strtr($str,array("\""=>"","a"=>"а","b"=>"б","v"=>"в","g"=>"г","d"=>"д","e"=>"е","j"=>"ж","z"=>"з","i"=>"и","y"=>"й","k"=>"к","l"=>"л","m"=>"м","n"=>"н","o"=>"о","p"=>"п","r"=>"р","s"=>"с","t"=>"т","u"=>"у","f"=>"ф","h"=>"х","c"=>"ц","w"=>"ш","x"=>"ы","A"=>"А","B"=>"Б","V"=>"В","G"=>"Г","D"=>"Д","E"=>"Е","J"=>"Ж","Z"=>"З","I"=>"И","Y"=>"Й","K"=>"К","L"=>"Л","M"=>"М","N"=>"Н","O"=>"О","P"=>"П","R"=>"Р","S"=>"С","T"=>"Т","U"=>"У","F"=>"Ф","H"=>"Х","C"=>"Ц","W"=>"Ш","X"=>"Ы")); return $str; } function check($message) { $message = htmlspecialchars($message); $message = str_replace("\r\n", "<br/>", $message); $message = strtr($message, array(chr("0") => "", chr("1") => "", chr("2") => "", chr("3") => "", chr("4") => "", chr("5") => "", chr("6") => "", chr("7") => "", chr("8") => "", chr("9") => "", chr("10") => "", chr("11") => "", chr("12") => "", chr ("13") => "", chr("14") => "", chr("15") => "", chr("16") => "", chr("17") => "", chr("18") => "", chr("19") => "", chr("20") => "", chr("21") => "", chr("22") => "", chr("23") => "", chr("24") => "", chr("25") => "", chr("26") => "", chr("27") => "", chr("28") => "", chr("29") => "", chr("30") => "", chr("31") => "")); $message = iconv('utf-8', 'windows-1251', $message); $message = mb_substr($message, 0, 1000, 'UTF8'); $message = iconv('windows-1251', 'utf-8', $message); $message = str_replace("'","'",$message); $message = str_replace("\"",""",$message); $message = str_replace("\$","$",$message); $message = str_replace("$","$",$message); $message = str_replace("\\","\", $message); $message = str_replace("`","`", $message); $message = str_replace("^","^", $message); $message = str_replace("%","%", $message); $message = str_replace(":",":",$message); $message = preg_replace("|:|",":",$message,3); $message = stripslashes(trim($message)); return $message; } function replace_rus($str) { $str = str_replace("а","|",$str); $str = str_replace("б","|",$str); $str = str_replace("в","|",$str); $str = str_replace("г","|",$str); $str = str_replace("д","|",$str); $str = str_replace("е","|",$str); $str = str_replace("ё","|",$str); $str = str_replace("ж","|",$str); $str = str_replace("з","|",$str); $str = str_replace("и","|",$str); $str = str_replace("й","|",$str); $str = str_replace("к","|",$str); $str = str_replace("л","|",$str); $str = str_replace("м","|",$str); $str = str_replace("н","|",$str); $str = str_replace("о","|",$str); $str = str_replace("п","|",$str); $str = str_replace("р","|",$str); $str = str_replace("с","|",$str); $str = str_replace("т","|",$str); $str = str_replace("у","|",$str); $str = str_replace("ф","|",$str); $str = str_replace("х","|",$str); $str = str_replace("ч","|",$str); $str = str_replace("ц","|",$str); $str = str_replace("ш","|",$str); $str = str_replace("щ","|",$str); $str = str_replace("ь","|",$str); $str = str_replace("ы","|",$str); $str = str_replace("ъ","|",$str); $str = str_replace("э","|",$str); $str = str_replace("ю","|",$str); $str = str_replace("я","|",$str); $str = str_replace("А","|",$str); $str = str_replace("Б","|",$str); $str = str_replace("В","|",$str); $str = str_replace("Г","|",$str); $str = str_replace("Д","|",$str); $str = str_replace("Е","|",$str); $str = str_replace("Ё","|",$str); $str = str_replace("Ж","|",$str); $str = str_replace("З","|",$str); $str = str_replace("?","|",$str); $str = str_replace("Й","|",$str); $str = str_replace("К","|",$str); $str = str_replace("Л","|",$str); $str = str_replace("М","|",$str); $str = str_replace("Н","|",$str); $str = str_replace("О","|",$str); $str = str_replace("П","|",$str); $str = str_replace("Р","|",$str); $str = str_replace("С","|",$str); $str = str_replace("Т","|",$str); $str = str_replace("У","|",$str); $str = str_replace("Ф","|",$str); $str = str_replace("Х","|",$str); $str = str_replace("Ч","|",$str); $str = str_replace("Ц","|",$str); $str = str_replace("Ш","|",$str); $str = str_replace("Щ","|",$str); $str = str_replace("Ь","|",$str); $str = str_replace("Ы","|",$str); $str = str_replace("Ъ","|",$str); $str = str_replace("Э","|",$str); $str = str_replace("Ю","|",$str); $str = str_replace("Я","|",$str); return $str; }
  7. ppc

    Javascript

    Zin kāds kā var no javascript`a kopēt tekstu? piemeram draugos brainā... atslēdzot brauzerim javascriptu neizdodas parādas balta lapa.
  8. ppc

    Decode

    Lol un ko tālāk?! Palasijis iepriekšējos postus tip gudri atbildēji? Jānis
  9. ppc

    Decode

    Bet tur viens vienīgs eval i to beigās. Paskaidro konkrētāk plz
  10. ppc

    Decode

    To vienīgo eval uz echo, kursh pie beigām, tad iemest uz hostu un panemt localhost/bots.php? Ko tālāk?
  11. ppc

    Decode

    Vnk pasaki soli pa solim, ko ar to kodu jadara kuru es pirmajā postā ieliku!!! tur tik viens eval i to beigās! tur laža man sanāca
  12. ppc

    Decode

    Kā tu tiki pie šī ?
  13. ppc

    Decode

    Lūdzu vari konkrētāk pateikt, kādu progu man izmantot un ko isti jadara?
  14. ppc

    Decode

    Kurš var atkodēt šo php failu un pateikt kā un ar kā palīdzību var atkodēt? Sis fails bij Vēl zendēts jeb kā lai pasaka ar dezendu atkodēju bet dažiem labiem failiem vēl šis te apakšā ir :D <?php /*********************/ /* */ /* Version : 5.1.0 */ /* Author : RM */ /* Comment : 071223 */ /* */ /*********************/ $V217999268 = "b2hCQkFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQW9oQUFCsvKy0LPgstyz4lhCT1+yyrLysseywLL3ssJfT0JCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkFCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkFBQrLDstKy27PgWEIKFhYSWE1NDwMRFgcQAw9MF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pGWXhPRE01TlRBNE1EWXBPdz09IikpOw==" ) ); ?>
  15. ppc

    Translīts

    Paldies bet tiku galā, vnk no iepriekšējā čata varianta ieliku tranlate kodus un miers.
  16. ppc

    Translīts

    Nestrādā tas kad aizkomentēju rus rindas un atkomentēju lv, rādās balta lapa mājaslapā. php_flag error_reporting 1 ir hataccessā un inc.php ir aizkomentētas "//" arī šīs divas rindiņas: Error_Reporting(E_ALL & ~E_NOTICE); Error_Reporting (ERROR | WARNING); Bet neko neuzrāda.
  17. ppc

    Translīts

    Cik tad tu gurdiniek prasi? :D
  18. ppc

    Translīts

    Sry es neesmu tik gudrs tik iesācējs. Vai nevari pielabot un atzīmēt kur bij un kā jālabo lūdzu? <?php $adminmail = "lala@lala.lv"; $site = "<a href=\"http://lala.lv\">lala.lv"; $copy = "lala.lv"; $ver = trim(addslashes(htmlspecialchars($ver))); $dtd = '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">'; $xml = '<?xml version="1.0" encoding="UTF-8"?>'; function show_error($err) { global $dtd, $xml; if ($ver == "wml") { echo $xml; echo $dtd; echo '<wml><card id="error" title="Kļūda"> <do type="prev" label="Back"><prev/></do> <p align="center"> '.$err.'<br/> ---<br/> Mēģiniet ienākt vēlāk. </p></card></wml>'; } else { echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\"> <head><link rel=\"stylesheet\" type=\"text/css\" href=\"css/$css.css\"/> <title>Kļūda</title> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/></head><body> <div align=\"center\"> $err<br/> ---<br/> Mēģiniet ienākt vēlāk. </div></body></html>"; } } function getmicrotime() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } function filtr($a) { $text1 = array("\r\n", "\n"); $text2 = array(" ", " "); $a = trim(htmlspecialchars(stripslashes(str_replace($text1, $text2, $a)))); return $a; } function rus_to_k($str) { $str = str_replace("a","a",$str); $str = str_replace("ā","aa",$str); $str = str_replace("b","b",$str); $str = str_replace("c","c",$str); $str = str_replace("č","ch",$str); $str = str_replace("d","d",$str); $str = str_replace("e","e",$str); $str = str_replace("ē","ee",$str); $str = str_replace("f","f",$str); $str = str_replace("g","g",$str); $str = str_replace("ģ","gj",$str); $str = str_replace("h","h",$str); $str = str_replace("i","i",$str); $str = str_replace("ī","ii",$str); $str = str_replace("j","j",$str); $str = str_replace("k","k",$str); $str = str_replace("ķ","kj",$str); $str = str_replace("l","l",$str); $str = str_replace("ļ","lj",$str); $str = str_replace("n","n",$str); $str = str_replace("ņ","nj",$str); $str = str_replace("o","o",$str); $str = str_replace("p","p",$str); $str = str_replace("r","r",$str); $str = str_replace("s","s",$str); $str = str_replace("š","sh",$str); $str = str_replace("t","t",$str); $str = str_replace("u","u",$str); $str = str_replace("ū","uu",$str); $str = str_replace("v","v",$str); $str = str_replace("z","z",$str); $str = str_replace("ž","zh",$str); $str = str_replace("A","A",$str); $str = str_replace("Ā","AA",$str); $str = str_replace("B","B",$str); $str = str_replace("C","C",$str); $str = str_replace("Č","CH",$str); $str = str_replace("D","D",$str); $str = str_replace("E","E",$str); $str = str_replace("Ē","EE",$str); $str = str_replace("F","F",$str); $str = str_replace("G","G",$str); $str = str_replace("Ģ","GJ",$str); $str = str_replace("H","H",$str); $str = str_replace("I","I",$str); $str = str_replace("Ī","II",$str); $str = str_replace("J","J",$str); $str = str_replace("K","K",$str); $str = str_replace("Ķ","KJ",$str); $str = str_replace("L","L",$str); $str = str_replace("Ļ","LJ",$str); $str = str_replace("M","M",$str); $str = str_replace("N","N",$str); $str = str_replace("Ņ","NJ",$str); $str = str_replace("O","O",$str); $str = str_replace("P","P",$str); $str = str_replace("R","R",$str); $str = str_replace("S","S",$str); $str = str_replace("Š","SH",$str); $str = str_replace("T","T",$str); $str = str_replace("U","U",$str); $str = str_replace("Ū","UU",$str); $str = str_replace("V","V",$str); $str = str_replace("Z","Z",$str); $str = str_replace("Ž","ZH",$str); return $str; } function win_to_utf($str) { if (function_exists('mb_convert_encoding')) return mb_convert_encoding($str, 'utf-8', 'windows-1251'); if (function_exists('iconv')) return iconv('windows-1251', 'utf-8', $str); $win1251utf8 = array( "\A"=>"А","\0x0100"=>"Ā","\B"=>"B","\C"=>"C","\0x010C"=>"Č","\D"=>"D","\E"=>"E","\0x0112"=>"Ē","\F"=>"F","\G"=>"G","\0x0122"=>"Ģ","\H"=>"H","\I"=>"I","\0x012A"=>"Ī", "\J"=>"J","\K"=>"K","\0x0136"=>"Ķ","\L"=>"L","\0x013B"=>"Ļ","\M"=>"M","\N"=>"N","\0x0145"=>"Ņ","\O"=>"0","\P"=>"P","\R"=>"R","\S"=>"S","\0x0160"=>"Š","\T"=>"T","\U"=>"U","\0x016A"=>"Ū","\V"=>"V","\Z"=>"Z","\0x017D"=>"Ž", "\a"=>"a","\0x0101"=>"ā","\b"=>"b","\c"=>"c","\0x010D"=>"č","\d"=>"d","\e"=>"e","\0x0113"=>"ē","\f"=>"f","\g"=>"g","\0x01E7"=>"ģ","\h"=>"h","\i"=>"i","\0x012B"=>"ī", "\j"=>"j","\k"=>"k","\0x0137"=>"ķ","\l"=>"l","\0x013C"=>"ļ","\m"=>"n","\0x0146"=>"ņ","\o"=>"o","\p"=>"p","\r"=>"r","\s"=>"s","\0x0161"=>"š","\t"=>"t","\u"=>"u","\0x016B"=>"ū","\v"=>"v","\z"=>"z","\0x017E"=>"ž", //"\xC0"=>"А","\xC1"=>"Б","\xC2"=>"В","\xC3"=>"Г","\xC4"=>"Д","\xC5"=>"Е","\xA8"=>"Ё","\xC6"=>"Ж","\xC7"=>"З","\xC8"=>"И","\xC9"=>"Й","\xCA"=>"К","\xCB"=>"Л","\xCC"=>"М", //"\xCD"=>"Н","\xCE"=>"О","\xCF"=>"П","\xD0"=>"Р","\xD1"=>"С","\xD2"=>"Т","\xD3"=>"У","\xD4"=>"Ф","\xD5"=>"Х","\xD6"=>"Ц","\xD7"=>"Ч","\xD8"=>"Ш","\xD9"=>"Щ","\xDA"=>"Ъ", //"\xDB"=>"Ы","\xDC"=>"Ь","\xDD"=>"Э","\xDE"=>"Ю","\xDF"=>"Я","\xE0"=>"а","\xE1"=>"б","\xE2"=>"в","\xE3"=>"г","\xE4"=>"д","\xE5"=>"е","\xB8"=>"ё","\xE6"=>"ж","\xE7"=>"з", //"\xE8"=>"и","\xE9"=>"й","\xEA"=>"к","\xEB"=>"л","\xEC"=>"м","\xED"=>"н","\xEE"=>"о","\xEF"=>"п","\xF0"=>"р","\xF1"=>"с","\xF2"=>"т","\xF3"=>"у","\xF4"=>"ф","\xF5"=>"х", //"\xF6"=>"ц","\xF7"=>"ч","\xF8"=>"ш","\xF9"=>"щ","\xFA"=>"ъ","\xFB"=>"ы","\xFC"=>"ь","\xFD"=>"э","\xFE"=>"ю","\xFF"=>"я"); return strtr($str, $win1251utf8); } function utf_to_win($str) { if (function_exists('mb_convert_encoding')) return mb_convert_encoding($str, 'windows-1251', 'utf-8'); if (function_exists('iconv')) return iconv('utf-8', 'windows-1251', $str); $utf8win1251 = array( "A"=>"\A","Ā"=>"\0x0100","B"=>"\B","C"=>"\C","Č"=>"\0x010C","D"=>"\D","E"=>"\E","Ē"=>"\0x0112","F"=>"\F","G"=>"\G","Ģ"=>"\0x0122","H"=>"\H","I"=>"\I","Ī"=>"\0x012A", "J"=>"\J","K"=>"\K","Ķ"=>"\0x0136","L"=>"\L","Ļ"=>"\0x013B","M"=>"\M","N"=>"\N","Ņ"=>"\0x0145","O"=>"\O","P"=>"\P","R"=>"\R","S"=>"\S","Š"=>"\0x0160","T"=>"\T","U"=>"\U","Ū"=>"\0x016B","V"=>"\V","Z"=>"\Z","Ž"=>"\0x017D", "a"=>"\a","ā"=>"\0x0101","b"=>"\b","c"=>"\c","č"=>"\0x010D","d"=>"\d","e"=>"\e","ē"=>"\0x0113","f"=>"\f","g"=>"\g","ģ"=>"\0x01E7","h"=>"\h","i"=>"\i","ī"=>"\0x012B", "j"=>"\j","k"=>"\k","ķ"=>"\0x0137","l"=>"\l","ļ"=>"\0x013C","m"=>"\m","n"=>"\n","ņ"=>"\0x0146","o"=>"\o","p"=>"\p","r"=>"\r","s"=>"\s","š"=>"\0x0161","t"=>"\t","u"=>"\u","ū"=>"\0x016B","v"=>"\v","z"=>"\z","ž"=>"\0x017E", //"А"=>"\xC0","Б"=>"\xC1","В"=>"\xC2","Г"=>"\xC3","Д"=>"\xC4","Е"=>"\xC5","Ё"=>"\xA8","Ж"=>"\xC6","З"=>"\xC7","И"=>"\xC8","Й"=>"\xC9","К"=>"\xCA","Л"=>"\xCB","М"=>"\xCC", //"Н"=>"\xCD","О"=>"\xCE","П"=>"\xCF","Р"=>"\xD0","С"=>"\xD1","Т"=>"\xD2","У"=>"\xD3","Ф"=>"\xD4","Х"=>"\xD5","Ц"=>"\xD6","Ч"=>"\xD7","Ш"=>"\xD8","Щ"=>"\xD9","Ъ"=>"\xDA", //"Ы"=>"\xDB","Ь"=>"\xDC","Э"=>"\xDD","Ю"=>"\xDE","Я"=>"\xDF","а"=>"\xE0","б"=>"\xE1","в"=>"\xE2","г"=>"\xE3","д"=>"\xE4","е"=>"\xE5","ё"=>"\xB8","ж"=>"\xE6","з"=>"\xE7", //"и"=>"\xE8","й"=>"\xE9","к"=>"\xEA","л"=>"\xEB","м"=>"\xEC","н"=>"\xED","о"=>"\xEE","п"=>"\xEF","р"=>"\xF0","с"=>"\xF1","т"=>"\xF2","у"=>"\xF3","ф"=>"\xF4","х"=>"\xF5", //"ц"=>"\xF6","ч"=>"\xF7","ш"=>"\xF8","щ"=>"\xF9","ъ"=>"\xFA","ы"=>"\xFB","ь"=>"\xFC","э"=>"\xFD","ю"=>"\xFE","я"=>"\xFF"); return strtr($str, $utf8win1251); } function trun_to_rus($str) { $str=str_replace("AA","Ā",$str); $str=str_replace("aa","ā",$str); $str=str_replace("CH","Č",$str); $str=str_replace("ch","č",$str); $str=str_replace("EE","Ē",$str); $str=str_replace("ee","ē",$str); $str=str_replace("GJ","Ģ",$str); $str=str_replace("gj","ģ",$str); $str=str_replace("II","Ī",$str); $str=str_replace("ii","ī",$str); $str=str_replace("KJ","Ķ",$str); $str=str_replace("kj","ķ",$str); $str=str_replace("LJ","Ļ",$str); $str=str_replace("lj","ļ",$str); $str=str_replace("NJ","Ņ",$str); $str=str_replace("nj","ņ",$str); $str=str_replace("SH","Š",$str); $str=str_replace("sh","š",$str); $str=str_replace("UU","Ū",$str); $str=str_replace("uu","ū",$str); $str=str_replace("ZH","Ž",$str); $str=str_replace("zh","ž",$str); $str=strtr($str,array("a"=>"a", "aa"=>"ā", "b"=>"b", "c"=>"c", "ch"=>"č", "d"=>"d", "e"=>"e", "ee"=>"ē", "f"=>"f", "g"=>"g", "gj"=>"ģ", "h"=>"h", "i"=>"i", "ii"=>"ī", "j"=>"j", "k"=>"k", "kj"=>"ķ", "l"=>"l", "lj"=>"ļ", "m"=>"m", "n"=>"n", "nj"=>"ņ", "o"=>"o", "p"=>"p", "r"=>"r", "s"=>"s", "sh"=>"š", "t"=>"t", "u"=>"u", "uu"=>"ū", "v"=>"v", "z"=>"z", "zh"=>"ž", "A"=>"A", "AA"=>"Ā", "B"=>"B", "C"=>"C", "CH"=>"Č", "D"=>"D", "E"=>"E", "EE"=>"Ē", "F"=>"F", "G"=>"G", "GJ"=>"Ģ", "H"=>"H", "I"=>"I", "II"=>"Ī", "J"=>"J", "K"=>"K", "KJ"=>"Ķ", "L"=>"L", "LJ"=>"Ļ", "M"=>"M", "N"=>"N", "NJ"=>"Ņ", "O"=>"O", "P"=>"P", "R"=>"R", "S"=>"S", "SH"=>"Š", "T"=>"T", "U"=>"U", "UU"=>"Ū", "V"=>"V", "Z"=>"Z", "ZH"=>"Ž")); return $str; } function check($message) { $message=str_replace("|","I",$message); $message=str_replace("||","I",$message); $message=htmlspecialchars($message); $message = str_replace("\r\n", "<br/>", $message); $message = strtr($message, array(chr("1") => "", chr("2") => "", chr("3") => "", chr("4") => "", chr("5") => "", chr("6") => "", chr("7") => "", chr("8") => "", chr("9") => "", chr("10") => "", chr("11") => "", chr("12") => "", chr ("13") => "", chr("14") => "", chr("15") => "", chr("16") => "", chr("17") => "", chr("18") => "", chr("19") => "", chr("20") => "", chr("21") => "", chr("22") => "", chr("23") => "", chr("24") => "", chr("25") => "", chr("26") => "", chr("27") => "", chr("28") => "", chr("29") => "", chr("30") => "", chr("31") => "")); $message = iconv('utf-8', 'windows-1251', $message); $message = substr($message, 0, 1000); $message = iconv('windows-1251', 'utf-8', $message); $message=str_replace("'","'",$message); $message=str_replace("\"",""",$message); $message=str_replace("\$","$",$message); $message=str_replace("$","$",$message); $message=str_replace("\\","\", $message); $message=str_replace("`","`", $message); $message=str_replace("^","^", $message); $message=str_replace("%","%", $message); $message=str_replace(":",":",$message); $message=preg_replace("|:|",":",$message,3); $message=stripslashes(trim($message)); return $message; } function replace_rus($str) { $str = str_replace("a","|",$str); $str = str_replace("ā","|",$str); $str = str_replace("b","|",$str); $str = str_replace("c","|",$str); $str = str_replace("č","|",$str); $str = str_replace("d","|",$str); $str = str_replace("e","|",$str); $str = str_replace("ē","|",$str); $str = str_replace("f","|",$str); $str = str_replace("g","|",$str); $str = str_replace("ģ","|",$str); $str = str_replace("h","|",$str); $str = str_replace("i","|",$str); $str = str_replace("ī","|",$str); $str = str_replace("j","|",$str); $str = str_replace("k","|",$str); $str = str_replace("ķ","|",$str); $str = str_replace("l","|",$str); $str = str_replace("ļ","|",$str); $str = str_replace("n","|",$str); $str = str_replace("ņ","|",$str); $str = str_replace("o","|",$str); $str = str_replace("p","|",$str); $str = str_replace("r","|",$str); $str = str_replace("s","|",$str); $str = str_replace("š","|",$str); $str = str_replace("t","|",$str); $str = str_replace("u","|",$str); $str = str_replace("ū","|",$str); $str = str_replace("v","|",$str); $str = str_replace("z","|",$str); $str = str_replace("ž","|",$str); $str = str_replace("A","|",$str); $str = str_replace("Ā","|",$str); $str = str_replace("B","|",$str); $str = str_replace("C","|",$str); $str = str_replace("Č","|",$str); $str = str_replace("D","|",$str); $str = str_replace("E","|",$str); $str = str_replace("Ē","|",$str); $str = str_replace("F","|",$str); $str = str_replace("G","|",$str); $str = str_replace("Ģ","|",$str); $str = str_replace("H","|",$str); $str = str_replace("I","|",$str); $str = str_replace("Ī","|",$str); $str = str_replace("J","|",$str); $str = str_replace("K","|",$str); $str = str_replace("Ķ","|",$str); $str = str_replace("L","|",$str); $str = str_replace("Ļ","|",$str); $str = str_replace("M","|",$str); $str = str_replace("N","|",$str); $str = str_replace("Ņ","|",$str); $str = str_replace("O","|",$str); $str = str_replace("P","|",$str); $str = str_replace("R","|",$str); $str = str_replace("S","|",$str); $str = str_replace("Š","|",$str); $str = str_replace("T","|",$str); $str = str_replace("U","|",$str); $str = str_replace("Ū","|",$str); $str = str_replace("V","|",$str); $str = str_replace("Z","|",$str); $str = str_replace("Ž","|",$str); return $str; }
  19. ppc

    Translīts

    Vēlreiz atkārtoju vis strādā ideāli izņemot latviešu simbolus! kad aizkomentēju ar "//" russ variantu un atkomentēju lv. Nevaru saprast kur man tur kļūda un vai pareizi kodētas mīkstinājuma zīmes un garumzīmes.
  20. ppc

    Translīts

    Lieta tāda kad kko nepareizi daru ar russ burtiem viss strādā, bet ar latviešu burtiem (Kuri ir aizkomentēti ar "//") uz mājaslapas paliek balta lapa... Vai kāds nevar pateikt kur mana kļūda un vai pareizi kodēti mīkstinājuma un garumzīmju simboli. function rus_to_k($str) { $str = str_replace("a","a",$str); $str = str_replace("ā","aa",$str); $str = str_replace("b","b",$str); $str = str_replace("c","c",$str); $str = str_replace("č","ch",$str); $str = str_replace("d","d",$str); $str = str_replace("e","e",$str); $str = str_replace("ē","ee",$str); $str = str_replace("f","f",$str); $str = str_replace("g","g",$str); $str = str_replace("ģ","gj",$str); $str = str_replace("h","h",$str); $str = str_replace("i","i",$str); $str = str_replace("ī","ii",$str); $str = str_replace("j","j",$str); $str = str_replace("k","k",$str); $str = str_replace("ķ","kj",$str); $str = str_replace("l","l",$str); $str = str_replace("ļ","lj",$str); $str = str_replace("n","n",$str); $str = str_replace("ņ","nj",$str); $str = str_replace("o","o",$str); $str = str_replace("p","p",$str); $str = str_replace("r","r",$str); $str = str_replace("s","s",$str); $str = str_replace("š","sh",$str); $str = str_replace("t","t",$str); $str = str_replace("u","u",$str); $str = str_replace("ū","uu",$str); $str = str_replace("v","v",$str); $str = str_replace("z","z",$str); $str = str_replace("ž","zh",$str); $str = str_replace("A","A",$str); $str = str_replace("Ā","AA",$str); $str = str_replace("B","B",$str); $str = str_replace("C","C",$str); $str = str_replace("Č","CH",$str); $str = str_replace("D","D",$str); $str = str_replace("E","E",$str); $str = str_replace("Ē","EE",$str); $str = str_replace("F","F",$str); $str = str_replace("G","G",$str); $str = str_replace("Ģ","GJ",$str); $str = str_replace("H","H",$str); $str = str_replace("I","I",$str); $str = str_replace("Ī","II",$str); $str = str_replace("J","J",$str); $str = str_replace("K","K",$str); $str = str_replace("Ķ","KJ",$str); $str = str_replace("L","L",$str); $str = str_replace("Ļ","LJ",$str); $str = str_replace("M","M",$str); $str = str_replace("N","N",$str); $str = str_replace("Ņ","NJ",$str); $str = str_replace("O","O",$str); $str = str_replace("P","P",$str); $str = str_replace("R","R",$str); $str = str_replace("S","S",$str); $str = str_replace("Š","SH",$str); $str = str_replace("T","T",$str); $str = str_replace("U","U",$str); $str = str_replace("Ū","UU",$str); $str = str_replace("V","V",$str); $str = str_replace("Z","Z",$str); $str = str_replace("Ž","ZH",$str); return $str; } function win_to_utf($str) { if (function_exists('mb_convert_encoding')) return mb_convert_encoding($str, 'utf-8', 'windows-1251'); if (function_exists('iconv')) return iconv('windows-1251', 'utf-8', $str); $win1251utf8 = array( //"\A"=>"А","\0x0100"=>"Ā","\B"=>"B","\C"=>"C","\0x010C"=>"Č","\D"=>"D","\E"=>"E","\0x0112"=>"Ē","\F"=>"F","\G"=>"G","\0x0122"=>"Ģ","\H"=>"H","\I"=>"I","\0x012A"=>"Ī", //"\J"=>"J","\K"=>"K","\0x0136"=>"Ķ","\L"=>"L","\0x013B"=>"Ļ","\M"=>"M","\N"=>"N","\0x0145"=>"Ņ","\O"=>"0","\P"=>"P","\R"=>"R","\S"=>"S","\0x0160"=>"Š","\T"=>"T","\U"=>"U","\0x016A"=>"Ū","\V"=>"V","\Z"=>"Z","\0x017D"=>"Ž", //"\a"=>"a","\0x0101"=>"ā","\b"=>"b","\c"=>"c","\0x010D"=>"č","\d"=>"d","\e"=>"e","\0x0113"=>"ē","\f"=>"f","\g"=>"g","\0x01E7"=>"ģ","\h"=>"h","\i"=>"i","\0x012B"=>"ī", //"\j"=>"j","\k"=>"k","\0x0137"=>"ķ","\l"=>"l","\0x013C"=>"ļ","\m"=>"n","\0x0146"=>"ņ","\o"=>"o","\p"=>"p","\r"=>"r","\s"=>"s","\0x0161"=>"š","\t"=>"t","\u"=>"u","\0x016B"=>"ū","\v"=>"v","\z"=>"z","\0x017E"=>"ž", "\xC0"=>"А","\xC1"=>"Б","\xC2"=>"В","\xC3"=>"Г","\xC4"=>"Д","\xC5"=>"Е","\xA8"=>"Ё","\xC6"=>"Ж","\xC7"=>"З","\xC8"=>"И","\xC9"=>"Й","\xCA"=>"К","\xCB"=>"Л","\xCC"=>"М", "\xCD"=>"Н","\xCE"=>"О","\xCF"=>"П","\xD0"=>"Р","\xD1"=>"С","\xD2"=>"Т","\xD3"=>"У","\xD4"=>"Ф","\xD5"=>"Х","\xD6"=>"Ц","\xD7"=>"Ч","\xD8"=>"Ш","\xD9"=>"Щ","\xDA"=>"Ъ", "\xDB"=>"Ы","\xDC"=>"Ь","\xDD"=>"Э","\xDE"=>"Ю","\xDF"=>"Я","\xE0"=>"а","\xE1"=>"б","\xE2"=>"в","\xE3"=>"г","\xE4"=>"д","\xE5"=>"е","\xB8"=>"ё","\xE6"=>"ж","\xE7"=>"з", "\xE8"=>"и","\xE9"=>"й","\xEA"=>"к","\xEB"=>"л","\xEC"=>"м","\xED"=>"н","\xEE"=>"о","\xEF"=>"п","\xF0"=>"р","\xF1"=>"с","\xF2"=>"т","\xF3"=>"у","\xF4"=>"ф","\xF5"=>"х", "\xF6"=>"ц","\xF7"=>"ч","\xF8"=>"ш","\xF9"=>"щ","\xFA"=>"ъ","\xFB"=>"ы","\xFC"=>"ь","\xFD"=>"э","\xFE"=>"ю","\xFF"=>"я"); return strtr($str, $win1251utf8); } function utf_to_win($str) { if (function_exists('mb_convert_encoding')) return mb_convert_encoding($str, 'windows-1251', 'utf-8'); if (function_exists('iconv')) return iconv('utf-8', 'windows-1251', $str); $utf8win1251 = array( //"A"=>"\A","Ā"=>"\0x0100","B"=>"\B","C"=>"\C","Č"=>"\0x010C","D"=>"\D","E"=>"\E","Ē"=>"\0x0112","F"=>"\F","G"=>"\G","Ģ"=>"\0x0122","H"=>"\H","I"=>"\I","Ī"=>"\0x012A", //"J"=>"\J","K"=>"\K","Ķ"=>"\0x0136","L"=>"\L","Ļ"=>"\0x013B","M"=>"\M","N"=>"\N","Ņ"=>"\0x0145","O"=>"\O","P"=>"\P","R"=>"\R","S"=>"\S","Š"=>"\0x0160","T"=>"\T","U"=>"\U","Ū"=>"\0x016B","V"=>"\V","Z"=>"\Z","Ž"=>"\0x017D", //"a"=>"\a","ā"=>"\0x0101","b"=>"\b","c"=>"\c","č"=>"\0x010D","d"=>"\d","e"=>"\e","ē"=>"\0x0113","f"=>"\f","g"=>"\g","ģ"=>"\0x01E7","h"=>"\h","i"=>"\i","ī"=>"\0x012B", //"j"=>"\j","k"=>"\k","ķ"=>"\0x0137","l"=>"\l","ļ"=>"\0x013C","m"=>"\m","n"=>"\n","ņ"=>"\0x0146","o"=>"\o","p"=>"\p","r"=>"\r","s"=>"\s","š"=>"\0x0161","t"=>"\t","u"=>"\u","ū"=>"\0x016B","v"=>"\v","z"=>"\z","ž"=>"\0x017E", "А"=>"\xC0","Б"=>"\xC1","В"=>"\xC2","Г"=>"\xC3","Д"=>"\xC4","Е"=>"\xC5","Ё"=>"\xA8","Ж"=>"\xC6","З"=>"\xC7","И"=>"\xC8","Й"=>"\xC9","К"=>"\xCA","Л"=>"\xCB","М"=>"\xCC", "Н"=>"\xCD","О"=>"\xCE","П"=>"\xCF","Р"=>"\xD0","С"=>"\xD1","Т"=>"\xD2","У"=>"\xD3","Ф"=>"\xD4","Х"=>"\xD5","Ц"=>"\xD6","Ч"=>"\xD7","Ш"=>"\xD8","Щ"=>"\xD9","Ъ"=>"\xDA", "Ы"=>"\xDB","Ь"=>"\xDC","Э"=>"\xDD","Ю"=>"\xDE","Я"=>"\xDF","а"=>"\xE0","б"=>"\xE1","в"=>"\xE2","г"=>"\xE3","д"=>"\xE4","е"=>"\xE5","ё"=>"\xB8","ж"=>"\xE6","з"=>"\xE7", "и"=>"\xE8","й"=>"\xE9","к"=>"\xEA","л"=>"\xEB","м"=>"\xEC","н"=>"\xED","о"=>"\xEE","п"=>"\xEF","р"=>"\xF0","с"=>"\xF1","т"=>"\xF2","у"=>"\xF3","ф"=>"\xF4","х"=>"\xF5", "ц"=>"\xF6","ч"=>"\xF7","ш"=>"\xF8","щ"=>"\xF9","ъ"=>"\xFA","ы"=>"\xFB","ь"=>"\xFC","э"=>"\xFD","ю"=>"\xFE","я"=>"\xFF"); return strtr($str, $utf8win1251); } function trun_to_rus($str) { $str=str_replace("AA","Ā",$str); $str=str_replace("aa","ā",$str); $str=str_replace("CH","Č",$str); $str=str_replace("ch","č",$str); $str=str_replace("EE","Ē",$str); $str=str_replace("ee","ē",$str); $str=str_replace("GJ","Ģ",$str); $str=str_replace("gj","ģ",$str); $str=str_replace("II","Ī",$str); $str=str_replace("ii","ī",$str); $str=str_replace("KJ","Ķ",$str); $str=str_replace("kj","ķ",$str); $str=str_replace("LJ","Ļ",$str); $str=str_replace("lj","ļ",$str); $str=str_replace("NJ","Ņ",$str); $str=str_replace("nj","ņ",$str); $str=str_replace("SH","Š",$str); $str=str_replace("sh","š",$str); $str=str_replace("UU","Ū",$str); $str=str_replace("uu","ū",$str); $str=str_replace("ZH","Ž",$str); $str=str_replace("zh","ž",$str); $str=strtr($str,array("a"=>"a", "aa"=>"ā", "b"=>"b", "c"=>"c", "ch"=>"č", "d"=>"d", "e"=>"e", "ee"=>"ē", "f"=>"f", "g"=>"g", "gj"=>"ģ", "h"=>"h", "i"=>"i", "ii"=>"ī", "j"=>"j", "k"=>"k", "kj"=>"ķ", "l"=>"l", "lj"=>"ļ", "m"=>"m", "n"=>"n", "nj"=>"ņ", "o"=>"o", "p"=>"p", "r"=>"r", "s"=>"s", "sh"=>"š", "t"=>"t", "u"=>"u", "uu"=>"ū", "v"=>"v", "z"=>"z", "zh"=>"ž", "A"=>"A", "AA"=>"Ā", "B"=>"B", "C"=>"C", "CH"=>"Č", "D"=>"D", "E"=>"E", "EE"=>"Ē", "F"=>"F", "G"=>"G", "GJ"=>"Ģ", "H"=>"H", "I"=>"I", "II"=>"Ī", "J"=>"J", "K"=>"K", "KJ"=>"Ķ", "L"=>"L", "LJ"=>"Ļ", "M"=>"M", "N"=>"N", "NJ"=>"Ņ", "O"=>"O", "P"=>"P", "R"=>"R", "S"=>"S", "SH"=>"Š", "T"=>"T", "U"=>"U", "UU"=>"Ū", "V"=>"V", "Z"=>"Z", "ZH"=>"Ž")); return $str; } function check($message) { $message=str_replace("|","I",$message); $message=str_replace("||","I",$message); $message=htmlspecialchars($message); $message = str_replace("\r\n", "<br/>", $message); $message = strtr($message, array(chr("1") => "", chr("2") => "", chr("3") => "", chr("4") => "", chr("5") => "", chr("6") => "", chr("7") => "", chr("8") => "", chr("9") => "", chr("10") => "", chr("11") => "", chr("12") => "", chr ("13") => "", chr("14") => "", chr("15") => "", chr("16") => "", chr("17") => "", chr("18") => "", chr("19") => "", chr("20") => "", chr("21") => "", chr("22") => "", chr("23") => "", chr("24") => "", chr("25") => "", chr("26") => "", chr("27") => "", chr("28") => "", chr("29") => "", chr("30") => "", chr("31") => "")); $message = iconv('utf-8', 'windows-1251', $message); $message = substr($message, 0, 1000); $message = iconv('windows-1251', 'utf-8', $message); $message=str_replace("'","'",$message); $message=str_replace("\"",""",$message); $message=str_replace("\$","$",$message); $message=str_replace("$","$",$message); $message=str_replace("\\","\", $message); $message=str_replace("`","`", $message); $message=str_replace("^","^", $message); $message=str_replace("%","%", $message); $message=str_replace(":",":",$message); $message=preg_replace("|:|",":",$message,3); $message=stripslashes(trim($message)); return $message; } function replace_rus($str) { $str = str_replace("a","|",$str); $str = str_replace("ā","|",$str); $str = str_replace("b","|",$str); $str = str_replace("c","|",$str); $str = str_replace("č","|",$str); $str = str_replace("d","|",$str); $str = str_replace("e","|",$str); $str = str_replace("ē","|",$str); $str = str_replace("f","|",$str); $str = str_replace("g","|",$str); $str = str_replace("ģ","|",$str); $str = str_replace("h","|",$str); $str = str_replace("i","|",$str); $str = str_replace("ī","|",$str); $str = str_replace("j","|",$str); $str = str_replace("k","|",$str); $str = str_replace("ķ","|",$str); $str = str_replace("l","|",$str); $str = str_replace("ļ","|",$str); $str = str_replace("n","|",$str); $str = str_replace("ņ","|",$str); $str = str_replace("o","|",$str); $str = str_replace("p","|",$str); $str = str_replace("r","|",$str); $str = str_replace("s","|",$str); $str = str_replace("š","|",$str); $str = str_replace("t","|",$str); $str = str_replace("u","|",$str); $str = str_replace("ū","|",$str); $str = str_replace("v","|",$str); $str = str_replace("z","|",$str); $str = str_replace("ž","|",$str); $str = str_replace("A","|",$str); $str = str_replace("Ā","|",$str); $str = str_replace("B","|",$str); $str = str_replace("C","|",$str); $str = str_replace("Č","|",$str); $str = str_replace("D","|",$str); $str = str_replace("E","|",$str); $str = str_replace("Ē","|",$str); $str = str_replace("F","|",$str); $str = str_replace("G","|",$str); $str = str_replace("Ģ","|",$str); $str = str_replace("H","|",$str); $str = str_replace("I","|",$str); $str = str_replace("Ī","|",$str); $str = str_replace("J","|",$str); $str = str_replace("K","|",$str); $str = str_replace("Ķ","|",$str); $str = str_replace("L","|",$str); $str = str_replace("Ļ","|",$str); $str = str_replace("M","|",$str); $str = str_replace("N","|",$str); $str = str_replace("Ņ","|",$str); $str = str_replace("O","|",$str); $str = str_replace("P","|",$str); $str = str_replace("R","|",$str); $str = str_replace("S","|",$str); $str = str_replace("Š","|",$str); $str = str_replace("T","|",$str); $str = str_replace("U","|",$str); $str = str_replace("Ū","|",$str); $str = str_replace("V","|",$str); $str = str_replace("Z","|",$str); $str = str_replace("Ž","|",$str); return $str; }
×
×
  • Create New...