Размер файла: 2.08Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
include"c.php";
$i=0;
$q1=@mysql_query("select count(*) from `users` where sex='m' and counter>0;");
$q2=@mysql_query("select count(*) from `users` where sex='zh' and counter>0;");
$i1=@mysql_fetch_array($q1);
$i2=@mysql_fetch_array($q2);
$znak_count = @mysql_query("SELECT count(*) FROM `users` WHERE id>0;");
$zdc = @mysql_fetch_array($znak_count);
$zncount = $zdc['count(*)'];
$znak_regs = @mysql_query("select count(*) from `users`;");
$zregs = @mysql_fetch_array($znak_regs);
@mysql_close();
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
print "<!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>";
print "<card title=\"Знакомства\">";
if($nick==""){print "<p align=\"center\">Приятных знакомств :))<br/>
Всего регистраций: ".$zdc['count(*)']."<br/></p>";} else
{print "<p align=\"center\">Голос за $nick принят!</p>";}
print "<p align=\"center\">
<a href=\"znak.php?sex=m\">Парни[".$i1['count(*)']."]</a><br/>
<a href=\"znak.php?sex=zh\">Девушки[".$i2['count(*)']."]</a><br/><br/>
<a href=\"./search.wml\">Поиск</a><br/>
<a href=\"./enter.php\">Смена анкеты</a><br/>
<a href=\"./reg.wml\">Регистрация>>></a><br/>
<a href=\"../index.php\">:::назад</a><br/><br/>
</p><p align=\"center\">
<a href=\"http://mas.net.ru\">Mas.Net.Ru</a><br/>
</p>";
print "</card></wml>";
?>