Просмотр файла nwchat/chat/index.php

Размер файла: 1.72Kb
<?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/>-----'.
'<br/>-----'.
'<br/>'.$lang['regs'].': '.$nregs['count(*)'].
'<br/>-----'.
'<br/><a href="../index.wml">'.$lang['main'].'</a>'.
'</small><br/>';
print '</p></card></wml>';
//а §алў Ґ¬ ᮥ¤Ё­Ґ­ЁҐ б Ў §®©
@mysql_close();
ob_end_flush();
?>