Просмотр файла replace.php

Размер файла: 10.52Kb
<?
$name = preg_replace("#[(http|https|ftp)]+[(://)]+[0-9a-zA-Z_.-]+.[a-zA-Z]{2,4}#i","Я тупой рекламщик",$name); 

$gb['msg'] = preg_replace('/&#60;script&#62;(.*?)&#60;&#47;script&#62;/si','Я думал, что я МегоКулХацкер, но оказался полным лохом <img src="s/2.gif" alt="\1"/>',$gb['msg']);
///
$gb['msg'] = preg_replace('/<1>/si','<img src="s/1.gif" alt=":-)"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<2>/si','<img src="s/2.gif" alt=":-("/>',$gb['msg']);
$gb['msg'] = preg_replace('/<3>/si','<img src="s/3.gif" alt=":-["/>',$gb['msg']);
$gb['msg'] = preg_replace('/<4>/si','<img src="s/4.gif" alt="8-)"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<5>/si','<img src="s/5.gif" alt=":-E)"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<6>/si','<img src="s/6.gif" alt=":-P"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<7>/si','<img src="s/7.gif" alt="{beer}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<8>/si','<img src="s/8.gif" alt="{tee}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<9>/si','<img src="s/9.gif" alt="{smoke}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<10>/si','<img src="s/10.gif" alt="{vine}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<11>/si','<img src="s/11.gif" alt="{kiss}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<12>/si','<img src="s/12.gif" alt="{heard}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<13>/si','<img src="s/13.gif" alt=""/>',$gb['msg']);
$gb['msg'] = preg_replace('/<14>/si','<img src="s/14.gif" alt="{ok}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<15>/si','<img src="s/15.gif" alt="{no}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<16>/si','<img src="s/16.gif" alt="{cool}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<17>/si','<img src="s/17.gif" alt="{flower}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<18>/si','<img src="s/18.gif" alt="{cherry}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<19>/si','<img src="s/19.gif" alt="{ball}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<20>/si','<img src="s/20.gif" alt="{surprise}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<21>/si','<img src="s/21.gif" alt="{cake}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<22>/si','<img src="s/22.gif" alt="{phone}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<23>/si','<img src="s/23.gif" alt="{mobile}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<24>/si','<img src="s/24.gif" alt="{wall}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<25>/si','<img src="s/25.gif" alt="{camel}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<26>/si','<img src="s/26.gif" alt="{cat}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<27>/si','<img src="s/27.gif" alt="{pig}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<28>/si','<img src="s/28.gif" alt="{hammer}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<29>/si','<img src="s/29.gif" alt="{gun}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<30>/si','<img src="s/30.gif" alt="{skull}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<31>/si','<img src="s/31.gif" alt="{rip}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<32>/si','<img src="s/32.gif" alt="{sun}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<33>/si','<img src="s/33.gif" alt="{moon}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<34>/si','<img src="s/34.gif" alt="{lock}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<35>/si','<img src="s/35.gif" alt="{dollar}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<36>/si','<img src="s/36.gif" alt="{fig}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<37>/si','<img src="s/37.gif" alt="{drug}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/<38>/si','<img src="s/38.gif" alt="{fuck}"/>',$gb['msg']);


