View file include/smile.php

File size: 6.13Kb
<?
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}"/>&lt;21&gt;
<img src="smiles/22.gif" alt="{phone}"/>&lt;22&gt;<br/>
<img src="smiles/23.gif" alt="{mobile}"/>&lt;23&gt;
<img src="smiles/24.gif" alt="{wall}"/>&lt;24&gt;<br/>
<img src="smiles/25.gif" alt="{camel}"/>&lt;25&gt;
<img src="smiles/26.gif" alt="{cat}"/>&lt;26&gt;<br/>
<img src="smiles/27.gif" alt="{pig}"/>&lt;27&gt;
<img src="smiles/28.gif" alt="{hammer}"/>&lt;28&gt;<br/>
<img src="smiles/29.gif" alt="{gun}"/>&lt;29&gt;
<img src="smiles/30.gif" alt="{skull}"/>&lt;30&gt;<br/>
<img src="smiles/31.gif" alt="{rip}"/>&lt;31&gt;
<img src="smiles/32.gif" alt="{sun}"/>&lt;32&gt;<br/>
<img src="smiles/33.gif" alt="{moon}"/>&lt;33&gt;
<img src="smiles/34.gif" alt="{lock}"/>&lt;34&gt;<br/>
<img src="smiles/35.gif" alt="{dollar}"/>&lt;35&gt;
<img src="smiles/36.gif" alt="{fig}"/>&lt;36&gt;<br/>
<img src="smiles/37.gif" alt="{drug}"/>&lt;37&gt;
<img src="smiles/38.gif" alt="{fuck}"/>&lt;38&gt;<br/>';

	}
	else
	{
    	$arr = array('&lt;1&gt;',
                   '&lt;2&gt;',
                   '&lt;3&gt;',
                   '&lt;4&gt;',
                   '&lt;5&gt;',
                   '&lt;6&gt;',
                   '&lt;7&gt;',
                   '&lt;8&gt;',
                   '&lt;9&gt;',
                   '&lt;10&gt;',
                   '&lt;11&gt;',
                   '&lt;12&gt;',
                   '&lt;13&gt;',
                   '&lt;14&gt;',
                   '&lt;15&gt;',
                   '&lt;16&gt;',
                   '&lt;17&gt;',
                   '&lt;18&gt;',
                   '&lt;19&gt;',
                   '&lt;20&gt;',
				   '&lt;21&gt;',
                   '&lt;22&gt;',
                   '&lt;23&gt;',
                   '&lt;24&gt;',
                   '&lt;25&gt;',
                   '&lt;26&gt;',
                   '&lt;27&gt;',
                   '&lt;28&gt;',
                   '&lt;29&gt;',
                   '&lt;30&gt;',
                   '&lt;31&gt;',
                   '&lt;32&gt;',
                   '&lt;33&gt;',
                   '&lt;34&gt;',
                   '&lt;35&gt;',
                   '&lt;36&gt;',
                   '&lt;37&gt;',
                   '&lt;38&gt;');
    		    	$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=":-)"/>&lt;1&gt;
<img src="smiles/2.gif" alt=":-("/>&lt;2&gt;<br/>
<img src="smiles/3.gif" alt=":-["/>&lt;3&gt;
<img src="smiles/4.gif" alt="8-)"/>&lt;4&gt;<br/>
<img src="smiles/5.gif" alt=":-E)"/>&lt;5&gt;
<img src="smiles/6.gif" alt=":-P"/>&lt;6&gt;<br/>
<img src="smiles/7.gif" alt="{beer}"/>&lt;7&gt;
<img src="smiles/8.gif" alt="{tee}"/>&lt;8&gt;<br/>
<img src="smiles/9.gif" alt="{smoke}"/>&lt;9&gt;
<img src="smiles/10.gif" alt="{vine}"/>&lt;10&gt;<br/>
<img src="smiles/11.gif" alt="{kiss}"/>&lt;11&gt;
<img src="smiles/12.gif" alt="{heard}"/>&lt;12&gt;<br/>
<img src="smiles/13.gif" alt=""/>&lt;13&gt;
<img src="smiles/14.gif" alt="{ok}"/>&lt;14&gt;<br/>
<img src="smiles/15.gif" alt="{no}"/>&lt;15&gt;
<img src="smiles/16.gif" alt="{cool}"/>&lt;16&gt;<br/>
<img src="smiles/17.gif" alt="{flower}"/>&lt;17&gt;
<img src="smiles/18.gif" alt="{cherry}"/>&lt;18&gt;<br/>
<img src="smiles/19.gif" alt="{ball}"/>&lt;19&gt;
<img src="smiles/20.gif" alt="{surprise}"/>&lt;20&gt;<br/>';
echo '<a href="./?p=29&amp;v='.$version.'&amp;sid='.$sid.'&amp;f=1">Дальше...</a><br/>';
	}
  if($version == "wml")
  {
  	echo('<anchor>Назад<prev/></anchor><br/>
<a href="./?p=0&amp;v=wml&amp;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&amp;v=xhtml&amp;sid='.$sid.'">В форум</a>
'.$tagC.'</td></tr></table>
</body></html>');
	}
?>