View file chat/user.php

File size: 6.4Kb
<?php
///////////////////////////////////////////////////////////////////////////////////////////
/////
/////                                ********* Best Чат *********
/////
/////                            Made by   :  Best
/////                              E-mail  :  [email protected]
/////                                Site  :  http://best.ruwap.org 
/////                                 ICQ  :  415-213-787
/////
//////////////////////////////////////////////////////////////////////////////////////////////
//      ВЫ НЕ ИМЕЕТЕ ПРАВО ВНОСИТ ИЗМЕНЕНИЯ В КОД СКРИПТА ДЛЯ ДАЛЬНЕЙШЕГО РАСПРОСТРАНЕНИЯ   //
//////////////////////////////////////////////////////////////////////////////////////////////
Error_Reporting(E_ALL & ~E_NOTICE);

$r=rand(0,100000);

header ("Content-type:text/vnd.wap.wml; charset=utf-8");

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>';
include "./ini.php";
$login = autorize();
if($search) {
$query_users = @mysql_query("select * from `".$px.$utable."` where login='".$dblogin."';");
$data = @mysql_fetch_array($query_users);
} else {
$query_users = @mysql_query("select * from `".$px.$utable."` where id='$dbid';");
$data = @mysql_fetch_array($query_users);
}
print '<card title="'.$data['login'].'">'.
'<p>';
if($login) {

$moder=$login['moder'];
$admin=$login['admin'];
$from=$login['email'];

$user_moder=$data['moder'];
$to=$data['email'];
$photo=$data['photo'];
$status=$data['status'];

if(!$search) print '<input name="msg'.$r.'"/><br/>'.
'<select name="private" title="'.$lang['privat'].'">'.
'<option value="0">Всем</option>'.
'<option value="'.$login['id'].'.'.$data['id'].'">Приватно</option>'.
'</select><br/>'.
'<select multiple="true" name="translit">'.
'<option value="user">Translit</option></select><br/>'.
'<small>&#187; <anchor>'.$lang['say'].'<go href="room.php?id='.$id.'&amp;pass='.$pass.'&amp;room='.$room.'&amp;r='.$r.'&amp;mod='.$mod.'" method="post">'.
'<postfield name="private" value="$(private)"/>'.
'<postfield name="msg" value="'.$data['login'].', $(msg'.$r.')"/>'.
'<postfield name="translit" value="$(translit)"/></go></anchor></small><br/>';

if($login['fsize'] == "small") { $fsize1 = "<small>"; $fsize2 = "</small>"; }
elseif($login['fsize'] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
else { $fsize1 = ""; $fsize2 = ""; }
print $fsize1;
if($data['sex']=="m") { $sex = "мужской"; } else { $sex = "женский"; }
print "<small>";
if(!empty($photo)) { print $lang['nick'].": <a href=\"$photo\">".$data['login']."</a><br/>"; } else {

print $lang['nick'].": ".$data['login']." <br/>"; }
print $lang['name'].": ".$data['name']." <br/>";
print $lang['sex'].": $sex <br/>";
print $lang['birthday'].": ".$data['bday']."-".$data['bmonth']."-".$data['byear']."<br/>";
print $lang['live'].": ".$data['live']." <br/>";
print $lang['phone'].": ".$data['mobile'] ."<br/>";
print $lang['operator'].": ".$data['operator'] ."<br/>";
print "e-mail: ".$to."<br/>";
print $lang['wap'].": <a href=\"".$data['wapsite']."\">".$data['wapsite']."</a> <br/>";
print $lang['web'].": <a href=\"".$data['website']."\">".$data['website']."</a> <br/>";
print "ICQ: ".$data['icq']." <br/>";
print $lang['status'].": $status <br/>";
print $lang['posts'].": ".$data['posts']." <br/>";
print $lang['about'].": ".$data['about']." <br/>";
print $lang['datereg'].": ".date("d-m-Y", $data['rtime'])." <br/>";
print "</small>";
if(!empty($moder)&&empty($data['admin'])) print "<br/><small>&#187; <a href=\"moder.php?id=$id&amp;pass=$pass&amp;whoid=$dbid&amp;room=$room&amp;mod=kick\">".$lang['kick']."</a></small><br/>";
if($moder>=2&&empty($data['admin'])) print "<small>&#187; <a href=\"moder.php?id=$id&amp;pass=$pass&amp;whoid=$dbid&amp;room=$room&amp;mod=kill\">".$lang['kill']."</a></small><br/>";
if($moder>=3&&empty($data['admin'])) print "<small>&#187; <a href=\"moder.php?id=$id&amp;pass=$pass&amp;whoid=$dbid&amp;room=$room&amp;mod=agent\">Браузер</a></small><br/>";
if(!empty($admin)) {
if($user_moder>=1) { print "<br/><small>&#187; <a href=\"admin.php?id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=delmoder\">".$lang['delmoder']."</a></small><br/>"; }
else {
print "<br/><small>&#187; <a href=\"admin.php?id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=makemoder\">".$lang['makemoder']."</a></small><br/>"; }
if($user_moder>=2) { print "<small>&#187; <a href=\"admin.php?id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=delkiller\">".$lang['delkiller']."</a></small><br/>"; }
else {
print "<small>&#187; <a href=\"admin.php?id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=makekiller\">".$lang['makekiller']."</a></small><br/>"; }
if($user_moder>=3) { print "<small>&#187; <a href=\"admin.php?id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=delshpion\">".$lang['delshpion']."</a></small><br/>"; }
else {
print "<small>&#187; <a href=\"admin.php?id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=makeshpion\">".$lang['makeshpion']."</a></small><br/>"; }
if($user_moder>=4) { print "<small>&#187; <a href=\"admin.php?id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=deltopmoder\">".$lang['deltopmoder']."</a></small><br/>"; }
else {
print "<small>&#187; <a href=\"admin.php?id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=maketopmoder\">".$lang['maketopmoder']."</a></small><br/>"; }
print "<small>&#187; <a href=\"admin.php?id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=del\">".$lang['delete']."</a></small><br/>";
}
print "<br/><small>&#187; <a href=\"ignor.php?id=$id&amp;pass=$pass&amp;room=$room&amp;r=$r&amp;mod=set&amp;whoid=".$data['id']."\">".$lang['in_ignor']."</a></small><br/>";

if($room) print "<small>&#187; <a href=\"room.php?id=$id&amp;pass=$pass&amp;room=$room&amp;r=$r\">".$lang['to_chat']."</a></small><br/>";
else print "<small>&#187; <a href=\"enter.php?id=$id&amp;pass=$pass&amp;r=$r\">".$lang['holl']."</a></small><br/>";
print $fsize2;
} else { print $lang['access_denied']; }

print '</p>'.
'</card>'.
'</wml>';

@mysql_close();
ob_end_flush();
?>