File size: 5.81Kb
<?php
$r=rand(0,100000);
//Ї®б« Ґ¬ § Ј®«®ўЄЁ
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
//ўлў®¤ д ©« wml
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/>'.
'<anchor>'.$lang['say'].'<go href="room.php?id='.$id.'&pass='.$pass.'&room='.$room.'&r='.$r.'&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 = "мужской"; } else { $sex = "женский"; }
//ббл«Є В д®в®
if(!empty($photo)) { print $lang['nick'].": <a href=\"$photo\">".$data['login']."</a><br/>"; } else {
print $lang['nick'].": ".$data['login']." <br/>"; }
if(!empty($data['name'])) { print $lang['name'].": ".$data['name']." <br/>";}
print $lang['sex'].": $sex <br/>";
print $lang['birthday'].": ".$data['bday']."-".$data['bmonth']."-".$data['byear']."<br/>";
if(!empty($data['live'])) {print $lang['live'].": ".$data['live']." <br/>";}
if(!empty($data['mobile'])) {print $lang['phone'].": ".$data['mobile'] ."<br/>";}
if(!empty($data['operator'])) {print $lang['operator'].": ".$data['operator'] ."<br/>";}
if(!empty($data['email'])) {print 'E-mail: '.$to.'<br/>';}
if(!empty($data['wapsite'])) {print $lang['wap'].": <a href=\"".$data['wapsite']."\">".$data['wapsite']."</a> <br/>";}
if(!empty($data['website'])) {print $lang['web'].": <a href=\"".$data['website']."\">".$data['website']."</a> <br/>";}
if(!empty($data['icq'])) {print "ICQ: ".$data['icq']." <br/>";}
print $lang['status'].": $status <br/>";
print $lang['posts'].": ".$data['posts']." <br/>";
if(!empty($data['about'])) { 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?id=$id&pass=$pass&whoid=$dbid&room=$room&mod=kick\">".$lang['kick']."</a><br/>";
if($moder>=2&&empty($data['admin'])) print "<a href=\"moder.php?id=$id&pass=$pass&whoid=$dbid&room=$room&mod=kill\">".$lang['kill']."</a><br/>";
if($moder>=3&&empty($data['admin'])) print "<a href=\"moder.php?id=$id&pass=$pass&whoid=$dbid&room=$room&mod=agent\">Браузер</a><br/>";
if(!empty($admin)) {
if($user_moder>=1) { print "<b>:::</b><br/><a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=delmoder\">".$lang['delmoder']."</a><br/>"; }
else {
print "<b>:::</b><br/><a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=makemoder\">".$lang['makemoder']."</a><br/>"; }
if($user_moder>=2) { print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=delkiller\">".$lang['delkiller']."</a><br/>"; }
else {
print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=makekiller\">".$lang['makekiller']."</a><br/>"; }
if($user_moder>=3) { print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=delshpion\">".$lang['delshpion']."</a><br/>"; }
else {
print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=makeshpion\">".$lang['makeshpion']."</a><br/>"; }
if($user_moder>=4) { print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=deltopmoder\">".$lang['deltopmoder']."</a><br/>"; }
else {
print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=maketopmoder\">".$lang['maketopmoder']."</a><br/>"; }
print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=del\">".$lang['delete']."</a><br/>";
}
print "<b>:::</b><br/><a href=\"ignor.php?id=$id&pass=$pass&room=$room&r=$r&mod=set&whoid=".$data['id']."\">".$lang['in_ignor']."</a><br/>";
//в чат
if($room) print "<a href=\"room.php?id=$id&pass=$pass&room=$room&r=$r\">".$lang['to_chat']."</a><br/>";
else print "<a href=\"enter.php?id=$id&pass=$pass&r=$r\">".$lang['holl']."</a><br/>";
print $fsize2;
} else { print $lang['access_denied']; }
//конечные теги
print '</p>'.
'</card>'.
'</wml>';
//разрываеРС? соединение РЎРѓ базой
@mysql_close();
ob_end_flush();
?>