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

Размер файла: 1.88Kb
<?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";
$sc=mysql_query("select * from cusers where ci='".$ci."';");
$ch = @mysql_fetch_array($sc);
$topic=$ch['topic'];
$name=$ch['name'];
$link=$ch['link'];

print '<card title="'.$ch['topic'].'">'.
'<p align="center"><small>';
$r = @rand(0,100000);




print '&#1044;&#1086;&#1073;&#1088;&#1086; &#1087;&#1086;&#1078;&#1072;&#1083;&#1086;&#1074;&#1072;&#1090;&#1100;!<br/>';
$pr_count = @mysql_query("SELECT count(*) FROM `".$px.$utable."` WHERE ltime>'".intval(time()-$offline)."' and ci ='".$ci."';");
$pdc = @mysql_fetch_array($pr_count);
$count = $pdc['count(*)'];
print '<u>'.$lang['in_the_chat'].$count.$lang['people'].'</u><br/>';
print ''.$lang['login'].':</small><br/>'.
'<input type="text" name="login"/><br/>'.
'<small>'.$lang['pass'].':</small><br/>'.
'<input type="password" name="pass"/><br/>'.
'<small><anchor>'.$lang['enter'].'<go href="in.php?ci='.$ci.'" method="post">'.
'<postfield name="login" value="$(login)"/>'.
'<postfield name="pass" value="$(pass)"/>'.
'</go>'.
'</anchor>'.
'<br/><a href="./rega.php?ci='.$ci.'">'.$lang['reg'].'</a>';
$q_regs = @mysql_query("select count(*) from `".$px.$utable."`where ci ='".$ci."' and 1;");
$nregs = @mysql_fetch_array($q_regs);
print '<br/>'.$lang['regs'].': '.$nregs['count(*)'].' ';
print '<br/>-----'.
'<br/><a href="'.$ch['link'].'">'.$ch['name'].'</a>'.
'<br/><a href="http://ruwap.com.ru">ruwap.com.ru</a>'.
'</small><br/>';
print '<img src="http://top.ruwap.com.ru/count.php?id=1" alt="RUwap.com.RU"/><br/>';
print '</p></card></wml>';

@mysql_close();
ob_end_flush();
?>