<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?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'].'">'.
'
';
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.'"/>
'.
'<select name="private" title="'.$lang['privat'].'">'.
'<option value="'.$login['id'].'.'.$data['id'].'">privat</option>'.
'</select>
'.
'<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>
';
//Ї®«
//ăáâ ˘«¨˘ Ą¬ ŕ §¬Ąŕ čŕ¨äâ
if($login['fsize'] == "small") { $fsize1 = ""; $fsize2 = ""; }
elseif($login['fsize'] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
else { $fsize1 = ""; $fsize2 = ""; }
print $fsize1;
if($data['sex']=="m") { $sex = "ĐĽŃƒĐ¶Ń�кой"; } else { $sex = "женŃ�кий"; }
//ббл«Є Â д®в®
if(!empty($photo)) {
echo "<img src=\"$photo\" alt=\"\"/>
";
print $lang['nick'].":<a href=\"$photo\">".$data['login']."</a>
"; } else {
print $lang['nick'].": ".$data['login']."
"; }
print $lang['name'].": ".$data['name']."
";
print $lang['birthday'].": ".$data['bday']."-".$data['bmonth']."-".$data['byear']."
";
print $lang['live'].": ".$data['live']."
";
print $lang['phone'].": ".$data['mobile'] ."
";
print $lang['operator'].": ".$data['operator'] ."
";
print "e-mail: <a href=\"email.php?id=$id&pass=$pass&room=$room&to=$ to&from=$from\">".$to." </a>
";
print $lang['wap'].": <a href=\"".$data['wapsite']."\">".$data['wapsite']."</a>
";
print $lang['web'].": <a href=\"".$data['website']."\">".$data['website']."</a>
";
print "ICQ: ".$data['icq']."
";
print $lang['posts'].": ".$data['posts']."
";
print $lang['about'].": ".$data['about']."
";
print $lang['datereg'].": ".date("d-m-Y", $data['rtime'])."
";
if(!empty($moder)&&empty($data['admin'])) print ":::
<a href=\"moder.php?id=$id&pass=$pass&whoid=$dbid&roo m=$room&mod=kick\">".$lang['kick']."</a>
";
if($moder>=2&&empty($data['admin'])) print "<a href=\"moder.php?id=$id&pass=$pass&whoid=$dbid&roo m=$room&mod=kill\">".$lang['kill']."</a>
";
if($moder>=3&&empty($data['admin'])) print "<a href=\"moder.php?id=$id&pass=$pass&whoid=$dbid&roo m=$room&mod=agent\">browser</a>
";
if(!empty($admin)) {
if($user_moder>=1) { print ":::
<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=delmoder\">".$lang['delmoder']."</a>
"; }
else {
print ":::
<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=makemoder\">".$lang['makemoder']."</a>
"; }
if($user_moder>=2) { print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=delkiller\">".$lang['delkiller']."</a>
"; }
else {
print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=makekiller\">".$lang['makekiller']."</a>
"; }
if($user_moder>=3) { print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=delshpion\">".$lang['delshpion']."</a>
"; }
else {
print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=makeshpion\">".$lang['makeshpion']."</a>
"; }
if($user_moder>=4) { print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=deltopmoder\">".$lang['deltopmoder']."</a>
"; }
else {
print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=maketopmoder\">".$lang['maketopmoder']."</a>
"; }
print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=del\">".$lang['delete']."</a>
";
}
print ":::
<a href=\"ignor.php?id=$id&pass=$pass&room=$room&r=$r &mod=set&whoid=".$data['id']."\">".$lang['in_ignor']."</a>
";
//в чат
if($room) print "<a href=\"room.php?id=$id&pass=$pass&room=$room&r=$r\ ">".$lang['to_chat']."</a>
";
else print "<a href=\"enter.php?id=$id&pass=$pass&r=$r\">".$lang['holl']."</a>
";
print $fsize2;
} else { print $lang['access_denied']; }
//конечные теги
print '</p>'.
'</card>'.
'</wml>';
//ĐˇĐ‚Đ Â°Đ Â·ĐˇĐ‚Đˇâ€ąĐ Đ†Đ Â°Đ ÂµĐ Ń˜ ĐˇĐƒĐ Ń•Đ ÂµĐ Ň‘Đ Ń‘Đ Đ…Đ ÂµĐ Đ…Đ Ń‘Đ Âµ ĐˇĐƒ базой
@mysql_close();
ob_end_flush();
?></div>
se k610i, se k700i... where is the problem. its ochatzone script (user.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'].'">'.
'
';
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.'"/>
'.
'<select name="private" title="'.$lang['privat'].'">'.
'<option value="'.$login['id'].'.'.$data['id'].'">privat</option>'.
'</select>
'.
'<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>
';
//Ї®«
//ăáâ ˘«¨˘ Ą¬ ŕ §¬Ąŕ čŕ¨äâ
if($login['fsize'] == "small") { $fsize1 = ""; $fsize2 = ""; }
elseif($login['fsize'] == "big") { $fsize1 = "<big>"; $fsize2 = "</big>"; }
else { $fsize1 = ""; $fsize2 = ""; }
print $fsize1;
if($data['sex']=="m") { $sex = "ĐĽŃƒĐ¶Ń�кой"; } else { $sex = "женŃ�кий"; }
//ббл«Є Â д®в®
if(!empty($photo)) {
echo "<img src=\"$photo\" alt=\"\"/>
";
print $lang['nick'].":<a href=\"$photo\">".$data['login']."</a>
"; } else {
print $lang['nick'].": ".$data['login']."
"; }
print $lang['name'].": ".$data['name']."
";
print $lang['birthday'].": ".$data['bday']."-".$data['bmonth']."-".$data['byear']."
";
print $lang['live'].": ".$data['live']."
";
print $lang['phone'].": ".$data['mobile'] ."
";
print $lang['operator'].": ".$data['operator'] ."
";
print "e-mail: <a href=\"email.php?id=$id&pass=$pass&room=$room&to=$ to&from=$from\">".$to." </a>
";
print $lang['wap'].": <a href=\"".$data['wapsite']."\">".$data['wapsite']."</a>
";
print $lang['web'].": <a href=\"".$data['website']."\">".$data['website']."</a>
";
print "ICQ: ".$data['icq']."
";
print $lang['posts'].": ".$data['posts']."
";
print $lang['about'].": ".$data['about']."
";
print $lang['datereg'].": ".date("d-m-Y", $data['rtime'])."
";
if(!empty($moder)&&empty($data['admin'])) print ":::
<a href=\"moder.php?id=$id&pass=$pass&whoid=$dbid&roo m=$room&mod=kick\">".$lang['kick']."</a>
";
if($moder>=2&&empty($data['admin'])) print "<a href=\"moder.php?id=$id&pass=$pass&whoid=$dbid&roo m=$room&mod=kill\">".$lang['kill']."</a>
";
if($moder>=3&&empty($data['admin'])) print "<a href=\"moder.php?id=$id&pass=$pass&whoid=$dbid&roo m=$room&mod=agent\">browser</a>
";
if(!empty($admin)) {
if($user_moder>=1) { print ":::
<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=delmoder\">".$lang['delmoder']."</a>
"; }
else {
print ":::
<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=makemoder\">".$lang['makemoder']."</a>
"; }
if($user_moder>=2) { print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=delkiller\">".$lang['delkiller']."</a>
"; }
else {
print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=makekiller\">".$lang['makekiller']."</a>
"; }
if($user_moder>=3) { print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=delshpion\">".$lang['delshpion']."</a>
"; }
else {
print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=makeshpion\">".$lang['makeshpion']."</a>
"; }
if($user_moder>=4) { print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=deltopmoder\">".$lang['deltopmoder']."</a>
"; }
else {
print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=maketopmoder\">".$lang['maketopmoder']."</a>
"; }
print "<a href=\"admin.php?id=$id&pass=$pass&whoid=".$data['id']."&room=$room&mod=del\">".$lang['delete']."</a>
";
}
print ":::
<a href=\"ignor.php?id=$id&pass=$pass&room=$room&r=$r &mod=set&whoid=".$data['id']."\">".$lang['in_ignor']."</a>
";
//в чат
if($room) print "<a href=\"room.php?id=$id&pass=$pass&room=$room&r=$r\ ">".$lang['to_chat']."</a>
";
else print "<a href=\"enter.php?id=$id&pass=$pass&r=$r\">".$lang['holl']."</a>
";
print $fsize2;
} else { print $lang['access_denied']; }
//конечные теги
print '</p>'.
'</card>'.
'</wml>';
//ĐˇĐ‚Đ Â°Đ Â·ĐˇĐ‚Đˇâ€ąĐ Đ†Đ Â°Đ ÂµĐ Ń˜ ĐˇĐƒĐ Ń•Đ ÂµĐ Ň‘Đ Ń‘Đ Đ…Đ ÂµĐ Đ…Đ Ń‘Đ Âµ ĐˇĐƒ базой
@mysql_close();
ob_end_flush();
?></div>
se k610i, se k700i... where is the problem. its ochatzone script (user.php).
Comment