// answer
$gb['answer'] = preg_replace('/<1>/si','<img src="s/1.gif" alt=":-)"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<2>/si','<img src="s/2.gif" alt=":-("/>',$gb['answer']);
$gb['answer'] = preg_replace('/<3>/si','<img src="s/3.gif" alt=":-["/>',$gb['answer']);
$gb['answer'] = preg_replace('/<4>/si','<img src="s/4.gif" alt="8-)"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<5>/si','<img src="s/5.gif" alt=":-E)"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<6>/si','<img src="s/6.gif" alt=":-P"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<7>/si','<img src="s/7.gif" alt="{beer}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<8>/si','<img src="s/8.gif" alt="{tee}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<9>/si','<img src="s/9.gif" alt="{smoke}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<10>/si','<img src="s/10.gif" alt="{vine}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<11>/si','<img src="s/11.gif" alt="{kiss}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<12>/si','<img src="s/12.gif" alt="{heard}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<13>/si','<img src="s/13.gif" alt=""/>',$gb['answer']);
$gb['answer'] = preg_replace('/<14>/si','<img src="s/14.gif" alt="{ok}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<15>/si','<img src="s/15.gif" alt="{no}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<16>/si','<img src="s/16.gif" alt="{cool}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<17>/si','<img src="s/17.gif" alt="{flower}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<18>/si','<img src="s/18.gif" alt="{cherry}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<19>/si','<img src="s/19.gif" alt="{ball}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<20>/si','<img src="s/20.gif" alt="{surprise}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<21>/si','<img src="s/21.gif" alt="{cake}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<22>/si','<img src="s/22.gif" alt="{phone}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<23>/si','<img src="s/23.gif" alt="{mobile}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<24>/si','<img src="s/24.gif" alt="{wall}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<25>/si','<img src="s/25.gif" alt="{camel}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<26>/si','<img src="s/26.gif" alt="{cat}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<27>/si','<img src="s/27.gif" alt="{pig}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<28>/si','<img src="s/28.gif" alt="{hammer}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<29>/si','<img src="s/29.gif" alt="{gun}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<30>/si','<img src="s/30.gif" alt="{skull}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<31>/si','<img src="s/31.gif" alt="{rip}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<32>/si','<img src="s/32.gif" alt="{sun}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<33>/si','<img src="s/33.gif" alt="{moon}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<34>/si','<img src="s/34.gif" alt="{lock}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<35>/si','<img src="s/35.gif" alt="{dollar}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<36>/si','<img src="s/36.gif" alt="{fig}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<37>/si','<img src="s/37.gif" alt="{drug}"/>',$gb['answer']);
$gb['answer'] = preg_replace('/<38>/si','<img src="s/38.gif" alt="{fuck}"/>',$gb['answer']);


$gb['msg'] = preg_replace('/&lt;1&gt;/si','<img src="s/1.gif" alt=":-)"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;2&gt;/si','<img src="s/2.gif" alt=":-("/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;3&gt;/si','<img src="s/3.gif" alt=":-["/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;4&gt;/si','<img src="s/4.gif" alt="8-)"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;5&gt;/si','<img src="s/5.gif" alt=":-E)"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;6&gt;/si','<img src="s/6.gif" alt=":-P"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;7&gt;/si','<img src="s/7.gif" alt="{beer}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;8&gt;/si','<img src="s/8.gif" alt="{tee}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;9&gt;/si','<img src="s/9.gif" alt="{smoke}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;10&gt;/si','<img src="s/10.gif" alt="{vine}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;11&gt;/si','<img src="s/11.gif" alt="{kiss}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;12&gt;/si','<img src="s/12.gif" alt="{heard}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;13&gt;/si','<img src="s/13.gif" alt=""/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;14&gt;/si','<img src="s/14.gif" alt="{ok}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;15&gt;/si','<img src="s/15.gif" alt="{no}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;16&gt;/si','<img src="s/16.gif" alt="{cool}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;17&gt;/si','<img src="s/17.gif" alt="{flower}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;18&gt;/si','<img src="s/18.gif" alt="{cherry}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;19&gt;/si','<img src="s/19.gif" alt="{ball}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;20&gt;/si','<img src="s/20.gif" alt="{surprise}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;21&gt;/si','<img src="s/21.gif" alt="{cake}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;22&gt;/si','<img src="s/22.gif" alt="{phone}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;23&gt;/si','<img src="s/23.gif" alt="{mobile}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;24&gt;/si','<img src="s/24.gif" alt="{wall}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;25&gt;/si','<img src="s/25.gif" alt="{camel}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;26&gt;/si','<img src="s/26.gif" alt="{cat}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;27&gt;/si','<img src="s/27.gif" alt="{pig}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;28&gt;/si','<img src="s/28.gif" alt="{hammer}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;29&gt;/si','<img src="s/29.gif" alt="{gun}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;30&gt;/si','<img src="s/30.gif" alt="{skull}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;31&gt;/si','<img src="s/31.gif" alt="{rip}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;32&gt;/si','<img src="s/32.gif" alt="{sun}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;33&gt;/si','<img src="s/33.gif" alt="{moon}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;34&gt;/si','<img src="s/34.gif" alt="{lock}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;35&gt;/si','<img src="s/35.gif" alt="{dollar}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;36&gt;/si','<img src="s/36.gif" alt="{fig}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;37&gt;/si','<img src="s/37.gif" alt="{drug}"/>',$gb['msg']);
$gb['msg'] = preg_replace('/&lt;38&gt;/si','<img src="s/38.gif" alt="{fuck}"/>',$gb['msg']);

?>