<?php
if($posts>=0||$admin) {
$msg=str_replace(".smirk.","<img src=\"sm/smiles/smirk.gif\" alt=\".smirk.\"/>",$msg);
$msg=str_replace(".snow.","<img src=\"sm/smiles/snow.gif\" alt=\".snow.\"/>",$msg);
$msg=str_replace(".str.","<img src=\"sm/smiles/str.gif\" alt=\".str.\"/>",$msg);
$msg=str_replace(".sun.","<img src=\"sm/smiles/sun.gif\" alt=\".sun.\"/>",$msg);
$msg=str_replace(".sunny.","<img src=\"sm/smiles/sunny.gif\" alt=\".sunny.\"/>",$msg);
$msg=str_replace(".notsure.","<img src=\"sm/smiles/notsure.gif\" alt=\".notsure.\"/>",$msg);
$msg=str_replace(".clock.","<img src=\"sm/smiles/clock.gif\" alt=\".clock.\"/>",$msg);
$msg=str_replace(".vopros.","<img src=\"sm/smiles/vopros.gif\" alt=\".vopros.\"/>",$msg);
$msg=str_replace(".smile.","<img src=\"sm/smiles/smile.gif\" alt=\".smile.\"/>",$msg);
if($posts>=100||$admin) {
$msg=str_replace(".party.","<img src=\"sm/smiles/party.gif\" alt=\".party.\"/>",$msg);
$msg=str_replace(".phone.","<img src=\"sm/smiles/phone.gif\" alt=\".phone.\"/>",$msg);
$msg=str_replace(".present.","<img src=\"sm/smiles/present.gif\" alt=\".present.\"/>",$msg);
$msg=str_replace(".pya.","<img src=\"sm/smiles/pya.gif\" alt=\".pya.\"/>",$msg);
$msg=str_replace(".rain.","<img src=\"sm/smiles/rain.gif\" alt=\".rain.\"/>",$msg);
$msg=str_replace(".rose.","<img src=\"sm/smiles/rose.gif\" alt=\".rose.\"/>",$msg);
$msg=str_replace(".vis.","<img src=\"sm/smiles/vis.gif\" alt=\".vis.\"/>",$msg);
$msg=str_replace(".zubastik.","<img src=\"sm/smiles/zubastik.gif\" alt=\".zubastik.\"/>",$msg);
$msg=str_replace(".eda.","<img src=\"sm/smiles/eda.gif\" alt=\".eda.\"/>",$msg);
$msg=str_replace(".elka.","<img src=\"sm/smiles/elka.gif\" alt=\".elka.\"/>",$msg);
$msg=str_replace(".zloi.","<img src=\"sm/smiles/zloi.gif\" alt=\".zloi.\"/>",$msg);
$msg=str_replace(".kruzhka.","<img src=\"sm/smiles/kruzhka.gif\" alt=\".kruzhka.\"/>",$msg);
$msg=str_replace(".worry.","<img src=\"sm/smiles/worry.gif\" alt=\".worry.\"/>",$msg);
$msg=str_replace(".rolleyes.","<img src=\"sm/smiles/rolleyes.gif\" alt=\".rolleyes.\"/>",$msg);
$msg=str_replace(".sad.","<img src=\"sm/smiles/sad.gif\" alt=\".sad.\"/>",$msg);
$msg=str_replace(".sleep.","<img src=\"sm/smiles/sleep.gif\" alt=\".sleep.\"/>",$msg);
$msg=str_replace(".ooh.","<img src=\"sm/smiles/ooh.gif\" alt=\".ooh.\"/>",$msg);
$msg=str_replace(".mad.","<img src=\"sm/smiles/mad.gif\" alt=\".mad.\"/>",$msg);
$msg=str_replace(".eat.","<img src=\"sm/smiles/eat.gif\" alt=\".eat.\"/>",$msg);
$msg=str_replace(".blush.","<img src=\"sm/smiles/blush.gif\" alt=\".blush.\"/>",$msg);
if($posts>=500||$admin) {
$msg=str_replace(".hohol.","<img src=\"sm/smiles/hohol.gif\" alt=\".hohol.\"/>",$msg);
$msg=str_replace(".ill.","<img src=\"sm/smiles/ill.gif\" alt=\".ill.\"/>",$msg);
$msg=str_replace(".kisa.","<img src=\"sm/smiles/kisa.gif\" alt=\".kisa.\"/>",$msg);
$msg=str_replace(".tongue.","<img src=\"sm/smiles/tongue.gif\" alt=\".tongue.\"/>",$msg);
$msg=str_replace(".urgh.","<img src=\"sm/smiles/urgh.gif\" alt=\".urgh.\"/>",$msg);
$msg=str_replace(".wink.","<img src=\"sm/smiles/wink.gif\" alt=\".wink.\"/>",$msg);
$msg=str_replace(".ulibka.","<img src=\"sm/smiles/biggrin.gif\" alt=\".ulibka.\"/>",$msg);
$msg=str_replace(".boggle.","<img src=\"sm/smiles/boggle.gif\" alt=\".boggle.\"/>",$msg);
$msg=str_replace(".huh.","<img src=\"sm/smiles/huh.gif\" alt=\".huh.\"/>",$msg);
if($posts>=1000||$admin) {
$msg=str_replace(".sleza.","<img src=\"sm/smiles/sleza.gif\" alt=\".sleza.\"/>",$msg);
$msg=str_replace(".chmok.","<img src=\"sm/smiles/chmok.gif\" alt=\".chmok.\"/>",$msg);
$msg=str_replace(".ne.znayu.","<img src=\"sm/smiles/ne.znayu.gif\" alt=\".ne.znayu.\"/>",$msg);
$msg=str_replace(".jump.","<img src=\"sm/smiles/jump.gif\" alt=\".jump.\"/>",$msg);
$msg=str_replace(".good.","<img src=\"sm/smiles/good.gif\" alt=\".good.\"/>",$msg);
$msg=str_replace(".chmak.","<img src=\"sm/smiles/chmak.gif\" alt=\".chmak.\"/>",$msg);
$msg=str_replace(".tired.","<img src=\"sm/smiles/tired.gif\" alt=\".tired.\"/>",$msg);
$msg=str_replace(".confused.","<img src=\"sm/smiles/confused.gif\" alt=\".confused.\"/>",$msg);
$msg=str_replace(".cool.","<img src=\"sm/smiles/cool.gif\" alt=\".cool.\"/>",$msg);
$msg=str_replace(".eek.","<img src=\"sm/smiles/eek.gif\" alt=\".eek.\"/>",$msg);
if($posts>=3000||$admin) {
$msg=str_replace(".3dsmile.","<img src=\"sm/smiles/3dsmile.gif\" alt=\".3dsmile.\"/>",$msg);
$msg=str_replace(".aga.","<img src=\"sm/smiles/aga.gif\" alt=\".aga.\"/>",$msg);
$msg=str_replace(".angel.","<img src=\"sm/smiles/angel.gif\" alt=\".angel.\"/>",$msg);
$msg=str_replace(".anim.","<img src=\"sm/smiles/anim.gif\" alt=\".anim.\"/>",$msg);
$msg=str_replace(".baksy.","<img src=\"sm/smiles/baksy.gif\" alt=\".baksy.\"/>",$msg);
$msg=str_replace(".beee.","<img src=\"sm/smiles/beee.gif\" alt=\".beee.\"/>",$msg);
$msg=str_replace(".buket.","<img src=\"sm/smiles/buket.gif\" alt=\".buket.\"/>",$msg);
$msg=str_replace(".bum.","<img src=\"sm/smiles/bum.gif\" alt=\".bum.\"/>",$msg);
$msg=str_replace(".butylka2.","<img src=\"sm/smiles/butylka2.gif\" alt=\".butylka2.\"/>",$msg);
$msg=str_replace(".dev.","<img src=\"sm/smiles/dev.gif\" alt=\".dev.\"/>",$msg);
$msg=str_replace(".drink2.","<img src=\"sm/smiles/drink2.gif\" alt=\".drink2.\"/>",$msg);
$msg=str_replace(".em.","<img src=\"sm/smiles/em.gif\" alt=\".em.\"/>",$msg);
$msg=str_replace(".fingal.","<img src=\"sm/smiles/fingal.gif\" alt=\".fingal.\"/>",$msg);
$msg=str_replace(".fingal2.","<img src=\"sm/smiles/fingal2.gif\" alt=\".fingal2.\"/>",$msg);
$msg=str_replace(".focus.","<img src=\"sm/smiles/focus.gif\" alt=\".focus.\"/>",$msg);
$msg=str_replace(".haha.","<img src=\"sm/smiles/haha.gif\" alt=\".haha.\"/>",$msg);
$msg=str_replace(".heart3.","<img src=\"sm/smiles/heart3.gif\" alt=\".heart3.\"/>",$msg);
$msg=str_replace(".icq.","<img src=\"sm/smiles/icq.gif\" alt=\".icq.\"/>",$msg);
$msg=str_replace(".icq2.","<img src=\"sm/smiles/icq2.gif\" alt=\".icq2.\"/>",$msg);
$msg=str_replace(".icq3.","<img src=\"sm/smiles/icq3.gif\" alt=\".icq3.\"/>",$msg);
$msg=str_replace(".icq4.","<img src=\"sm/smiles/icq4.gif\" alt=\".icq4.\"/>",$msg);
$msg=str_replace(".toilet.","<img src=\"sm/smiles/toilet.gif\" alt=\".toilet.\"/>",$msg);
$msg=str_replace(".toy2.","<img src=\"sm/smiles/toy2.gif\" alt=\".toy2.\"/>",$msg);
$msg=str_replace(".toy.","<img src=\"sm/smiles/toy.gif\" alt=\".toy.\"/>",$msg);
$msg=str_replace(".tv.","<img src=\"sm/smiles/tv.gif\" alt=\".tv.\"/>",$msg);
$msg=str_replace(".vantuz.","<img src=\"sm/smiles/vantuz.gif\" alt=\".vantuz.\"/>",$msg);
$msg=str_replace(".heart.","<img src=\"sm/smiles/heart.gif\" alt=\".heart.\"/>",$msg);
$msg=str_replace(".talk.","<img src=\"sm/smiles/talk.gif\" alt=\".talk.\"/>",$msg);
$msg=str_replace(".cvetok.","<img src=\"sm/smiles/cvetok.gif\" alt=\".cvetok.\"/>",$msg);
$msg=str_replace(".loveyou.","<img src=\"sm/smiles/love.you.gif\" alt=\".loveyou.\"/>",$msg);
$msg=str_replace(".4mok.","<img src=\"sm/smiles/4mok.gif\" alt=\".4mok.\"/>",$msg);
$msg=str_replace(".love.","<img src=\"sm/smiles/love.gif\" alt=\".love.\"/>",$msg);
$msg=str_replace(".smoke.","<img src=\"sm/smiles/smoke.gif\" alt=\".smoke.\"/>",$msg);
$msg=str_replace(".daryu.","<img src=\"sm/smiles/daryu.gif\" alt=\".daryu.\"/>",$msg);
$msg=str_replace(".loving.","<img src=\"sm/smiles/loving.gif\" alt=\".loving.\"/>",$msg);
$msg=str_replace(".stress.","<img src=\"sm/smiles/stress.gif\" alt=\".stress.\"/>",$msg);
$msg=str_replace(".inlove.","<img src=\"sm/smiles/inlove.gif\" alt=\".inlove.\"/>",$msg);
if($posts>=5000||$admin) {
$msg=str_replace(".love2.","<img src=\"sm/smiles/love2.gif\" alt=\".love2.\"/>",$msg);
$msg=str_replace(".love3.","<img src=\"sm/smiles/love3.gif\" alt=\".love3.\"/>",$msg);
$msg=str_replace(".love4.","<img src=\"sm/smiles/love4.gif\" alt=\".love4.\"/>",$msg);
$msg=str_replace(".love5.","<img src=\"sm/smiles/love5.gif\" alt=\".love5.\"/>",$msg);
$msg=str_replace(".nono.","<img src=\"sm/smiles/nono.gif\" alt=\".nono.\"/>",$msg);
$msg=str_replace(".oops.","<img src=\"sm/smiles/oops.gif\" alt=\".oops.\"/>",$msg);
$msg=str_replace(".pa4ka.","<img src=\"sm/smiles/pa4ka.gif\" alt=\".pa4ka.\"/>",$msg);
$msg=str_replace(".pizza.","<img src=\"sm/smiles/pizza.gif\" alt=\".pizza.\"/>",$msg);
$msg=str_replace(".plak.","<img src=\"sm/smiles/plak.gif\" alt=\".plak.\"/>",$msg);
$msg=str_replace(".plak2.","<img src=\"sm/smiles/plak2.gif\" alt=\".plak2.\"/>",$msg);
$msg=str_replace(".rose2.","<img src=\"sm/smiles/rose2.gif\" alt=\".rose2.\"/>",$msg);
$msg=str_replace(".shok2.","<img src=\"sm/smiles/shok2.gif\" alt=\".shok2.\"/>",$msg);
$msg=str_replace(".skleroz.","<img src=\"sm/smiles/skleroz.gif\" alt=\".skleroz.\"/>",$msg);
$msg=str_replace(".smutil.","<img src=\"sm/smiles/smutil.gif\" alt=\".smutil.\"/>",$msg);
$msg=str_replace(".tog.","<img src=\"sm/smiles/tog.gif\" alt=\".tog.\"/>",$msg);
$msg=str_replace(".tus.","<img src=\"sm/smiles/tus.gif\" alt=\".tus.\"/>",$msg);
$msg=str_replace(".ura.","<img src=\"sm/smiles/ura.gif\" alt=\".ura.\"/>",$msg);
$msg=str_replace(".vau.","<img src=\"sm/smiles/vau.gif\" alt=\".vau.\"/>",$msg);
$msg=str_replace(".vau3.","<img src=\"sm/smiles/vau3.gif\" alt=\".vau3.\"/>",$msg);
$msg=str_replace(".vgubki.","<img src=\"sm/smiles/vgubki.gif\" alt=\".vgubki.\"/>",$msg);
$msg=str_replace(".vino.","<img src=\"sm/smiles/vino.gif\" alt=\".vino.\"/>",$msg);
$msg=str_replace(".vkrasku2.","<img src=\"sm/smiles/vkrasku2.gif\" alt=\".vkrasku2.\"/>",$msg);
$msg=str_replace(".vzglyad.","<img src=\"sm/smiles/vzglyad.gif\" alt=\".vzglyad.\"/>",$msg);
$msg=str_replace(".wink2.","<img src=\"sm/smiles/wink2.gif\" alt=\".wink2.\"/>",$msg);
$msg=str_replace(".woko.","<img src=\"sm/smiles/woko.gif\" alt=\".woko.\"/>",$msg);
$msg=str_replace(".zev.","<img src=\"sm/smiles/zev.gif\" alt=\".zev.\"/>",$msg);
$msg=str_replace(".pivo.","<img src=\"sm/smiles/pivo.gif\" alt=\".pivo.\"/>",$msg);
$msg=str_replace(".be.","<img src=\"sm/smiles/be.gif\" alt=\".be.\"/>",$msg);
$msg=str_replace(".priv.","<img src=\"sm/smiles/priv.gif\" alt=\".priv.\"/>",$msg);
$msg=str_replace(".susel.","<img src=\"sm/smiles/susel.gif\" alt=\".susel.\"/>",$msg);
$msg=str_replace(".dum.","<img src=\"sm/smiles/dum.gif\" alt=\".dum.\"/>",$msg);
$msg=str_replace(".bumbum.","<img src=\"sm/smiles/bumbum.gif\" alt=\".bumbum.\"/>",$msg);
if($posts>=7000||$admin) {
$msg=str_replace(".klas.","<img src=\"sm/smiles/klas.gif\" alt=\".klas.\"/>",$msg);
$msg=str_replace(".kolco.","<img src=\"sm/smiles/kolco.gif\" alt=\".kolco.\"/>",$msg);
$msg=str_replace(".konfeta.","<img src=\"sm/smiles/konfeta.gif\" alt=\".konfeta.\"/>",$msg);
$msg=str_replace(".korol.","<img src=\"sm/smiles/korol.gif\" alt=\".korol.\"/>",$msg);
$msg=str_replace(".kpfe.","<img src=\"sm/smiles/kpfe.gif\" alt=\".kpfe.\"/>",$msg);
$msg=str_replace(".loving2.","<img src=\"sm/smiles/loving2.gif\" alt=\".loving2.\"/>",$msg);
$msg=str_replace(".man.","<img src=\"sm/smiles/man.gif\" alt=\".man.\"/>",$msg);
$msg=str_replace(".monety.","<img src=\"sm/smiles/monety.gif\" alt=\".monety.\"/>",$msg);
$msg=str_replace(".new.","<img src=\"sm/smiles/new.gif\" alt=\".new.\"/>",$msg);
$msg=str_replace(".no.","<img src=\"sm/smiles/no.gif\" alt=\".no.\"/>",$msg);
$msg=str_replace(".palc.","<img src=\"sm/smiles/palc.gif\" alt=\".palc.\"/>",$msg);
$msg=str_replace(".pismo.","<img src=\"sm/smiles/pismo.gif\" alt=\".pismo.\"/>",$msg);
$msg=str_replace(".pismo2.","<img src=\"sm/smiles/pismo2.gif\" alt=\".pismo2.\"/>",$msg);
$msg=str_replace(".pismo3.","<img src=\"sm/smiles/pismo3.gif\" alt=\".pismo3.\"/>",$msg);
$msg=str_replace(".privet.","<img src=\"sm/smiles/privet.gif\" alt=\".privet.\"/>",$msg);
$msg=str_replace(".read.","<img src=\"sm/smiles/read.gif\" alt=\".read.\"/>",$msg);
$msg=str_replace(".risuyu.","<img src=\"sm/smiles/risuyu.gif\" alt=\".risuyu.\"/>",$msg);
$msg=str_replace(".roga.","<img src=\"sm/smiles/roga.gif\" alt=\".roga.\"/>",$msg);
$msg=str_replace(".romashka.","<img src=\"sm/smiles/romashka.gif\" alt=\".romashka.\"/>",$msg);
$msg=str_replace(".roza.","<img src=\"sm/smiles/roza.gif\" alt=\".roza.\"/>",$msg);
$msg=str_replace(".roza2.","<img src=\"sm/smiles/roza2.gif\" alt=\".roza2.\"/>",$msg);
$msg=str_replace(".roza3.","<img src=\"sm/smiles/roza3.gif\" alt=\".roza3.\"/>",$msg);
$msg=str_replace(".russia.","<img src=\"sm/smiles/russia.gif\" alt=\".russia.\"/>",$msg);
$msg=str_replace(".sdayus.","<img src=\"sm/smiles/sdayus.gif\" alt=\".sdayus.\"/>",$msg);
$msg=str_replace(".stakan.","<img src=\"sm/smiles/stakan.gif\" alt=\".stakan.\"/>",$msg);
$msg=str_replace(".star.","<img src=\"sm/smiles/star.gif\" alt=\".star.\"/>",$msg);
$msg=str_replace(".strelka.","<img src=\"sm/smiles/strelka.gif\" alt=\".strelka.\"/>",$msg);
$msg=str_replace(".tabl.","<img src=\"sm/smiles/tabl.gif\" alt=\".tabl.\"/>",$msg);
$msg=str_replace(".telek.","<img src=\"sm/smiles/telek.gif\" alt=\".telek.\"/>",$msg);
$msg=str_replace(".topor.","<img src=\"sm/smiles/topor.gif\" alt=\".topor.\"/>",$msg);
$msg=str_replace(".tree.","<img src=\"sm/smiles/tree.gif\" alt=\".tree.\"/>",$msg);
$msg=str_replace(".vopr.","<img src=\"sm/smiles/vopr.gif\" alt=\".vopr.\"/>",$msg);
$msg=str_replace(".world.","<img src=\"sm/smiles/world.gif\" alt=\".world.\"/>",$msg);
$msg=str_replace(".yo.","<img src=\"sm/smiles/yo.gif\" alt=\".yo.\"/>",$msg);
$msg=str_replace(".zlye.","<img src=\"sm/smiles/zlye.gif\" alt=\".zlye.\"/>",$msg);
$msg=str_replace(".zont.","<img src=\"sm/smiles/zont.gif\" alt=\".zont.\"/>",$msg);
$msg=str_replace(".zuby.","<img src=\"sm/smiles/zuby.gif\" alt=\".zuby.\"/>",$msg);
$msg=str_replace(".zvonyat.","<img src=\"sm/smiles/zvonyat.gif\" alt=\".zvonyat.\"/>",$msg);
$msg=str_replace(".zzz.","<img src=\"sm/smiles/zzz.gif\" alt=\".zzz.\"/>",$msg);
$msg=str_replace(".banan.","<img src=\"sm/smiles/banan.gif\" alt=\".banan.\"/>",$msg);
$msg=str_replace(".bebe.","<img src=\"sm/smiles/bebe.gif\" alt=\".bebe.\"/>",$msg);
$msg=str_replace(".beer.","<img src=\"sm/smiles/beer.gif\" alt=\".beer.\"/>",$msg);
$msg=str_replace(".box.","<img src=\"sm/smiles/box.gif\" alt=\".box.\"/>",$msg);
$msg=str_replace(".chmok2.","<img src=\"sm/smiles/chmok2.gif\" alt=\".chmok2.\"/>",$msg);
$msg=str_replace(".chmoks.","<img src=\"sm/smiles/chmoks.gif\" alt=\".chmoks.\"/>",$msg);
$msg=str_replace(".condom.","<img src=\"sm/smiles/condom.gif\" alt=\".condom.\"/>",$msg);
$msg=str_replace(".drink.","<img src=\"sm/smiles/drink.gif\" alt=\".drink.\"/>",$msg);
$msg=str_replace(".duel.","<img src=\"sm/smiles/duel.gif\" alt=\".duel.\"/>",$msg);
$msg=str_replace(".dum2.","<img src=\"sm/smiles/dum2.gif\" alt=\".dum2.\"/>",$msg);
$msg=str_replace(".dum3.","<img src=\"sm/smiles/dum3.gif\" alt=\".dum3.\"/>",$msg);
$msg=str_replace(".flip.","<img src=\"sm/smiles/flip.gif\" alt=\".flip.\"/>",$msg);
$msg=str_replace(".food.","<img src=\"sm/smiles/food.gif\" alt=\".food.\"/>",$msg);
$msg=str_replace(".fuck2.","<img src=\"sm/smiles/fuck2.gif\" alt=\".fuck2.\"/>",$msg);
$msg=str_replace(".ghost.","<img src=\"sm/smiles/ghost.gif\" alt=\".ghost.\"/>",$msg);
$msg=str_replace(".heart2.","<img src=\"sm/smiles/heart2.gif\" alt=\".heart2.\"/>",$msg);
$msg=str_replace(".hi2.","<img src=\"sm/smiles/hi2.gif\" alt=\".hi2.\"/>",$msg);
$msg=str_replace(".hmm.","<img src=\"sm/smiles/hmm.gif\" alt=\".hmm.\"/>",$msg);
$msg=str_replace(".hnyk.","<img src=\"sm/smiles/hnyk.gif\" alt=\".hnyk.\"/>",$msg);
$msg=str_replace(".ign.","<img src=\"sm/smiles/ign.gif\" alt=\".ign.\"/>",$msg);
$msg=str_replace(".idea.","<img src=\"sm/smiles/idea.gif\" alt=\".idea.\"/>",$msg);
$msg=str_replace(".tecsha.","<img src=\"sm/smiles/tecsha.gif\" alt=\".tecsha.\"/>",$msg);
$msg=str_replace(".hearts.","<img src=\"sm/smiles/hearts.gif\" alt=\".hearts.\"/>",$msg);
$msg=str_replace(".candy.","<img src=\"sm/smiles/candy.gif\" alt=\".candy.\"/>",$msg);
$msg=str_replace(".cens.","<img src=\"sm/smiles/cens.gif\" alt=\".cens.\"/>",$msg);
$msg=str_replace(".chupa.","<img src=\"sm/smiles/chupa.gif\" alt=\".chupa.\"/>",$msg);
$msg=str_replace(".cry.","<img src=\"sm/smiles/cry.gif\" alt=\".cry.\"/>",$msg);
$msg=str_replace(".butylka.","<img src=\"sm/smiles/butylka.gif\" alt=\".butylka.\"/>",$msg);
$msg=str_replace(".buhaem.","<img src=\"sm/smiles/buhaem.gif\" alt=\".buhaem.\"/>",$msg);
$msg=str_replace(".money2.","<img src=\"sm/smiles/money2.gif\" alt=\".money2.\"/>",$msg);
$msg=str_replace(".money.","<img src=\"sm/smiles/money.gif\" alt=\".money.\"/>",$msg);
$msg=str_replace(".hitrost.","<img src=\"sm/smiles/hitrost.gif\" alt=\".hitrost.\"/>",$msg);
}
}
}
}
}
}
}
//������, ��������� ������
if($moder) {
$msg=str_replace(".4moks.","<img src=\"sm/smiles/4moks.gif\" alt=\".4moks.\"/>",$msg);
$msg=str_replace(".aaa.","<img src=\"sm/smiles/aaa.gif\" alt=\".aaa.\"/>",$msg);
$msg=str_replace(".bann.","<img src=\"sm/smiles/bann.gif\" alt=\".bann.\"/>",$msg);
$msg=str_replace(".cvetochek.","<img src=\"sm/smiles/cvetochek.gif\" alt=\".cvetochek.\"/>",$msg);
$msg=str_replace(".dead.","<img src=\"sm/smiles/dead.gif\" alt=\".dead.\"/>",$msg);
$msg=str_replace(".gey.","<img src=\"sm/smiles/gey.gif\" alt=\".gey.\"/>",$msg);
$msg=str_replace(".idu.","<img src=\"sm/smiles/idu.gif\" alt=\".idu.\"/>",$msg);
$msg=str_replace(".kill.","<img src=\"sm/smiles/kill.gif\" alt=\".kill.\"/>",$msg);
$msg=str_replace(".lozung.","<img src=\"sm/smiles/lozung.gif\" alt=\".lozung.\"/>",$msg);
$msg=str_replace(".medik.","<img src=\"sm/smiles/medik.gif\" alt=\".medik.\"/>",$msg);
$msg=str_replace(".nunu.","<img src=\"sm/smiles/nunu.gif\" alt=\".nunu.\"/>",$msg);
$msg=str_replace(".otk.","<img src=\"sm/smiles/otk.gif\" alt=\".otk.\"/>",$msg);
$msg=str_replace(".sigareta.","<img src=\"sm/smiles/sigareta.gif\" alt=\".sigareta.\"/>",$msg);
$msg=str_replace(".Thumbs.","<img src=\"sm/smiles/Thumbs.db\" alt=\".Thumbs.\"/>",$msg);
$msg=str_replace(".uwelnafig.","<img src=\"sm/smiles/uwelnafig.gif\" alt=\".uwelnafig.\"/>",$msg);
$msg=str_replace(".vau2.","<img src=\"sm/smiles/vau2.gif\" alt=\".vau2.\"/>",$msg);
$msg=str_replace(".vip.","<img src=\"sm/smiles/vip.gif\" alt=\".vip.\"/>",$msg);
$msg=str_replace(".wpion.","<img src=\"sm/smiles/wpion.gif\" alt=\".wpion.\"/>",$msg);
$msg=str_replace(".warning.","<img src=\"sm/smiles/warning.gif\" alt=\".warning.\"/>",$msg);
$msg=str_replace(".dont.","<img src=\"sm/smiles/dont.gif\" alt=\".dont.\"/>",$msg);
$msg=str_replace(".ban.","<img src=\"sm/smiles/ban.gif\" alt=\".ban.\"/>",$msg);
$msg=str_replace(".killer.","<img src=\"sm/smiles/killer.gif\" alt=\".killer.\"/>",$msg);
$msg=str_replace(".killer2.","<img src=\"sm/smiles/killer2.gif\" alt=\".killer2.\"/>",$msg);
$msg=str_replace(".killer3.","<img src=\"sm/smiles/killer3.gif\" alt=\".killer3.\"/>",$msg);
}
//������ ��� �������
if($admin) {
$msg=str_replace(".admin.","<img src=\"sm/smiles/admin.gif\" alt=\".admin.\"/>",$msg);
$msg=str_replace(".alc.","<img src=\"sm/smiles/alc.gif\" alt=\".alc.\"/>",$msg);
$msg=str_replace(".blya.","<img src=\"sm/smiles/blya.gif\" alt=\".blya.\"/>",$msg);
$msg=str_replace(".chapaev.","<img src=\"sm/smiles/chapaev.gif\" alt=\".chapaev.\"/>",$msg);
$msg=str_replace(".fuckyou.","<img src=\"sm/smiles/fuckyou.gif\" alt=\".fuckyou.\"/>",$msg);
$msg=str_replace(".invalid.","<img src=\"sm/smiles/invalid.gif\" alt=\".invalid.\"/>",$msg);
$msg=str_replace(".khekhe.","<img src=\"sm/smiles/khekhe.gif\" alt=\".khekhe.\"/>",$msg);
$msg=str_replace(".pop.","<img src=\"sm/smiles/pop.gif\" alt=\".pop.\"/>",$msg);
$msg=str_replace(".prizrak.","<img src=\"sm/smiles/prizrak.gif\" alt=\".prizrak.\"/>",$msg);
$msg=str_replace(".solnca.","<img src=\"sm/smiles/solnca.gif\" alt=\".solnca.\"/>",$msg);
$msg=str_replace(".trah.","<img src=\"sm/smiles/trah.gif\" alt=\".trah.\"/>",$msg);
$msg=str_replace(".upl.","<img src=\"sm/smiles/upl.gif\" alt=\".upl.\"/>",$msg);
$msg=str_replace(".xakep.","<img src=\"sm/smiles/xakep.gif\" alt=\".Xakep here!.\"/>",$msg);
}
$msg=str_replace("$","$$",$msg);
$msg = eregi_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a href=\"\\0\">\\0</a>", $msg);
?>