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

Размер файла: 6.7Kb
<?php
$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";
mysql_query ("select * from bannedib WHERE ci='$ci' AND (ip = '".getenv(REMOTE_ADDR)."')and(browser = '".getenv(HTTP_USER_AGENT)."')");
                        if(mysql_affected_rows()!=0){include "b.php";}
$login = autorize();
if($search) {
$query_users = @mysql_query("select * from `".$px.$utable."` where login='".$dblogin."' and ci= '$ci';");
$data = @mysql_fetch_array($query_users);
} else {
$query_users = @mysql_query("select * from `".$px.$utable."` where id='$dbid' and ci='$ci';");
$data = @mysql_fetch_array($query_users);
}
print '<card title="'.$data['login'].'">'.
'<p>';
if($login) {
//����&#1083;&#1168; � &#1031;��&#1084;��&#1118;�&#1074;&#1168;�&#1168;
$moder=$login['moder'];
$admin=$login['admin'];
$from=$login['email'];
//&#1168;&#1081;&#1168; ����&#1083;&#1168;
$user_moder=$data['moder'];
$to=$data['email'];
$photo=$data['photo'];
$status=$data['status'];
//&#1168;&#1073;�&#1025; &#1085;&#1074;� �&#1168; &#1031;�&#1025;&#1073;&#1028;
if(!$search) print '<input name="msg'.$r.'"/><br/>'.
'<select name="private" title="'.$lang['privat'].'">'.
'<option value="0">&#1042;&#1089;&#1077;&#1084;</option>'.
'<option value="'.$login['id'].'.'.$data['id'].'">&#1055;&#1088;&#1080;&#1074;&#1072;&#1090;&#1085;&#1086;</option>'.
'</select><br/>'.
'<select multiple="true" name="translit">'.
'<option value="user">Translit</option></select><br/>'.
'<anchor>'.$lang['say'].'<go href="room.php?ci='.$ci.'&amp;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><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 = "&#1084;&#1091;&#1078;&#1089;&#1082;&#1086;&#1081;"; } else { $sex = "&#1078;&#1077;&#1085;&#1089;&#1082;&#1080;&#1081;"; }
//&#1073;&#1073;&#1083;�&#1028;� �� &#1076;�&#1074;�
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: <a href=\"email.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;to=$to&amp;from=$from\">".$to." </a><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/>";
if(!empty($moder)&&empty($data['admin'])) print "<b>:::</b><br/><a href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;whoid=$dbid&amp;room=$room&amp;mod=kick\">".$lang['kick']."</a><br/>";
if($moder>=2&&empty($data['admin'])) print "<a href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;whoid=$dbid&amp;room=$room&amp;mod=kill\">".$lang['kill']."</a><br/>";
if($moder>=1&&empty($data['admin'])) print "<anchor>&#1047;&#1072;&#1073;&#1072;&#1085;&#1080;&#1090;&#1100;<go href=\"moder.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=ipb\" method=\"post\">
<postfield name=\"act\" value=\"search\"/>
<postfield name=\"who\" value=\"".$data['login']."\"/>
</go></anchor><br/>";
if(!empty($admin)) {
if($user_moder>=1) { print "<b>:::</b><br/><a href=\"admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=delmoder\">".$lang['delmoder']."</a><br/>"; }
else {
print "<b>:::</b><br/><a href=\"admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=makemoder\">".$lang['makemoder']."</a><br/>"; }
if($user_moder>=2) { print "<a href=\"admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=delkiller\">".$lang['delkiller']."</a><br/>"; }
else {
print "<a href=\"admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=makekiller\">".$lang['makekiller']."</a><br/>"; }
if($user_moder>=3) { print "<a href=\"admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=delshpion\">".$lang['delshpion']."</a><br/>"; }
else {
print "<a href=\"admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=makeshpion\">C&#1076;&#1077;&#1083;&#1072;&#1090;&#1100; &#1096;&#1087;&#1080;&#1086;&#1085;&#1086;&#1084;</a><br/>"; }
if($user_moder>=4) { print "<a href=\"admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=deltopmoder\">".$lang['deltopmoder']."</a><br/>"; }
else {
print "<a href=\"admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=maketopmoder\">".$lang['maketopmoder']."</a><br/>";
print "<anchor>&#1041;&#1088;&#1072;&#1091;&#1079;&#1077;&#1088;<go href=\"admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;mod=ipb\" method=\"post\">
<postfield name=\"act\" value=\"search\"/>
<postfield name=\"who\" value=\"".$data['login']."\"/>
</go></anchor><br/>"; }
print "<a href=\"admin.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;whoid=".$data['id']."&amp;room=$room&amp;mod=del\">".$lang['delete']."</a><br/>";
}
print "<b>:::</b><br/><a href=\"ignor.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;r=$r&amp;mod=set&amp;whoid=".$data['id']."\">".$lang['in_ignor']."</a><br/>";
//&#1056;&#1030; &#1057;&#8225;&#1056;�&#1057;&#8218;
if($room) print "<a href=\"room.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;room=$room&amp;r=$r\">".$lang['to_chat']."</a><br/>";
else print "<a href=\"enter.php?ci=$ci&amp;id=$id&amp;pass=$pass&amp;r=$r\">".$lang['holl']."</a><br/>";
print $fsize2;
} else { print $lang['access_denied']; }

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

@mysql_close();
ob_end_flush();
?>