Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.52 KB | None | 0 0
  1. <?php
  2.  
  3. $text = $_POST["text"];
  4. $language = $_POST["language"];
  5. $direction = $_POST["direction"];
  6.  
  7. if($text != "" || $text != " ") {
  8. if($language = "macedonian") {
  9.  
  10. $cyrillic_MK = array("&#1040;","&#1072;","&#1041;","&#1073;","&#1042;","&#1074;","&#1043;","&#1075;","&#1044;","&#1076;","&#1027;","&#1107;","&#1045;","&#1077;","&#1046;","&#1078;","&#1047;","&#1079;","&#1029;","&#1109;","&#1048;","&#1080;","&#1032;","&#1112;","&#1050;","&#1082;","&#1051;","&#1083;","&#1033;","&#1113;","&#1052;","&#1084;","&#1053;","&#1085;","&#1034;","&#1114;","&#1054;","&#1086;","&#1055;","&#1087;","&#1056;","&#1088;","&#1057;","&#1089;","&#1058;","&#1090;","&#1036;","&#1116;","&#1059;","&#1091;","&#1060;","&#1092;","&#1061;","&#1093;","&#1062;","&#1094;","&#1063;","&#1095;","&#1039;","&#1119;","&#1064;","&#1096;");
  11.  
  12. $latin_MK = array("&#65;","&#97;","&#66;","&#98;","&#86;","&#118;","&#71;","&#103;","&#68;","&#100;","&#71;&#106;","&#103;&#106;"&#69;","&#101;","&#142;","&#158;"
  13. "&#90;","&#122;","&#68;&#122;","&#100;&#122;"&#73;","&#105;","&#74;","&#106;","&#75;","&#107;","&#76;","&#108;",""&#76;&#106;","&#108;&#106;","&#77;","&#109;","&#78;","&#110;","&#78;&#106;","&#110;&#106;","&#79;","&#111;","&#80;","&#112;","&#82;","&#114;","&#83;","&#115;","&#84;","&#116;","&#75;&#106;","&#107;&#106;","&#85;&#117;","&#70;&#102;","&#75;&#104;","&#107;&#104;","&#84;&#115;","&#116;&#115;","&#268;","&#269;","&#68;&#158;","&#100;&#158;","&#138;","&#154;");
  14. if($direction = "tolat") {
  15. echo "str_replace($cyrillic_MK, $latin_MK, $text)";
  16. }
  17. }
  18. }
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement