File size: 2Kb
<?php
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>';
//ўЄ«ПЪ Ґ¬ Є®ДЁЈЗБ ЦЁ®М© Д ©«
include "./ini.php";
//ўМў®¤Ё¬ ВЧБ ЁЦЗ ў ЎБ З§ҐБ
print '<card title="'.$lang['title'].'">'.
'<p align="center"><small>';
$r = @rand(0,100000);
//§ ЇБ®В Є®«ЁЪҐВЧў® ®« © ў ЇБЁЕ®¦Ґ©
$pr_count = @mysql_query("SELECT count(*) FROM `".$px.$utable."` WHERE ltime>'".intval(time()-$offline)."';");
//ЇЁЕ Ґ¬ ў ¬ ВВЁў
$pdc = @mysql_fetch_array($pr_count);
$count = $pdc['count(*)'];
//§ ЇБ®В ЪЁВ«® БҐЈЁВЧБ ЦЁ©
$q_regs = @mysql_query("select count(*) from `".$px.$utable."`;");
$nregs = @mysql_fetch_array($q_regs);
//ЇБ®¤®«¦ҐЁҐ ўМў®¤ ВЧБ ЁЦМ
//print '<a href="http://seclub.org/?uid=219">['.$lang['vote'].']</a><br/>';
print $lang['welcome'].'<br/>'.
'<u>'.$lang['in_the_chat'].$count.$lang['people'].'</u><br/>'.
''.$lang['login'].':</small><br/>'.
'<input type="text" name="login"/><br/>'.
'<small>'.$lang['pass'].':</small><br/>'.
'<input type="password" name="pass'.$r.'"/><br/>'.
'<small><anchor title="go">'.$lang['enter'].'<go href="enter.php" method="post">'.
'<postfield name="login" value="$(login)"/>'.
'<postfield name="pass" value="$(pass'.$r.')"/>'.
'</go>'.
'</anchor>'.
'<br/><a href="./reg.wml">'.$lang['reg'].'</a>'.
'<br/><a href="http://smsp.ru/wapchat/photos/index.php">Галерея чатoвцев</a>'.
'<br/>-----'.
'<br/>'.$lang['regs'].': '.$nregs['count(*)'].
'<br/><a href="http://91km.ru/rat/?cid=3&s=t"><img src="http://91km.ru/rat/count.php?id=3&c=b" alt="wap.91km.ru"/></a>'.
'<br/><img src="http://pslink.ru/b.php?id=384" alt="PSLink"/>'.
'<br/><a href="../wap/index.php">'.$lang['main'].'</a>'.
'</small><br/>';
print '</p></card></wml>';
//Б §БМў Ґ¬ В®Ґ¤ЁҐЁҐ В Ў §®©
@mysql_close();
ob_end_flush();
?>