var i=0; var atags=new Array(); atags[i]=new Array('[b]','<b>');i++; atags[i]=new Array('[i]','<i>');i++; atags[i]=new Array('[u]','<u>');i++; atags[i]=new Array('[o]','<o>');i++; atags[i]=new Array('[black]','<font color=black>');i++; atags[i]=new Array('[red]','<font color=red>');i++; atags[i]=new Array('[blue]','<font color=blue>');i++; atags[i]=new Array('[green]','<font color=green>');i++; atags[i]=new Array('[orange]','<font color=orange>');i++; atags[i]=new Array('[yellow]','<font color=yellow>');i++; atags[i]=new Array('[purple]','<font color=purple>');i++; atags[i]=new Array('[gray]','<font color=gray>');i++; atags[i]=new Array('[quote]','<div style="background-color:eeeeee; border: 1px solid #000; margin:2px; padding: 4px;">');i++; var i=0; var smile=new Array(); smile[i]=new Array(' 😀 ','https://forum.vmeste.eu/img/newbigsmile/6.gif');i++; smile[i]=new Array('*7','https://forum.vmeste.eu/img/newbigsmile/7.gif');i++; smile[i]=new Array('*8','https://forum.vmeste.eu/img/newbigsmile/8.gif');i++; smile[i]=new Array('*9','https://forum.vmeste.eu/img/newbigsmile/9.gif');i++; smile[i]=new Array('*10','https://forum.vmeste.eu/img/newbigsmile/10.gif');i++; smile[i]=new Array('*11','https://forum.vmeste.eu/img/newbigsmile/11.gif');i++; smile[i]=new Array('*12','https://forum.vmeste.eu/img/newbigsmile/12.gif');i++; smile[i]=new Array('*13','https://forum.vmeste.eu/img/newbigsmile/13.gif');i++; smile[i]=new Array('*14','https://forum.vmeste.eu/img/newbigsmile/14.gif');i++; smile[i]=new Array('*15','https://forum.vmeste.eu/img/newbigsmile/15.gif');i++; smile[i]=new Array('*16','https://forum.vmeste.eu/img/newbigsmile/16.gif');i++; smile[i]=new Array('*16','https://forum.vmeste.eu/img/newbigsmile/16.gif');i++; smile[i]=new Array('*16','https://forum.vmeste.eu/img/newbigsmile/16.gif');i++; smile[i]=new Array('*16','https://forum.vmeste.eu/img/newbigsmile/16.gif');i++; smile[i]=new Array('*16','https://forum.vmeste.eu/img/newbigsmile/16.gif');i++; smile[i]=new Array('*16','https://forum.vmeste.eu/img/newbigsmile/16.gif');i++; smile[i]=new Array('*16','https://forum.vmeste.eu/img/newbigsmile/16.gif');i++; smile[i]=new Array('*16','https://forum.vmeste.eu/img/newbigsmile/16.gif');i++; smile[i]=new Array('*16','https://forum.vmeste.eu/img/newbigsmile/16.gif');i++; smile[i]=new Array('*16','https://forum.vmeste.eu/img/newbigsmile/16.gif');i++; function filter(text) { for(k=0;k<atags.length;k++) { tag1=atags[k][0];tag2=atags[k][1]; btag=atags[k][1].split(" ")[0].split(">");btag=btag[0].substr(1); btag1='[/'+atags[k][0].substr(1);btag2='</'+btag+'>'; while (text.indexOf(tag1)>=0) text = text.replace(tag1, tag2); while (text.indexOf(btag1)>=0) text = text.replace(btag1, btag2); } for(k=0;k<smile.length;k++) {while (text.indexOf(smile[k][0])>=0) text = text.replace(smile[k][0], '<img src='+smile[k][1]+'>'); } return text; }
<script> if(avator_on==1){ var avator='%avator%'; print='<tr><td>Аватор на форуме</td><td><input name=avator type=file class=text><br><input name=avatordel type=checkbox > - удалить<br>Только формат .jpg .gif (max 100x100 10kb)<br>'; if(avator!='') print+='<img src='+avator+'>'; print+='</td></tr>'; document.write(print); } </script>
avator=""; if(f_p[i][8]) avator="<img src="+f_p[i][8]+" style='margin-top:5px;margin-bottom:5px;'><br>"; posts[i]="<table width=90% align=center><tr><td class=title><a name=post"+f_p[i][0]+" href=?inc=forum&forum="+forum+"&topic="+topic+"&post="+f_p[i][0]+"#post"+f_p[i][0]+" class=title>"+f_p[i][3]+"</a><td class=title align=right> #"+num+"</tr><tr><td width=150><br><a href=# onclick='put(\""+f_p[i][1]+", \"); return false;'>"+f_p[i][1]+"</a><br>"+avator+rang(f_p[i][7])+"Сообщений:"+f_p[i][7]+"<br> <a href=?inc=info&nick="+f_p[i][1]+" target=info><font class=low>Профиль</a> <a href=?inc=post&act=new&nick="+mynick+"&id="+myid+"&tonick="+f_p[i][1]+" target=pm><font class=low>Личка</a><br><a href=# onclick='return confirm(\"Нельзя блокировать по IP!\");'><font class=low>"+f_p[i][6]+"</a> </td><td>"+f_p[i][2]+"<tr><td>"+isonline+"<td align=right>"+mod+"</td></tr></table><br>";
/* Определение ранга по кол-ву сообщений*/ function rang(c) { st="Новичок"; if(c>100) st="Пользователь"; if(c>500) st="Бывалый"; if(c>1000) st="Знаток"; if(c>2000) st="Мастер"; if(c>5000) st="Профессионал"; return "Ранг: "+st+"<br>"; }