<?php
Defined('INDEX_S_S') or die ('Доступ запрещен!!!');
$mess1 = htmlspecialchars($mess1);
$mess1 = strtr($mess1,
array(
"\r\n"=>"<br>",
"Бля"=>"***",
"бля"=>"***",
"Хер"=>"***",
"хер"=>"***",
"Хуй"=>"***",
"хуй"=>"***",
"Пид"=>"***",
"пид"=>"***",
"Долбо"=>"***",
"долбо"=>"***",
"Далба"=>"***",
"далба"=>"***",
"Сука"=>"***",
"сука"=>"***",
"еба"=>"***",
"Ёб"=>"***",
"Ганд"=>"***",
"ганд"=>"***",
"Гной"=>"***",
"гной"=>"***",
"Лошар"=>"***",
"лошар"=>"***",
"Лашар"=>"***",
"лашар"=>"***",
"Дур"=>"***",
"дур"=>"***",
"Муд"=>"***",
"муд"=>"***",
));
// exit;
//BBcode
if ((substr_count($mess1,'[code]') != substr_count($mess1,'[/code]')) or (strpos($mess1,'[code]') > strpos($mess1,'[/code]')) )
{
$mess1 = str_replace('[code]','([sm14]err) ',$mess1);
$mess1 = str_replace('[/code]','([sm14]err) ',$mess1);
}
if ((substr_count($mess1,'[quote]') != substr_count($mess1,'[/quote]')) or (strpos($mess1,'[quote]') > strpos($mess1,'[/quote]')) )
{
$mess1 = str_replace('[quote]','([sm14]err) ',$mess1);
$mess1 = str_replace('[/quote]','([sm14]err) ',$mess1);
}
if ((substr_count($mess1,'[link=') != substr_count($mess1,'[/link]')) )
{
$mess1 = str_replace('[link=','([sm14]err) ',$mess1);
$mess1 = str_replace('[/link]','([sm14]err) ',$mess1);
}
if ((substr_count($mess1,'[table]') != substr_count($mess1,'[/table]')) or (strpos($mess1,'[table]') > strpos($mess1,'[/table]')) )
{
$mess1 = str_replace('[table]','([sm14]err)',$mess1);
$mess1 = str_replace('[/table]','([sm14]err)',$mess1);
$mess1 = str_replace('[/tr]','([sm14]err)',$mess1);
$mess1 = str_replace('[/td]','([sm14]err)',$mess1);
$mess1 = str_replace('[td]','([sm14]err)',$mess1);
$mess1 = str_replace('[tr]','([sm14]err)',$mess1);
$mess1 = str_replace('[td=','([sm14]err)',$mess1);
$mess1 = str_replace('=td]','([sm14]err)',$mess1);
}
$mess1 = strtr($mess1,
array(
'</form>'=>'< /form >',
'[code]'=>'<table style=" background: #E9E9E9; color: #585858; text-align: left; width: 90%; height: 10px;" border="1" cellpadding="0" cellspacing="0"><tbody><tr><td>Code</td></tr><tr><td style="background: #FFFFFF; color: #000000; height: 100%x; text-align: left; vertical-align: top;">',
'[/code]'=>'</td></tr></tbody></table><!--//code//-->',
//цитата
'[quote]'=>'<table style=" font-size: 12px; background: #008080; color: #D7FFFF; text-align: left; width: 90%; height: 10px;" border="1" cellpadding="0" cellspacing="0"><tbody><tr><td>Quote</td></tr><tr><td style=" padding: 2px; background: #B3E7FF; color: #006A6A; height: 100%x; text-align: left; vertical-align: top;">',
'[/quote]'=>'</td></tr></tbody></table>',
//цитата
'[no_theme]'=>'<table style=" font-size: 12px; background: #EAFFFF; color: #0063C6; text-align: left; width: 90%; height: 10px;" border="1" cellpadding="0" cellspacing="0"><tbody><tr><td>No theme</td></tr><tr><td style=" padding: 2px; background: #0057AE; color: #DDEEFF; height: 100%x; text-align: left; vertical-align: top;">',
'[/no_theme]'=>'</td></tr></tbody></table><!--//no_theme//-->',
'[r]'=>'<div align="right">',
'[c]'=>'<div align="center">',
'[l]'=>'<div align="left">',
'[#d]'=>'</div>',
'[col='=>'<font color=', //[col# 156598 #l] Цветной текст [/col] без пробелов
'[/col]'=>'<!--//color//--> </font>',
'[b]'=>'<b>',
'[/b]'=>'</b>',
'[u]'=>'<u>',
'[/u]'=>'</u>',
'[i]'=>'<i>',
'[/i]'=>'</i>',
'[li]'=>'<li>',
'[/li]'=>'</li>',
'[link='=>'-><a target="_blank" href=', //[link=http://бла бла бла=l] Текст ссылки [/link] без пробелов
'[/link]'=>'</a><-',
'[block]'=>'<!--//block//--> <div style="display: block;">',
'[/block]'=>'</div> <!--//block//-->',
'[bgc='=>'<!--//bgc//--> <font style="background-color:',
'=bgc]'=>'"> <!--//bgc//-->',
'[/bgc]'=>'<!--//bgc//--> </font>',
'[table]'
=>
'<!--//table_tab//--> <table border="1" cellpadding="0" cellspacing="0"> <tbody> <!--//table_tab//-->',
'[tr]'=>'<tr>',
'[/tr]'=>'</tr>',
'[td='=>'<!--//td//--> <td style="background-color:',
'=td]'=>';"> <!--//td//-->',
'[td]'=>'<td>',
'[/td]'=>'</td>',
'[/table]'
=>
'<!--//table_tab//--> </tbody> </table>',
'[img='=>'<img width="80" name="scr" src=', //[img=Текст ссылки=l] без пробелов
'[list1]'=>'<div><ul>',
'[list1 type='=>'<div><ul type="',
'[/list1]'=>'</ul></div>',
'[list2]'=>'<div><ol>',
'[list2 type='=>'<div><ol type="',
'[/list2]'=>'</ol></div>',
'=list]'=>'"><!--//list//-->',
'[sm1]'=>'<img src=/flud/smyle/1.gif border=0>',
'[sm2]'=>'<img src=/flud/smyle/2.gif border=0>',
'[sm3]'=>'<img src=/flud/smyle/3.gif border=0>',
'[sm4]'=>'<img src=/flud/smyle/4.gif border=0>',
'[sm5]'=>'<img src=/flud/smyle/5.gif border=0>',
'[sm6]'=>'<img src=/flud/smyle/6.gif border=0>',
'[sm7]'=>'<img src=/flud/smyle/7.gif border=0>',
'[sm8]'=>'<img src=/flud/smyle/8.gif border=0>',
'[sm9]'=>'<img src=/flud/smyle/9.gif border=0>',
'[sm10]'=>'<img src=/flud/smyle/10.gif border=0>',
'[sm11]'=>'<img src=/flud/smyle/11.gif border=0>',
'[sm12]'=>'<img src=/flud/smyle/12.gif border=0>',
'[sm13]'=>'<img src=/flud/smyle/13.gif border=0>',
'[sm14]'=>'<img src=/flud/smyle/14.gif border=0>',
'[sm15]'=>'<img src=/flud/smyle/15.gif border=0>',
'[sm23]'=>'<img src=/flud/smyle/23.gif border=0>',
'[copy]'=>'©',
'[rege]'=>'®',
'|'=>'l',
'\"'=>'"',
"'"=>"\"",
'[b_r]'=>'<br>',
'=l]'=>'>',
));
?>