Просмотр файла aguest_v1.4/local/autoinput.php

Размер файла: 1.07Kb
<?php
//Делаем замену на копирайты и смайлы
$copy=array(
"(c)" => "&copy;",
"(tm)" => "&trade;",
"(r)" => "&reg;"
);
$smile=array(
":)" => "<img src=\"local/smile/1.gif\" alt=\"smile\">",
":(" => "<img src=\"local/smile/2.gif\" alt=\"sad\">",
":D" => "<img src=\"local/smile/3.gif\" alt=\"lol\">",
";(" => "<img src=\"local/smile/4.gif\" alt=\"cry\">",
":angry" => "<img src=\"local/smile/angry.gif\" alt=\"angry\">",
":boss" => "<img src=\"local/smile/boss.gif\" alt=\"boss\">",
":chert" => "<img src=\"local/smile/chert.gif\" alt=\"chert\">",
":devil" => "<img src=\"local/smile/devil.gif\" alt=\"devil\">",
":gg" => "<img src=\"local/smile/gg.gif\" alt=\gg\">",
":kissed" => "<img src=\"local/smile/kissed.gif\" alt=\kissed\">",
":no" => "<img src=\"local/smile/no.gif\" alt=\no\">",
":wow" => "<img src=\"local/smile/wow.gif\" alt=\wow\">",
";)" => "<img src=\"local/smile/5.gif\" alt=\"wink\">"
);
$_GET['string']=str_replace(array_keys($copy),array_values($copy),$_GET['string']);
$_GET['string']=str_replace(array_keys($smile),array_values($smile),$_GET['string']);
?>