<?
if($version == "wml")
{
header("Content-type: text/vnd.wap.wml; charset=utf-8");
header("Cache-Control: no-cache");
echo(doctype("Cмайлы").$tag);
}
elseif($version == "xhtml")
{
header("Content-type: text/html; charset=utf-8");
header("Last-Modified:".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");
echo('<html>
<head>
<title>Cмайлы</title>
</head>
<body bgcolor="'.$style['background'].'" link="'.$style['link'].'" vlink="'.$style['link'].'" text="#000000">
<table align="center" border="0" cellspacing="1" cellpadding="5" width="350">
<tr align="center" bgcolor="'.$style['title'].'"><td colspan="2">
<font color="#FFFFFF"><b>Cмайлы</b></font>
</td></tr>
<tr bgcolor="'.$style['bottom'].'"><td></td></tr>
<tr bgcolor="'.$style['text'].'"><td>'.$tag);
}
if($_GET['f'] == 1)
{
echo("Вы можете вставить смайл в сообщение набрав в угловых скобках число от 1 до 38<br />\r\n");
echo '<img src="smiles/21.gif" alt="{cake}"/><21>
<img src="smiles/22.gif" alt="{phone}"/><22><br/>
<img src="smiles/23.gif" alt="{mobile}"/><23>
<img src="smiles/24.gif" alt="{wall}"/><24><br/>
<img src="smiles/25.gif" alt="{camel}"/><25>
<img src="smiles/26.gif" alt="{cat}"/><26><br/>
<img src="smiles/27.gif" alt="{pig}"/><27>
<img src="smiles/28.gif" alt="{hammer}"/><28><br/>
<img src="smiles/29.gif" alt="{gun}"/><29>
<img src="smiles/30.gif" alt="{skull}"/><30><br/>
<img src="smiles/31.gif" alt="{rip}"/><31>
<img src="smiles/32.gif" alt="{sun}"/><32><br/>
<img src="smiles/33.gif" alt="{moon}"/><33>
<img src="smiles/34.gif" alt="{lock}"/><34><br/>
<img src="smiles/35.gif" alt="{dollar}"/><35>
<img src="smiles/36.gif" alt="{fig}"/><36><br/>
<img src="smiles/37.gif" alt="{drug}"/><37>
<img src="smiles/38.gif" alt="{fuck}"/><38><br/>';
}
else
{
$arr = array('<1>',
'<2>',
'<3>',
'<4>',
'<5>',
'<6>',
'<7>',
'<8>',
'<9>',
'<10>',
'<11>',
'<12>',
'<13>',
'<14>',
'<15>',
'<16>',
'<17>',
'<18>',
'<19>',
'<20>',
'<21>',
'<22>',
'<23>',
'<24>',
'<25>',
'<26>',
'<27>',
'<28>',
'<29>',
'<30>',
'<31>',
'<32>',
'<33>',
'<34>',
'<35>',
'<36>',
'<37>',
'<38>');
$smiles = array(
"<img src='smiles/1.gif'/>",
"<img src='smiles/2.gif'/>",
"<img src='smiles/3.gif'/>",
"<img src='smiles/4.gif'/>",
"<img src='smiles/5.gif'/>",
"<img src='smiles/6.gif'/>",
"<img src='smiles/7.gif'/>",
"<img src='smiles/8.gif'/>",
"<img src='smiles/9.gif'/>",
"<img src='smiles/10.gif'/>",
"<img src='smiles/11.gif'/>",
"<img src='smiles/12.gif'/>",
"<img src='smiles/13.gif'/>",
"<img src='smiles/14.gif'/>",
"<img src='smiles/15.gif'/>",
"<img src='smiles/16.gif'/>",
"<img src='smiles/17.gif'/>",
"<img src='smiles/18.gif'/>",
"<img src='smiles/19.gif'/>",
"<img src='smiles/20.gif'/>",
"<img src='smiles/21.gif'/>",
"<img src='smiles/22.gif'/>",
"<img src='smiles/23.gif'/>",
"<img src='smiles/24.gif'/>",
"<img src='smiles/25.gif'/>",
"<img src='smiles/26.gif'/>",
"<img src='smiles/27.gif'/>",
"<img src='smiles/28.gif'/>",
"<img src='smiles/29.gif'/>",
"<img src='smiles/30.gif'/>",
"<img src='smiles/31.gif'/>",
"<img src='smiles/32.gif'/>",
"<img src='smiles/33.gif'/>",
"<img src='smiles/34.gif'/>",
"<img src='smiles/35.gif'/>",
"<img src='smiles/36.gif'/>",
"<img src='smiles/37.gif'/>",
"<img src='smiles/38.gif'/>");
echo("Вы можете вставить смайл в сообщение набрав в угловых скобках число от 1 до 38<br />\r\n");
echo '<img src="smiles/1.gif" alt=":-)"/><1>
<img src="smiles/2.gif" alt=":-("/><2><br/>
<img src="smiles/3.gif" alt=":-["/><3>
<img src="smiles/4.gif" alt="8-)"/><4><br/>
<img src="smiles/5.gif" alt=":-E)"/><5>
<img src="smiles/6.gif" alt=":-P"/><6><br/>
<img src="smiles/7.gif" alt="{beer}"/><7>
<img src="smiles/8.gif" alt="{tee}"/><8><br/>
<img src="smiles/9.gif" alt="{smoke}"/><9>
<img src="smiles/10.gif" alt="{vine}"/><10><br/>
<img src="smiles/11.gif" alt="{kiss}"/><11>
<img src="smiles/12.gif" alt="{heard}"/><12><br/>
<img src="smiles/13.gif" alt=""/><13>
<img src="smiles/14.gif" alt="{ok}"/><14><br/>
<img src="smiles/15.gif" alt="{no}"/><15>
<img src="smiles/16.gif" alt="{cool}"/><16><br/>
<img src="smiles/17.gif" alt="{flower}"/><17>
<img src="smiles/18.gif" alt="{cherry}"/><18><br/>
<img src="smiles/19.gif" alt="{ball}"/><19>
<img src="smiles/20.gif" alt="{surprise}"/><20><br/>';
echo '<a href="./?p=29&v='.$version.'&sid='.$sid.'&f=1">Дальше...</a><br/>';
}
if($version == "wml")
{
echo('<anchor>Назад<prev/></anchor><br/>
<a href="./?p=0&v=wml&sid='.$sid.'">В форум</a>
'.$tagC.'</p></card></wml>');
} elseif($version == "xhtml")
{
echo($tagC.'</td></tr>
<tr bgcolor="'.$style['bottom'].'"><td>'.$tag.'
<a href="javascript:history.back()">Назад</a><br/>
<a href="./?p=0&v=xhtml&sid='.$sid.'">В форум</a>
'.$tagC.'</td></tr></table>
</body></html>');
}
?>