Размер файла: 1.44Kb
<?
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
require ("db.php");
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=\"AmLet-top\">
<p align=\"center\">";
$query_allcount = @mysql_query("select `id` from `top`;");
$result = mysql_query("select * from `top` where today>0 order by today desc");
$v = @mysql_num_rows($result);
$date=date("Y-m-d",time());
$H1=date("H",time())+1;
$i1=date("i",time());
$s1=date("s",time());
$time="$H1:$i1:$s1";
print "<small>$date <small>($time)</small></small><br/>
<small>Участвуют: $v </small><br/>
<small><a href=\"index.php\">AmLet - top</a></small><br/>
<small><a href=\"enter.php\">Профиль</a></small><br/>
<small><a href=\"reg.wml\">Регистрация</a></small><br/>
<small><a href=\"../index.php\">amlet.com.ru</a></small><br/>
<small>Зарегистрировано сайтов: <b>".@mysql_num_rows($query_allcount)."</b></small><br/>;
print "</p>
</card>
</wml>";
@mysql_close();
?>