Вход Регистрация
Файл: l2ps_v5/itog/ini.php
Строк: 149
<?php

/*
- - - - -
DATABASE SERVER L2pirates.ru
- - - - -
*/

$db_host="localhost"//хост
$db_user="l2ps"//пользователь
$db_table="l2ps"//база
$db_pass="l2ps"//пароль



function bb_code($message){
$modified strtr($message, array(
 
'[b]'=>'<b>',
 
'[/b]'=>'</b>',
  
'[u]'=>'<u>',
 
'[/u]'=>'</u>',
  
'[i]'=>'<i>',
 
'[/i]'=>'</i>',
 
'[br]'=>'<br>',
  
'[/br]'=>'</br>',

    ));
    return 
$modified;
}

function 
replase_smile($variables){
$modified strtr($variables, array(
        
'.1.'=>'<img src="l2pic/smiles/acute.gif"/>',
        
'.2.'=>'<img src="l2pic/smiles/aggressive.gif"/>',
        
'.3.'=>'<img src="l2pic/smiles/agree.gif"/>',
        
'.4.'=>'<img src="l2pic/smiles/air_kiss.gif"/>',
        
'.5.'=>'<img src="l2pic/smiles/angel.gif"/>',
        
'.6.'=>'<img src="l2pic/smiles/bad.gif"/>',
        
'.7.'=>'<img src="l2pic/smiles/beach.gif"/>',
        
'.8.'=>'<img src="l2pic/smiles/beee.gif"/>',
        
'.9.'=>'<img src="l2pic/smiles/beta.gif"/>',
        
'.10.'=>'<img src="l2pic/smiles/blush.gif"/>',
        
'.11.'=>'<img src="l2pic/smiles/big_boss.gif"/>',
        
'.12.'=>'<img src="l2pic/smiles/black_eye.gif"/>',
        
'.13.'=>'<img src="l2pic/smiles/blum2.gif"/>',
        
'.14.'=>'<img src="l2pic/smiles/blum3.gif"/>',
        
'.15.'=>'<img src="l2pic/smiles/blush2.gif"/>',
        
'.16.'=>'<img src="l2pic/smiles/boast.gif"/>',
        
'.17.'=>'<img src="l2pic/smiles/boredom.gif"/>',
        
'.18.'=>'<img src="l2pic/smiles/censored.gif"/>',
        
'.19.'=>'<img src="l2pic/smiles/brunette.gif"/>',
        
'.20.'=>'<img src="l2pic/smiles/clapping.gif"/>',
        
'.21.'=>'<img src="l2pic/smiles/comando.gif"/>',
        
'.22.'=>'<img src="l2pic/smiles/curtsey.gif"/>',
        
'.23.'=>'<img src="l2pic/smiles/dance.gif"/>',
        
'.24.'=>'<img src="l2pic/smiles/dance2.gif"/>',
        
'.25.'=>'<img src="l2pic/smiles/dance3.gif"/>',
        
'.26.'=>'<img src="l2pic/smiles/dance4.gif"/>',
        
'.27.'=>'<img src="l2pic/smiles/diablo.gif"/>',
        
'.28.'=>'<img src="l2pic/smiles/drinks.gif"/>',
        
'.29.'=>'<img src="l2pic/smiles/flirt.gif"/>',
        
'.30.'=>'<img src="l2pic/smiles/friends.gif"/>',
        
'.31.'=>'<img src="l2pic/smiles/girl_blum.gif"/>',
        
'.32.'=>'<img src="l2pic/smiles/girl_cray.gif"/>',
        
'.33.'=>'<img src="l2pic/smiles/girl_dance.gif"/>',
        
'.34.'=>'<img src="l2pic/smiles/give_heart.gif"/><',
        
'.35.'=>'<img src="l2pic/smiles/good.gif"/>',
        
'.36.'=>'<img src="l2pic/smiles/heat.gif"/>',
        
'.37.'=>'<img src="l2pic/smiles/help.gif"/>',
        
'.38.'=>'<img src="l2pic/smiles/hi.gif"/>',
        
'.39.'=>'<img src="l2pic/smiles/hysteric.gif"/>',
        
'.40.'=>'<img src="l2pic/smiles/kiss.gif"/>',
        
'.41.'=>'<img src="l2pic/smiles/lazy.gif"/>',
        
'.42.'=>'<img src="l2pic/smiles/mda.gif"/>',
        
'.43.'=>'<img src="l2pic/smiles/meeting.gif"/>',
        
'.44.'=>'<img src="l2pic/smiles/moil.gif"/>',
        
'.45.'=>'<img src="l2pic/smiles/music.gif"/>',
        
'.46.'=>'<img src="l2pic/smiles/new_russian.gif"/>',
        
'.47.'=>'<img src="l2pic/smiles/ok.gif"/>',
        
'.48.'=>'<img src="l2pic/smiles/padonak.gif"/>',
        
'.49.'=>'<img src="l2pic/smiles/pardon.gif"/>',
        
'.50.'=>'<img src="l2pic/smiles/party.gif"/>',
        
'.51.'=>'<img src="l2pic/smiles/pioneer.gif"/>',
        
'.52.'=>'<img src="l2pic/smiles/rap.gif"/>',
        
'.53.'=>'<img src="l2pic/smiles/read.gif"/>',
        
'.54.'=>'<img src="l2pic/smiles/rofl.gif"/>',
        
'.55.'=>'<img src="l2pic/smiles/russian.gif"/>',
        
'.56.'=>'<img src="l2pic/smiles/sad.gif"/>',
        
'.57.'=>'<img src="l2pic/smiles/scare.gif"/>',
        
'.58.'=>'<img src="l2pic/smiles/sclerosis.gif"/>',
        
'.59.'=>'<img src="l2pic/smiles/search.gif"/>',
        
'.60.'=>'<img src="l2pic/smiles/secret.gif"/>',
        
'.61.'=>'<img src="l2pic/smiles/smoke.gif"/>',
        
'.62.'=>'<img src="l2pic/smiles/sorry.gif"/>',
        
'.63.'=>'<img src="l2pic/smiles/spruce_up.gif"/>',
        
'.64.'=>'<img src="l2pic/smiles/stink.gif"/>',
        
'.65.'=>'<img src="l2pic/smiles/stop.gif"/>',
        
'.66.'=>'<img src="l2pic/smiles/superman.gif"/>',
        
'.67.'=>'<img src="l2pic/smiles/thank_you.gif"/>',
        
'.68.'=>'<img src="l2pic/smiles/umnik.gif"/>',
        
'.69.'=>'<img src="l2pic/smiles/victory.gif"/>',
        
'.70.'=>'<img src="l2pic/smiles/yahoo.gif"/>',
        
'.71.'=>'<img src="l2pic/smiles/yes3.gif"/>',
        
'.72.'=>'<img src="l2pic/smiles/yu.gif"/>',
        
'.73.'=>'<img src="l2pic/smiles/act.gif"/>',
        
'.74.'=>'<img src="l2pic/smiles/admin.gif"/>',
        
'.75.'=>'<img src="l2pic/smiles/af.gif"/>',
        
'.76.'=>'<img src="l2pic/smiles/ag.gif"/>',
        
'.77.'=>'<img src="l2pic/smiles/ai.gif"/>',
        
'.78.'=>'<img src="l2pic/smiles/alkawi.gif"/>',
        
'.79.'=>'<img src="l2pic/smiles/atata.gif"/>',
        
'.80.'=>'<img src="l2pic/smiles/aw.gif"/>',
        
'.81.'=>'<img src="l2pic/smiles/ba.gif"/>',
        
'.82.'=>'<img src="l2pic/smiles/baby.gif"/>',
        
'.83.'=>'<img src="l2pic/smiles/ban.gif"/>',
        
'.84.'=>'<img src="l2pic/smiles/banan.gif"/>',
        
'.85.'=>'<img src="l2pic/smiles/bann.gif"/>',
        
'.86.'=>'<img src="l2pic/smiles/bb.gif"/>',
        
'.87.'=>'<img src="l2pic/smiles/bg.gif"/>',
        
'.88.'=>'<img src="l2pic/smiles/blind.gif"/>',
        
'.89.'=>'<img src="l2pic/smiles/bm.gif"/>',
        
'.90.'=>'<img src="l2pic/smiles/cc.gif"/>',
        
'.91.'=>'<img src="l2pic/smiles/cl.gif"/>',
        
'.92.'=>'<img src="l2pic/smiles/cm.gif"/>',
        
'.93.'=>'<img src="l2pic/smiles/co.gif"/>',
        
'.94.'=>'<img src="l2pic/smiles/cq.gif"/>',
        
'.95.'=>'<img src="l2pic/smiles/cr.gif"/>',
        
'.96.'=>'<img src="l2pic/smiles/cry.gif"/>',
        
'.97.'=>'<img src="l2pic/smiles/cx.gif"/>',
        
'.98.'=>'<img src="l2pic/smiles/cy.gif"/>',
        
'.99.'=>'<img src="l2pic/smiles/dc.gif"/>',
        
'.100.'=>'<img src="l2pic/smiles/dd.gif"/>',
        
'.101.'=>'<img src="l2pic/smiles/de.gif"/>',
        
'.102.'=>'<img src="l2pic/smiles/dead.gif"/>',
        
'.103.'=>'<img src="l2pic/smiles/dev.gif"/>',
        
'.104.'=>'<img src="l2pic/smiles/di.gif"/>',
        
'.105.'=>'<img src="l2pic/smiles/dj.gif"/>',
        
'.106.'=>'<img src="l2pic/smiles/dm.gif"/>',
        
'.107.'=>'<img src="l2pic/smiles/do.gif"/>',
        
'.108.'=>'<img src="l2pic/smiles/dont.gif"/>',
        
'.109.'=>'<img src="l2pic/smiles/dq.gif"/>',
        
'.110.'=>'<img src="l2pic/smiles/dr.gif"/>',
        
'.111.'=>'<img src="l2pic/smiles/drink.gif"/>',
        
'.112.'=>'<img src="l2pic/smiles/drink2.gif"/>',
        
'.113.'=>'<img src="l2pic/smiles/ds.gif"/>',
        
'.114.'=>'<img src="l2pic/smiles/dt.gif"/>',
        
'.115.'=>'<img src="l2pic/smiles/du.gif"/>',
        
'.116.'=>'<img src="l2pic/smiles/duel.gif"/>',
        
'.117.'=>'<img src="l2pic/smiles/dv.gif"/>',
        
'.118.'=>'<img src="l2pic/smiles/dw.gif"/>',
        
'.119.'=>'<img src="l2pic/smiles/dx.gif"/>',
        
'.120.'=>'<img src="l2pic/smiles/dy.gif"/>',
        
'.121.'=>'<img src="l2pic/smiles/dz.gif"/>',
        
'.122.'=>'<img src="l2pic/smiles/ea.gif"/>',
        
'.123.'=>'<img src="l2pic/smiles/eat.gif"/>',
        
'.124.'=>'<img src="l2pic/smiles/eda.gif"/>',
        
'.125.'=>'<img src="l2pic/smiles/eek.gif"/>',
        
'.126.'=>'<img src="l2pic/smiles/elka.gif"/>',
        
'.127.'=>'<img src="l2pic/smiles/em.gif"/>',
        
'.128.'=>'<img src="l2pic/smiles/fig.gif"/>',
        
'.129.'=>'<img src="l2pic/smiles/fingal.gif"/>',
        
'.130.'=>'<img src="l2pic/smiles/fingal2.gif"/>',
        
'.131.'=>'<img src="l2pic/smiles/flip.gif"/>',
        
'.132.'=>'<img src="l2pic/smiles/focus.gif"/>',
        
'.133.'=>'<img src="l2pic/smiles/food.gif"/>',
        
'.134.'=>'<img src="l2pic/smiles/fack.gif"/>',
        
'.135.'=>'<img src="l2pic/smiles/fack2.gif"/>',
        
'.136.'=>'<img src="l2pic/smiles/fackyou.gif"/>',
        
'.137.'=>'<img src="l2pic/smiles/gey.gif"/>',
        
'.138.'=>'<img src="l2pic/smiles/ghost.gif"/>',
        
'.139.'=>'<img src="l2pic/smiles/girl_haha.gif"/>',
        
'.140.'=>'<img src="l2pic/smiles/girl_in_love.gif"/>',
        
'.141.'=>'<img src="l2pic/smiles/girl5.gif"/>',
        
'.142.'=>'<img src="l2pic/smiles/girl11.gif"/>',
        
'.143.'=>'<img src="l2pic/smiles/heart.gif"/>',
        
'.144.'=>'<img src="l2pic/smiles/heart2.gif"/>',
        
'.145.'=>'<img src="l2pic/smiles/heart3.gif"/>',
        
'.146.'=>'<img src="l2pic/smiles/hearts.gif"/>',
        
'.147.'=>'<img src="l2pic/smiles/hi2.gif"/>',
        
'.148.'=>'<img src="l2pic/smiles/hitrost.gif"/>',
        
'.149.'=>'<img src="l2pic/smiles/hmm.gif"/>',
        
'.150.'=>'<img src="l2pic/smiles/hnyk.gif"/>',
        
'.151.'=>'<img src="l2pic/smiles/hohol.gif"/>',
        
'.152.'=>'<img src="l2pic/smiles/huh.gif"/>',
        
'.153.'=>'<img src="l2pic/smiles/ign.gif"/>',
        
'.154.'=>'<img src="l2pic/smiles/idea.gif"/>',
        
'.155.'=>'<img src="l2pic/smiles/ill.gif"/>',
        
'.156.'=>'<img src="l2pic/smiles/inlove.gif"/>',
        
'.157.'=>'<img src="l2pic/smiles/invalid.gif"/>',
        
'.158.'=>'<img src="l2pic/smiles/jump.gif"/>',
        
'.159.'=>'<img src="l2pic/smiles/kill.gif"/>',
        
'.160.'=>'<img src="l2pic/smiles/killer.gif"/>',
        
'.161.'=>'<img src="l2pic/smiles/killer2.gif"/>',
        
'.162.'=>'<img src="l2pic/smiles/killer3.gif"/>',
        
'.163.'=>'<img src="l2pic/smiles/kisa.gif"/>',
        
'.164.'=>'<img src="l2pic/smiles/klas.gif"/>',
        
'.165.'=>'<img src="l2pic/smiles/kolco.gif"/>',
        
'.166.'=>'<img src="l2pic/smiles/korol.gif"/>',
        
'.167.'=>'<img src="l2pic/smiles/kruzhka.gif"/>',
        
'.168.'=>'<img src="l2pic/smiles/love.gif"/>',
        
'.169.'=>'<img src="l2pic/smiles/love2.gif"/>',
        
'.170.'=>'<img src="l2pic/smiles/love5.gif"/>',
        
'.170.'=>'<img src="l2pic/smiles/loveyou.gif"/>',
        
'.171.'=>'<img src="l2pic/smiles/lozung.gif"/>',
        
'.172.'=>'<img src="l2pic/smiles/man.gif"/>',
        
'.173.'=>'<img src="l2pic/smiles/monety.gif"/>',
        
'.174.'=>'<img src="l2pic/smiles/money.gif"/>',
        
'.175.'=>'<img src="l2pic/smiles/money2.gif"/>',
        
'.176.'=>'<img src="l2pic/smiles/new.gif"/>',
        
'.177.'=>'<img src="l2pic/smiles/no.gif"/>',
        
'.178.'=>'<img src="l2pic/smiles/nono.gif"/>',
        
'.179.'=>'<img src="l2pic/smiles/nunu.gif"/>',
        
'.180.'=>'<img src="l2pic/smiles/oops.gif"/>',
        
'.181.'=>'<img src="l2pic/smiles/otk.gif"/>',
        
'.182.'=>'<img src="l2pic/smiles/pa4ka.gif"/>',
        
'.183.'=>'<img src="l2pic/smiles/palc.gif"/>',
        
'.184.'=>'<img src="l2pic/smiles/pismo.gif"/>',
        
'.185.'=>'<img src="l2pic/smiles/pismo2.gif"/>',
        
'.186.'=>'<img src="l2pic/smiles/pivo.gif"/>',
        
'.187.'=>'<img src="l2pic/smiles/pizza.gif"/>',
        
'.188.'=>'<img src="l2pic/smiles/pop.gif"/>',
        
'.189.'=>'<img src="l2pic/smiles/preved.gif"/>',
        
'.190.'=>'<img src="l2pic/smiles/privet.gif"/>',
        
'.191.'=>'<img src="l2pic/smiles/prizrak.gif"/>',
        
'.192.'=>'<img src="l2pic/smiles/pya.gif"/>',
        
'.193.'=>'<img src="l2pic/smiles/rain.gif"/>',
        
'.194.'=>'<img src="l2pic/smiles/risuyu.gif"/>',
        
'.195.'=>'<img src="l2pic/smiles/roga.gif"/>',
        
'.196.'=>'<img src="l2pic/smiles/sdaus.gif"/>',
        
'.197.'=>'<img src="l2pic/smiles/sigareta.gif"/>',
        
'.198.'=>'<img src="l2pic/smiles/skleroz.gif"/>',
        
'.199.'=>'<img src="l2pic/smiles/sleep.gif"/>',
        
'.200.'=>'<img src="l2pic/smiles/strelka.gif"/>',
        
'.201.'=>'<img src="l2pic/smiles/susel.gif"/>',
        
'.202.'=>'<img src="l2pic/smiles/tabl.gif"/>',
        
'.203.'=>'<img src="l2pic/smiles/telek.gif"/>',
        
'.204.'=>'<img src="l2pic/smiles/tongue.gif"/>',
        
'.205.'=>'<img src="l2pic/smiles/topor.gif"/>',
        
'.206.'=>'<img src="l2pic/smiles/toy.gif"/>',
        
'.207.'=>'<img src="l2pic/smiles/toy2.gif"/>',
        
'.208.'=>'<img src="l2pic/smiles/tree.gif"/>',
        
'.209.'=>'<img src="l2pic/smiles/tv.gif"/>',
        
'.210.'=>'<img src="l2pic/smiles/vgubki.gif"/>',
        
'.211.'=>'<img src="l2pic/smiles/vino.gif"/>',
        
'.212.'=>'<img src="l2pic/smiles/vip.gif"/>',
        
'.213.'=>'<img src="l2pic/smiles/vis.gif"/>',
        
'.214.'=>'<img src="l2pic/smiles/vopr.gif"/>',
        
'.215.'=>'<img src="l2pic/smiles/vopros.gif"/>',
        
'.216.'=>'<img src="l2pic/smiles/warning.gif"/>',
        
'.217.'=>'<img src="l2pic/smiles/woko.gif"/>',
        
'.218.'=>'<img src="l2pic/smiles/world.gif"/>',
        
'.219.'=>'<img src="l2pic/smiles/wpion.gif"/>',
        
'.220.'=>'<img src="l2pic/smiles/xakep.gif"/>',
        
'.221.'=>'<img src="l2pic/smiles/yo.gif"/>',
        
'.222.'=>'<img src="l2pic/smiles/zuby.gif"/>',
        
'.223.'=>'<img src="l2pic/smiles/zloi.gif"/>',
        
'.224.'=>'<img src="l2pic/smiles/zlye.gif"/>',
        
'.fish.'=>'<img src="l2pic/smiles/torg/fish.gif"/>',
        
'.coin.'=>'<img src="l2pic/money/coin.png"/>',
        
'.om.'=>'<img src="l2pic/smiles/torg/om.gif"/>',
        
'.adena.'=>'<img src="l2pic/money/aden.gif"/>',
        
'.aa.'=>'<img src="l2pic/money/aa.png"/>',
        
'.exp.'=>'<img src="l2pic/smiles/torg/sp.gif"/>',
        
'.sp.'=>'<img src="l2pic/smiles/torg/exp.gif"/>',
        
'.225.'=>'<img src="l2pic/smiles/2s/208.gif"/>',
        
'.226.'=>'<img src="l2pic/smiles/2s/210.gif"/>',
        
'.227.'=>'<img src="l2pic/smiles/2s/211.gif"/>',
        
'.228.'=>'<img src="l2pic/smiles/2s/212.gif"/>',
        
'.230.'=>'<img src="l2pic/smiles/2s/213.gif"/>',
        
'.231.'=>'<img src="l2pic/smiles/2s/214.gif"/>',
        
'.232.'=>'<img src="l2pic/smiles/2s/215.gif"/>',
        
'.233.'=>'<img src="l2pic/smiles/2s/216.gif"/>',
        
'.234.'=>'<img src="l2pic/smiles/2s/217.gif"/>',
        
'.235.'=>'<img src="l2pic/smiles/2s/218.gif"/>',
        
'.236.'=>'<img src="l2pic/smiles/2s/219.gif"/>',
        
'.237.'=>'<img src="l2pic/smiles/2s/220.gif"/>',
        
'.238.'=>'<img src="l2pic/smiles/2s/221.gif"/>',
        
'.239.'=>'<img src="l2pic/smiles/2s/223.gif"/>',
        
'.240.'=>'<img src="l2pic/smiles/2s/224.gif"/>',
        
'.241.'=>'<img src="l2pic/smiles/2s/225.gif"/>',
        
'.242.'=>'<img src="l2pic/smiles/2s/226.gif"/>',
        
'.243.'=>'<img src="l2pic/smiles/2s/227.gif"/>',
        
'.244.'=>'<img src="l2pic/smiles/2s/228.gif"/>',
        
'.245.'=>'<img src="l2pic/smiles/2s/229.gif"/>',
        
'.246.'=>'<img src="l2pic/smiles/2s/230.gif"/>',
        
'.247.'=>'<img src="l2pic/smiles/2s/231.gif"/>',
        
'.248.'=>'<img src="l2pic/smiles/2s/232.gif"/>',
        
'.249.'=>'<img src="l2pic/smiles/2s/233.gif"/>',
        
'.250.'=>'<img src="l2pic/smiles/2s/234.gif"/>',
        
'.251.'=>'<img src="l2pic/smiles/2s/235.gif"/>',
        
'.252.'=>'<img src="l2pic/smiles/2s/236.gif"/>',
        
'.253.'=>'<img src="l2pic/smiles/2s/237.gif"/>',
        
'.254.'=>'<img src="l2pic/smiles/2s/238.gif"/>',
        
'.255.'=>'<img src="l2pic/smiles/2s/239.gif"/>',
        
'.256.'=>'<img src="l2pic/smiles/2s/240.gif"/>',
        
'.257.'=>'<img src="l2pic/smiles/2s/241.gif"/>',
        
'.258.'=>'<img src="l2pic/smiles/2s/242.gif"/>',
        
'.259.'=>'<img src="l2pic/smiles/2s/243.gif"/>',
        
'.260.'=>'<img src="l2pic/smiles/2s/244.gif"/>',
        
'.261.'=>'<img src="l2pic/smiles/2s/245.gif"/>',
        
'.262.'=>'<img src="l2pic/smiles/2s/246.gif"/>',
        
'.263.'=>'<img src="l2pic/smiles/2s/247.gif"/>',
        
'.264.'=>'<img src="l2pic/smiles/2s/248.gif"/>',
        
'.265.'=>'<img src="l2pic/smiles/2s/249.gif"/>',
        
'.266.'=>'<img src="l2pic/smiles/2s/250.gif"/>',
        
'.267.'=>'<img src="l2pic/smiles/2s/251.gif"/>',
        
'.268.'=>'<img src="l2pic/smiles/2s/252.gif"/>',
        
'.269.'=>'<img src="l2pic/smiles/2s/253.gif"/>',
        
'.270.'=>'<img src="l2pic/smiles/2s/254.gif"/>',
        
'.271.'=>'<img src="l2pic/smiles/2s/255.gif"/>',
        
'.272.'=>'<img src="l2pic/smiles/2s/256.gif"/>',
        
'.273.'=>'<img src="l2pic/smiles/2s/257.gif"/>',
        
'.274.'=>'<img src="l2pic/smiles/2s/258.gif"/>',
        
'.275.'=>'<img src="l2pic/smiles/2s/259.gif"/>',
        
'.276.'=>'<img src="l2pic/smiles/2s/260.gif"/>',
        
'.277.'=>'<img src="l2pic/smiles/2s/261.gif"/>',
        
'.278.'=>'<img src="l2pic/smiles/2s/262.gif"/>',
        
'.279.'=>'<img src="l2pic/smiles/2s/263.gif"/>',
        
'.280.'=>'<img src="l2pic/smiles/2s/264.gif"/>',
        
'.281.'=>'<img src="l2pic/smiles/2s/265.gif"/>',
        
'.282.'=>'<img src="l2pic/smiles/2s/266.gif"/>',
        
'.283.'=>'<img src="l2pic/smiles/2s/267.gif"/>',
        
'.284.'=>'<img src="l2pic/smiles/2s/268.gif"/>',
        
'.285.'=>'<img src="l2pic/smiles/2s/269.gif"/>',
        
'.286.'=>'<img src="l2pic/smiles/2s/270.gif"/>',
        
'.287.'=>'<img src="l2pic/smiles/2s/271.gif"/>',
        
'.288.'=>'<img src="l2pic/smiles/2s/272.gif"/>',
        
'.289.'=>'<img src="l2pic/smiles/2s/273.gif"/>',
        
'.290.'=>'<img src="l2pic/smiles/2s/274.gif"/>',
        
'.291.'=>'<img src="l2pic/smiles/2s/275.gif"/>',
        
'.292.'=>'<img src="l2pic/smiles/2s/276.gif"/>',
        
'.293.'=>'<img src="l2pic/smiles/2s/277.gif"/>',
        
'.294.'=>'<img src="l2pic/smiles/2s/278.gif"/>',
        
'.295.'=>'<img src="l2pic/smiles/2s/279.gif"/>',
        
'.296.'=>'<img src="l2pic/smiles/2s/280.gif"/>',
        
'.297.'=>'<img src="l2pic/smiles/2s/281.gif"/>',
        
'.298.'=>'<img src="l2pic/smiles/2s/282.gif"/>',
        
'.299.'=>'<img src="l2pic/smiles/2s/283.gif"/>',
        
'.300.'=>'<img src="l2pic/smiles/2s/284.gif"/>',
        
'.301.'=>'<img src="l2pic/smiles/2s/285.gif"/>',
        
'.302.'=>'<img src="l2pic/smiles/2s/286.gif"/>',
        
'.303.'=>'<img src="l2pic/smiles/2s/287.gif"/>',
        
'.304.'=>'<img src="l2pic/smiles/2s/288.gif"/>',
        
'.305.'=>'<img src="l2pic/smiles/2s/289.gif"/>',
        
'.306.'=>'<img src="l2pic/smiles/2s/290.gif"/>',
        
'.307.'=>'<img src="l2pic/smiles/2s/291.gif"/>',
        
'.308.'=>'<img src="l2pic/smiles/2s/292.gif"/>',
        
'.309.'=>'<img src="l2pic/smiles/2s/293.gif"/>',
        
'.310.'=>'<img src="l2pic/smiles/2s/294.gif"/>',
        
'.311.'=>'<img src="l2pic/smiles/2s/295.gif"/>',
        
'.312.'=>'<img src="l2pic/smiles/2s/296.gif"/>',
        
'.313.'=>'<img src="l2pic/smiles/2s/297.gif"/>',
        
'.314.'=>'<img src="l2pic/smiles/2s/298.gif"/>',
        
'.315.'=>'<img src="l2pic/smiles/2s/299.gif"/>',
        
'.316.'=>'<img src="l2pic/smiles/2s/300.gif"/>',
        
'.317.'=>'<img src="l2pic/smiles/2s/301.gif"/>',
        
'.318.'=>'<img src="l2pic/smiles/2s/302.gif"/>',
        
'.319.'=>'<img src="l2pic/smiles/2s/303.gif"/>',
        
'.320.'=>'<img src="l2pic/smiles/2s/304.gif"/>',
        
'.321.'=>'<img src="l2pic/smiles/2s/305.gif"/>',
        
'.322.'=>'<img src="l2pic/smiles/2s/306.gif"/>',
        
'.323.'=>'<img src="l2pic/smiles/2s/307.gif"/>',
        
'.324.'=>'<img src="l2pic/smiles/2s/308.gif"/>',
        
'.325.'=>'<img src="l2pic/smiles/2s/309.gif"/>',
        
'.326.'=>'<img src="l2pic/smiles/2s/310.gif"/>',
        
'.327.'=>'<img src="l2pic/smiles/2s/311.gif"/>',
        
'.328.'=>'<img src="l2pic/smiles/2s/312.gif"/>',
        
'.329.'=>'<img src="l2pic/smiles/2s/312.gif"/>',
        
'.330.'=>'<img src="l2pic/smiles/2s/314.gif"/>',
        
'.331.'=>'<img src="l2pic/smiles/2s/315.gif"/>',
        
'.332.'=>'<img src="l2pic/smiles/2s/316.gif"/>',
        
'.333.'=>'<img src="l2pic/smiles/2s/217.gif"/>',
        
'.334.'=>'<img src="l2pic/smiles/2s/318.gif"/>',
        
'.335.'=>'<img src="l2pic/smiles/2s/319.gif"/>',
        
'.336.'=>'<img src="l2pic/smiles/2s/320.gif"/>',
        
'.337.'=>'<img src="l2pic/smiles/spanch/1.gif"/>',
        
'.338.'=>'<img src="l2pic/smiles/spanch/10.gif"/>',
        
'.339.'=>'<img src="l2pic/smiles/spanch/11.gif"/>',
        
'.340.'=>'<img src="l2pic/smiles/spanch/12.gif"/>',
        
'.341.'=>'<img src="l2pic/smiles/spanch/13.gif"/>',
        
'.342.'=>'<img src="l2pic/smiles/spanch/2.gif"/>',
        
'.343.'=>'<img src="l2pic/smiles/spanch/3.gif"/>',
        
'.344.'=>'<img src="l2pic/smiles/spanch/4.gif"/>',
        
'.345.'=>'<img src="l2pic/smiles/spanch/5.gif"/>',
        
'.346.'=>'<img src="l2pic/smiles/spanch/6.gif"/>',
        
'.347.'=>'<img src="l2pic/smiles/spanch/7.gif"/>',
        
'.348.'=>'<img src="l2pic/smiles/spanch/8.gif"/>',
        
'.349.'=>'<img src="l2pic/smiles/spanch/9.gif"/>',
        
'.350.'=>'<img src="l2pic/smiles/pig/1.gif"/>',
        
'.351.'=>'<img src="l2pic/smiles/pig/10.gif"/>',
        
'.352.'=>'<img src="l2pic/smiles/pig/12.gif"/>',
        
'.353.'=>'<img src="l2pic/smiles/pig/13.gif"/>',
        
'.354.'=>'<img src="l2pic/smiles/pig/14.gif"/>',
        
'.355.'=>'<img src="l2pic/smiles/pig/15.gif"/>',
        
'.356.'=>'<img src="l2pic/smiles/pig/16.gif"/>',
        
'.357.'=>'<img src="l2pic/smiles/pig/17.gif"/>',
        
'.358.'=>'<img src="l2pic/smiles/pig/18.gif"/>',
        
'.359.'=>'<img src="l2pic/smiles/pig/19.gif"/>',
        
'.360.'=>'<img src="l2pic/smiles/pig/2.gif"/>',
        
'.361.'=>'<img src="l2pic/smiles/pig/20.gif"/>',
        
'.362.'=>'<img src="l2pic/smiles/pig/21.gif"/>',
        
'.363.'=>'<img src="l2pic/smiles/pig/22.gif"/>',
        
'.364.'=>'<img src="l2pic/smiles/pig/23.gif"/>',
        
'.365.'=>'<img src="l2pic/smiles/pig/24.gif"/>',
        
'.366.'=>'<img src="l2pic/smiles/pig/25.gif"/>',
        
'.367.'=>'<img src="l2pic/smiles/pig/26.gif"/>',
        
'.368.'=>'<img src="l2pic/smiles/pig/27.gif"/>',
        
'.369.'=>'<img src="l2pic/smiles/pig/28.gif"/>',
        
'.370.'=>'<img src="l2pic/smiles/pig/29.gif"/>',
        
'.371.'=>'<img src="l2pic/smiles/pig/3.gif"/>',
        
'.372.'=>'<img src="l2pic/smiles/pig/30.gif"/>',
        
'.373.'=>'<img src="l2pic/smiles/pig/31.gif"/>',
        
'.374.'=>'<img src="l2pic/smiles/pig/32.gif"/>',
        
'.375.'=>'<img src="l2pic/smiles/pig/33.gif"/>',
        
'.376.'=>'<img src="l2pic/smiles/pig/34.gif"/>',
        
'.377.'=>'<img src="l2pic/smiles/pig/35.gif"/>',
        
'.378.'=>'<img src="l2pic/smiles/pig/36.gif"/>',
        
'.379.'=>'<img src="l2pic/smiles/pig/37.gif"/>',
        
'.380.'=>'<img src="l2pic/smiles/pig/38.gif"/>',
        
'.381.'=>'<img src="l2pic/smiles/pig/4.gif"/>',
        
'.382.'=>'<img src="l2pic/smiles/pig/5.gif"/>',
        
'.383.'=>'<img src="l2pic/smiles/pig/6.gif"/>',
        
'.384.'=>'<img src="l2pic/smiles/pig/7.gif"/>',
        
'.385.'=>'<img src="l2pic/smiles/pig/8.gif"/>',
        
'.386.'=>'<img src="l2pic/smiles/pig/9.gif"/>',
        
    ));
    return 
$modified;
}


