Просмотр файла top/top.php

Размер файла: 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>&#1059;&#1095;&#1072;&#1089;&#1090;&#1074;&#1091;&#1102;&#1090;: $v </small><br/>
<small><a href=\"index.php\">AmLet - top</a></small><br/>
<small><a href=\"enter.php\">&#1055;&#1088;&#1086;&#1092;&#1080;&#1083;&#1100;</a></small><br/>
<small><a href=\"reg.wml\">&#x0420;&#x0435;&#x0433;&#x0438;&#x0441;&#x0442;&#x0440;&#x0430;&#x0446;&#x0438;&#x044F;</a></small><br/>
<small><a href=\"../index.php\">amlet.com.ru</a></small><br/>
<small>&#1047;&#1072;&#1088;&#1077;&#1075;&#1080;&#1089;&#1090;&#1088;&#1080;&#1088;&#1086;&#1074;&#1072;&#1085;&#1086; &#1089;&#1072;&#1081;&#1090;&#1086;&#1074;: <b>".@mysql_num_rows($query_allcount)."</b></small><br/>;
print "</p>
</card>
</wml>";
@mysql_close();
?>