Размер файла: 2.19Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE); /////////////// игнорируем ошибки
$data[]="<img src=\"smiles/toilet.gif\" alt=\".toilet.\"/> .toilet.";
$data[]="<img src=\"smiles/toy.gif\" alt=\".toy.\"/> .toy.";
$data[]="<img src=\"smiles/toy2.gif\" alt=\".toy2.\"/> .toy2.";
$data[]="<img src=\"smiles/tv.gif\" alt=\".tv.\"/> .tv.";
$data[]="<img src=\"smiles/vantuz.gif\" alt=\".vantuz.\"/> .vantuz.";
$data[]="<img src=\"smiles/heart.gif\" alt=\".heart.\"/> .heart.";
$data[]="<img src=\"smiles/talk.gif\" alt=\".talk.\"/> .talk.";
$data[]="<img src=\"smiles/cvetok.gif\" alt=\".cvetok.\"/> .cvetok.";
$data[]="<img src=\"smiles/loveyou.gif\" alt=\".loveyou.\"/> .loveyou.";
$data[]="<img src=\"smiles/4mok.gif\" alt=\".4mok.\"/> .4mok.";
$data[]="<img src=\"smiles/love.gif\" alt=\".love.\"/> .love.";
$data[]="<img src=\"smiles/smoke.you.gif\" alt=\".smoke.you.\"/> .smoke.";
$data[]="<img src=\"smiles/daryu.gif\" alt=\".daryu.\"/> .daryu.";
$data[]="<img src=\"smiles/loving.gif\" alt=\".loving.\"/> .loving.";
$data[]="<img src=\"smiles/stress.gif\" alt=\".stress.\"/> .stress.";
$data[]="<img src=\"smiles/inlove.gif\" alt=\".inlove.\"/> .inlove.";
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml><head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>
<card title="">
<p>
<?php
$i=count($data);
$count=$i;
$count1=$count;
if(empty($start))
$start=0;
$start=intval($start);
if($start<0)
$start=0;
if($count>$start+10) $count=$start+10;
for($i=$start;$i<$count;$i++)
{
print $data["$i"]."<br/>";
}
if($start!=0)
{
print "<a href=\"chsmiles.php?id=$id&login=$login&pass=$pass&start=".($start-10)."&cid=$cid\">".htmlspecialchars("<<<")."</a><br/>";
}
if($count1>$start+10)
{
print "<a href=\"chsmiles.php?id=$id&login=$login&pass=$pass&start=".($start+10)."&cid=$cid\"><br/>".htmlspecialchars(">>>")."</a><br/>";
}
print "<br/><a href=\"index.php?id=$id&login=$login&pass=$pass&cid=$cid\">Smiles</a>";
?>
</p>
</card>
</wml>