File size: 5.69Kb
<?php
/**
* @name SHCMS Engine
* @copyright Shamsik © 2012
*/
class Smiles
{
function Smileclass($strings)
{
/**
* Безопастные значение
* для смайликов
*/
$smiles_link = array();
$smiles_link[0] = '*rofl*';
$smiles_link[1] = ':-D';
$smiles_link[2] = '*bravo*';
$smiles_link[3] = ':bravo:';
$smiles_link[4] = '*rired*';
$smiles_link[5] = ':-)';
$smiles_link[6] = '*sad*';
$smiles_link[7] = ':-(';
$smiles_link[8] = ';-?';
$smiles_link[9] = ':-P';
$smiles_link[10] = '*dirol*';
$smiles_link[11] = '*blush*';
$smiles_link[12] = '*shok*';
$smiles_link[13] = '*kiss*';
$smiles_link[14] = '*cray*';
$smiles_link[15] = '*secret*';
$smiles_link[16] = '*aggressive*';
$smiles_link[17] = '*fool*';
$smiles_link[18] = ':-/';
$smiles_link[19] = '*mosking*';
$smiles_link[20] = '*diablo*';
$smiles_link[21] = '*music*';
$smiles_link[22] = '*kissed*';
$smiles_link[23] = '*stop*';
$smiles_link[24] = '*kissing*';
$smiles_link[25] = '*rose*';
$smiles_link[26] = '*good*';
$smiles_link[27] = '*drinks*';
$smiles_link[28] = '*love*';
$smiles_link[29] = '*bomba*';
$smiles_link[30] = '*wacko*';
$smiles_link[31] = '*mamba*';
$smiles_link[32] = '*pardon*';
$smiles_link[33] = '*no*';
$smiles_link[34] = '*crazy*';
$smiles_link[35] = '*hz*';
$smiles_link[36] = '*sorry*';
$smiles_link[37] = '*yahoo*';
$smiles_link[38] = '*dance*';
$smiles_link[39] = '*help*';
$smiles_link[40] = '*ok*';
$smiles_link[41] = '*hello*';
$smiles_link[42] = '*acute*';
$smiles_link[43] = '*bye*';
$smiles_link[44] = '*mail*';
$smiles_link[45] = '*dash*';
$smiles_link[46] = '*yes*';
$smiles_link[47] = '*scratch*';
$smiles_link[48] = '*lol*';
$smiles_link[49] = '*happy*';
$smiles_link[50] = '*db*';
/**
* Ссылки на смайлики
* Которые будут вставлены вместо значений
*/
$smiles_zam = array();
$smiles_zam[0] = '<img src="/system/smile/rofl.gif"/>';
$smiles_zam[1] = '<img src="/system/smile/biggrin.gif"/>';
$smiles_zam[2] = '<img src="/system/smile/clapping.gif" />';
$smiles_zam[3] = '<img src="/system/smile/clapping.gif" />';
$smiles_zam[4] = '<img src="/system/smile/smile.gif" />';
$smiles_zam[5] = '<img src="/system/smile/smile.gif" />';
$smiles_zam[6] = '<img src="/system/smile/sad.gif" />';
$smiles_zam[7] = '<img src="/system/smile/sad.gif" />';
$smiles_zam[8] = '<img src="/system/smile/wink.gif" />';
$smiles_zam[9] = '<img src="/system/smile/blum3.gif" />';
$smiles_zam[10] = '<img src="/system/smile/dirol.gif" />';
$smiles_zam[11] = '<img src="/system/smile/blush2.gif" />';
$smiles_zam[12] = '<img src="/system/smile/shok.gif" />';
$smiles_zam[13] = '<img src="/system/smile/kiss.gif" />';
$smiles_zam[14] = '<img src="/system/smile/cray.gif" />';
$smiles_zam[15] = '<img src="/system/smile/secret.gif" />';
$smiles_zam[16] = '<img src="/system/smile/aggressive.gif" />';
$smiles_zam[17] = '<img src="/system/smile/fool.gif" />';
$smiles_zam[18] = '<img src="/system/smile/beee.gif" />';
$smiles_zam[19] = '<img src="/system/smile/mosking.gif" />';
$smiles_zam[20] = '<img src="/system/smile/diablo.gif" />';
$smiles_zam[21] = '<img src="/system/smile/music2.gif" />';
$smiles_zam[22] = '<img src="/system/smile/air_kiss.gif" />';
$smiles_zam[23] = '<img src="/system/smile/stop.gif" />';
$smiles_zam[24] = '<img src="/system/smile/kiss_3.gif" />';
$smiles_zam[25] = '<img src="/system/smile/give_rose.gif" />';
$smiles_zam[26] = '<img src="/system/smile/good.gif" />';
$smiles_zam[27] = '<img src="/system/smile/drinks.gif" />';
$smiles_zam[28] = '<img src="/system/smile/man_in_love.gif" />';
$smiles_zam[29] = '<img src="/system/smile/bomb.gif" />';
$smiles_zam[30] = '<img src="/system/smile/wacko.gif" />';
$smiles_zam[31] = '<img src="/system/smile/mamba.gif" />';
$smiles_zam[32] = '<img src="/system/smile/pardon.gif" />';
$smiles_zam[33] = '<img src="/system/smile/nea.gif" />';
$smiles_zam[34] = '<img src="/system/smile/crazy.gif" />';
$smiles_zam[35] = '<img src="/system/smile/dntknw.gif" />';
$smiles_zam[36] = '<img src="/system/smile/sorry.gif" />';
$smiles_zam[37] = '<img src="/system/smile/yahoo.gif" />';
$smiles_zam[38] = '<img src="/system/smile/dance4.gif" />';
$smiles_zam[39] = '<img src="/system/smile/help.gif" />';
$smiles_zam[40] = '<img src="/system/smile/ok.gif" />';
$smiles_zam[41] = '<img src="/system/smile/preved.gif" />';
$smiles_zam[42] = '<img src="/system/smile/acute.gif" />';
$smiles_zam[43] = '<img src="/system/smile/bye.gif" />';
$smiles_zam[44] = '<img src="/system/smile/mail1.gif" />';
$smiles_zam[45] = '<img src="/system/smile/dash1.gif" />';
$smiles_zam[46] = '<img src="/system/smile/yes3.gif" />';
$smiles_zam[47] = '<img src="/system/smile/scratch_one-s_head.gif" />';
$smiles_zam[48] = '<img src="/system/smile/lol.gif" />';
$smiles_zam[49] = '<img src="/system/smile/i-m_so_happy.gif" />';
$smiles_zam[50] = '<img src="/system/smile/pleasantry.gif" />';
$smil_return = str_replace($smiles_link, $smiles_zam, $strings);
return $smil_return;
}
}
$smile_class = new Smiles;
?>