Topic: Translit MOD (only RUS version now)
##
##
## Mod title: Translit
##
## Mod version: 1.0
## Works on PunBB: 1.0.1
## Release date: 2003-08-31
## Author: Farch (mix2003@hot.ee)
##
## Description: ????????? ? ??????? ????? ???? ?? ????? ? ??????????,
## ??????? ????????? ?????????????? ?? ???????? ?
## ????????.
##
## Affected files: viewtopic.php post.php edit.php
##
## Affects DB: No
##
## Notes:
##
## Generated with ModGenerator (http://modgen.cactuz.nu/)
## on: 2003-08-31 20:01:10
##
## DISCLAIMER: Please note that "mods" are not officially supported by
## PunBB. Installation of this modification is done at your
## own risk. Backup your forum database and any and all
## applicable files before proceeding.
##
##
#
#---------[ 1. UPLOAD ]-------------------------------------------------------
#
translit.html to /
#
#---------[ 2. OPEN ]---------------------------------------------------------
#
post.php
#
#---------[ 3. FIND (line: 396) ]---------------------------------------------
#
?>
#
#---------[ 4. AFTER, ADD ]---------------------------------------------------
#
<script language='javascript'><!--
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {if (posleft != 0) { x = posleft }if (postop != 0) { y = postop }if (!scroll) { scroll = 1 }if (!resize) { resize = 1 }if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {X = (screen.width - width ) / 2;Y = (screen.height - height) / 2;}if (scroll != 0) { scroll = 1 }var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');}
//--></script>
#
#---------[ 5. FIND (line: 427) ]---------------------------------------------
#
<b><?php print $lang_common['Message'] ?></b> <br><br>
#
#---------[ 6. AFTER, ADD ]---------------------------------------------------
#
<a href="javascript:PopUp('translit.html','ZTransl','360','350','0','0','0','0')"
title='?????? ???????? ?????? ?? ????????? ? ????????'><b>????????</b></a> </br>
#
#---------[ 7. OPEN ]---------------------------------------------------------
#
edit.php
#
#---------[ 8. FIND (line: 174) ]---------------------------------------------
#
?>
#
#---------[ 9. AFTER, ADD ]---------------------------------------------------
#
<script language='javascript'><!--
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {if (posleft != 0) { x = posleft }if (postop != 0) { y = postop }if (!scroll) { scroll = 1 }if (!resize) { resize = 1 }if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {X = (screen.width - width ) / 2;Y = (screen.height - height) / 2;}if (scroll != 0) { scroll = 1 }var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');}
//--></script>
#
#---------[10. FIND (line: 193) ]---------------------------------------------
#
<b><?php print $lang_common['Message'] ?></b> <br><br>
#
#---------[11. AFTER, ADD ]---------------------------------------------------
#
<a href="javascript:PopUp('translit.html','ZTransl','360','350','0','0','0','0')"
title='?????? ???????? ?????? ?? ????????? ? ????????'><b>????????</b></a> </br>
#
#---------[12. OPEN ]---------------------------------------------------------
#
viewtopic.php
#
#---------[13. FIND (line: 149) ]---------------------------------------------
#
?>
#
#---------[14. AFTER, ADD ]---------------------------------------------------
#
<script language='javascript'><!--
function PopUp(url, name, width,height,center,resize,scroll,posleft,postop) {if (posleft != 0) { x = posleft }if (postop != 0) { y = postop }if (!scroll) { scroll = 1 }if (!resize) { resize = 1 }if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {X = (screen.width - width ) / 2;Y = (screen.height - height) / 2;}if (scroll != 0) { scroll = 1 }var Win = window.open( url, name, 'width='+width+',height='+height+',top='+Y+',left='+X+',resizable='+resize+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no');}
//--></script>
#
#---------[15. FIND (line: 417) ]---------------------------------------------
#
<b><?php print $lang_common['Message'] ?></b>> <br><br>
#
#---------[16. AFTER, ADD ]---------------------------------------------------
#
<a href="javascript:PopUp('translit.html','ZTransl','360','350','0','0','0','0')"
title='?????? ???????? ?????? ?? ????????? ? ????????'><b>????????</b></a> </br>
#
#---------[17. SAVE/UPLOAD ]--------------------------------------------------
#
translit.html
<HTML>
<HEAD>
<TITLE>ZTransliter v1.0</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
<STYLE TYPE="TEXT/CSS"><!-- a {text-decoration: none; color:white}
tr { font-family: Verdana; font-size: 12px; background-color: #FAFAFA; text-align: center;}
textarea { width: 340px;} .button { font-size: 11px; border : 1px solid #002854;
font-weight : bold; background-color : #D8DCE1; }--></STYLE></HEAD>
<BODY BGCOLOR="#EEEEEE" TEXT="#000000" LEFTMARGIN="5" TOPMARGIN="5" MARGINWIDTH="5" MARGINHEIGHT="5">
<SCRIPT>Lat=new Array("''","w","j","yu","ye","ya","zh","'","ch","c","u","k","e","n","g","sh","z","x","q",
"f","yi","v","a","p","r","o","l","d","s","m","i","t","b","y","ZH","W","J","YU","YE","YA","CH","C","U","K",
"E","N","G","SH","Z","X","Q","F","YI","V","A","P","R","O","L","D","S","M","I","T","B", "Y");
Rus=new Array("?","?","?","?","?","?","?", "?","?","?","?","?","?","?","?","?","?","?","?","?","?","?",
"?","?","?","?","?","?","?","?","?","?","?","?","?","?","?", "?","?","?","?","?","?","?","?","?","?",
"?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?", "?")
function LatRus(flag) {if (flag==1 || (flag==2 && document.trform.realtime.checked))
{str=document.trform.textlat.value;for (i=0;i<66;i++){re=RegExp(Lat[i],"g");
str=str.replace(re,Rus[i]);} document.trform.textrus.value=str;
if (opener && document.trform.openerwrite.checked) {opener.document.req_message.Post.value=str;}}}</SCRIPT>
<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1 BGCOLOR=black WIDTH=350><TR><TD COLSPAN=6 TITLE="©
2002 zapimir" STYLE="background-color:navy"><B><A HREF="http://zbookpro.net/" TARGET=_blank>ZTransliter v1.0</A>
</B></TD></TR><TR><TD COLSPAN=6>???????</TD></TR><TR><TD>? - a</TD><TD>? - b</TD><TD>? - v</TD><TD>? - g</TD>
<TD>? - d</TD><TD>? - e</TD></TR>
<TR><TD>? - j</TD><TD>? - zh</TD><TD>? - z</TD><TD>? - i</TD><TD>? - y</TD><TD>? - k</TD></TR><TR><TD>? - l</TD>
<TD>? - m</TD><TD>? - n</TD><TD>? - o</TD><TD>? - p</TD><TD>? - r</TD></TR><TR><TD>? - s</TD><TD>? - t</TD>
<TD>? - u</TD><TD>? - f</TD><TD>? - x</TD><TD>? - c</TD></TR><TR><TD>? - ch</TD><TD>? - sh</TD><TD>? - w</TD>
<TD>? - q</TD><TD>? - yi</TD><TD>? - '</TD></TR>
<TR><TD COLSPAN=2>? - y?</TD><TD COLSPAN=2>? - yu</TD><TD COLSPAN=2>? - y?</TD></TR><FORM NAME="trform"><TR>
<TD COLSPAN=6><TEXTAREA NAME="textlat" ROWS="5" COLS="30" onKeyUp='LatRus(2);'></TEXTAREA></TD></TR><TR>
<TD COLSPAN=6 HEIGHT=25 VALIGN=MIDDLE><INPUT TYPE="BUTTON" VALUE="????????" onClick='LatRus(1);'
TITLE="???????????? ? ????????" CLASS=button>
<INPUT TYPE="checkbox"
NAME="realtime"
CHECKED TITLE="??????? ? ???????? ? ???????? ???????" value="ON">RealTime
<SCRIPT>if(opener) document.writeln('<INPUT TYPE="checkbox" NAME="openerwrite"
CHECKED TITLE="?????????? ????? ? ???????? ?????">OpenerWrite');</SCRIPT>
</TD></TR><TR><TD COLSPAN=6><TEXTAREA NAME="textrus" ROWS="5" COLS="30">
</TEXTAREA></TD></TR>
</FORM>
</TABLE>
</BODY>
</HTML>