File size: 1.36Kb
<?
header("Cache-Control: no-cache");
header("Content-type:text/vnd.wap.wml");
$ref=rand(10000,1000000);
@$kol=file("kol.dat");
$kol=trim($kol[0]);
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
echo "<wml>\n";
echo "<card id=\"index\" title=\"Мафия\">\n";
echo "<p align=\"center\"><small>\n";
echo "<img src=\"maf.gif\" alt=\"Мафия\"/><br/>\n";
$chl = "человек";
if ((($kol%10==2)||($kol%10==3)||($kol%10==4))&&($kol/10)!=1)$chl = "человека";
echo "Сейчас в игре $kol $chl<br/>";
echo "Кличка:</small><br/>\n";
echo "<input name=\"us\" maxlength=\"15\" title=\"nick\"/><br/>\n";
echo "<small>Пароль:</small><br/>\n";
echo "<input name=\"ps\" maxlength=\"15\" title=\"password\"/><br/>\n";
echo "<small><anchor title=\"go\">Войти<go href=\"enter.php?ref=$ref\" method=\"post\">\n";
echo "<postfield name=\"us\" value=\"$(us)\"/>\n";
echo "<postfield name=\"ps\" value=\"$(ps)\"/>\n";
echo "</go></anchor><br/>\n";
echo "*********<br/>\n";
echo "<a href=\"reghelp.php\">Зарегатся!</a><br/>\n";
echo "-----<br/>\n";
echo "<a href=\"http://rom.rus-hoster.net\">rom.rus-hoster.net</a>\n";
echo "</small></p>\n";
echo "</card>\n";
echo "</wml>\n";
?>