$connect = @ mysql_pconnect($db_host$db_user$db_pass) or die('DdoS Atakc');
mysql_select_db($db_table) or die('cannot connect to db');
mysql_query("SET NAMES 'utf8'"$connect);

//include "$_SERVER[DOCUMENT_ROOT]/ks_antiddos.php";
//$ksa = new ks_antiddos();
//$ksa->doit(3,2);; 


##################### Класс борьбы с SQL атаками ################
class InitVars {
# Недопустимые слова в запросахINSERT
        
var $deny_words = array('UNION','CHAR','INSERT','DELETE','SELECT','UPDATE','GROUP','ORDER','BENCHMARK','union','char','insert','delete','select','update','group','order','benchmark');

function 
InitVars() {
}

# Метод конвентирует суперглобальные массивы $_POST, $_GET в перемнные
# Например : $_GET['psw'] будет переобразовано в $psw с тем же значением
function convertArray2Vars () {

        foreach(
$_GET as $_ind => $_val) {
                global $
$_ind;
                if(
is_array($$_ind)) $$_ind htmlspecialchars(stripslashes($_val));
        }

        foreach(
$_POST as $_ind => $_val) {
                global $
$_ind;
                if(
is_array($$_ind)) $$_ind htmlspecialchars(stripslashes($_val));

        }
}

# Метод проверяет $_GET и $_POST переменные на наличие опасных данных и SQL инъекций
function checkVars() {
        
//Проверка опасных данных.
        
foreach($_GET as $_ind => $_val) {
                        
$_GET[$_ind] = htmlspecialchars(stripslashes($_val));

                        
$exp explode(" ",$_GET[$_ind]);
                        foreach(
$exp as $ind => $val) {
                                if(
in_array($val,$this->deny_words)) $this->antihack("Запрещено!Доступ закрыт!<br> Ваш ip адресс помечен!");
                        }
        }

        foreach(
$_POST as $_ind => $_val) {
                        
$_POST[$_ind] = htmlspecialchars(stripslashes($_val));

                        
$exp explode(" ",$_POST[$_ind]);
                        foreach(
$exp as $ind => $val) {
                                if(
in_array($val,$this->deny_words)) $this->antihack("Запрещено!Доступ закрыт!<br> Ваш ip адресс помечен!");
                        }
        }

}

function 
antihack($msg) {
    echo 
'<font color="red"><b>Antihack error: </b></font>'.$msg.'<br>n';
    die;
}

}

$stop_injection = new InitVars();
$stop_injection->checkVars();
##################### Класс борьбы с SQL атаками ################






?>
Онлайн: 1
Реклама