<?
header("Content-Type: text/vnd.wap.wml; charset=utf-8");
echo '<?xml version="1.0" encoding="utf-8"?>';
echo '<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http://www.wapforum.org/DTD/wml1.2.dtd">';
require "consts.php";
$conn=mysql_connect(my_host, my_user, my_password);
mysql_select_db(my_db, $conn);
if(isset($HTTP_COOKIE_VARS['username']))
{
$name1=$HTTP_COOKIE_VARS['username'];
}
else
{
if(isset($HTTP_GET_VARS['UIN']))
{
$name1=$HTTP_GET_VARS['UIN'];
}
else
{
$name1="Guest";
}
}
$UINmd5=$name1;
if(isset($HTTP_GET_VARS['pass']))
{
$pass=$HTTP_GET_VARS['pass'];
}
else
{
$pass="Guest";
}
$sql="select pass, addmin from users where name='$name1'";
$res=mysql_query($sql);
$row=mysql_fetch_object($res);
$addmin=$row->addmin;
if ($pass!=$row->pass)
{
$name1="Guest";
}
echo '<wml>';
echo '<head>';
echo '<meta http-equiv="Cache-Control" content="no-cache" forua="true"/>';
echo '</head>';
$sql="select * from users where name = '$user'";
$result=mysql_query($sql);
$row=mysql_fetch_object($result);
$sql="select * from users where name='$name1'";
$res=mysql_query($sql);
$row2=mysql_fetch_object($res);
$name2=$row->name;
$message=$name2;
$message=eregi_replace("ï°","а",$message);
$message=eregi_replace("ï±","б",$message);
$message=eregi_replace("ï²","в",$message);
$message=eregi_replace("ï¨","г",$message);
$message=eregi_replace("ï´","д",$message);
$message=eregi_replace("ïµ","е",$message);
$message=eregi_replace("ÿ‘","ё", $message);
$message=eregi_replace("ï¶","ж",$message);
$message=eregi_replace("ï·","з",$message);
$message=eregi_replace("ï¸","и",$message);
$message=eregi_replace("ï¹","й",$message);
$message=eregi_replace("ïº","к",$message);
$message=eregi_replace("ï»","л",$message);
$message=eregi_replace("ï¼","м", $message);
$message=eregi_replace("ï½","н", $message);
$message=eregi_replace("ï¾","о", $message);
$message=eregi_replace("ï¿","п", $message);
$message=eregi_replace("ÿЂ","р", $message);
$message=eregi_replace("ÿЃ","с", $message);
$message=eregi_replace("ÿ‚","т", $message);
$message=eregi_replace("ÿѓ","у", $message);
$message=eregi_replace("ÿ„","ф", $message);
$message=eregi_replace("ÿ…","х", $message);
$message=eregi_replace("ÿ†","ц", $message);
$message=eregi_replace("ÿ‡","ч", $message);
$message=eregi_replace("ÿ€","ш", $message);
$message=eregi_replace("ÿ‰","щ", $message);
$message=eregi_replace("ÿЉ","ъ", $message);
$message=eregi_replace("ÿ‹","ы", $message);
$message=eregi_replace("ÿЊ","ь", $message);
$message=eregi_replace("ÿЌ","э", $message);
$message=eregi_replace("ÿЋ","ю", $message);
$message=eregi_replace("ÿЏ","я", $message);
$message=eregi_replace("ïђ","А",$message);
$message=eregi_replace("ï‘","Б",$message);
$message=eregi_replace("ï’","В",$message);
$message=eregi_replace("ï“","Г",$message);
$message=eregi_replace("ï”","Д",$message);
$message=eregi_replace("ï•","Е",$message);
$message=eregi_replace("ïЃ","Ё", $message);
$message=eregi_replace("ï–","Ж",$message);
$message=eregi_replace("ï—","З",$message);
$message=eregi_replace("ï?","И",$message);
$message=eregi_replace("ï™","Й",$message);
$message=eregi_replace("ïљ","К",$message);
$message=eregi_replace("ï›","Л",$message);
$message=eregi_replace("ïњ","М", $message);
$message=eregi_replace("ïќ","Н", $message);
$message=eregi_replace("ïћ","О", $message);
$message=eregi_replace("ïџ","П", $message);
$message=eregi_replace("ï ","Р",$message);
$message=eregi_replace("ï¡","С",$message);
$message=eregi_replace("ï¢","Т",$message);
$message=eregi_replace("ï£","У",$message);
$message=eregi_replace("ï¤","Ф",$message);
$message=eregi_replace("ï¥","Х",$message);
$message=eregi_replace("ï¦","Ц",$message);
$message=eregi_replace("ï§","Ч",$message);
$message=eregi_replace("ï¨","Ш",$message);
$message=eregi_replace("ï©","Щ",$message);
$message=eregi_replace("ïª","Ъ",$message);
$message=eregi_replace("ï«","Ы",$message);
$message=eregi_replace("ï¬","Ь", $message);
$message=eregi_replace("ï­","Э", $message);
$message=eregi_replace("ï®","Ю", $message);
$message=eregi_replace("ï¯","Я", $message);
$name2=$message;
$sql222="select nick from users where name='$name2'";
$res222=mysql_query($sql222);
$row222=mysql_fetch_object($res222);
$nickname=$row222->nick;
$nickname=translate($nickname);
?>
<card id="user" title="<?=$nickname?>">
<?
if ($addmin==1)
{
?>
<do name="a6" type="options" label="Удалить пост"><go href="delpost.php?UIN=<?=$UINmd5?>&pass=<?=$pass?>&id=<?=$id?>&topic=<?=$topic?>&room=<?=$room?>"/></do>
<do name="a333" type="options" label="Заебанить"><go href="ban.php?UIN=<?=$UINmd5?>&pass=<?=$pass?>&user=<?=$user?>&room=<?=$room?>"/></do>
<?
}
if ($addmin==2)
{
?>
<do name="a6" type="options" label="Удалить пост"><go href="delpost.php?UIN=<?=$UINmd5?>&pass=<?=$pass?>&id=<?=$id?>&topic=<?=$topic?>&room=<?=$room?>"/></do>
<?
}
if ($row->name=="ramen")
{
echo '<p align="center">';
echo '<b>Администратор</b><br/>';
echo '<img src="pictures/ramen.gif" alt=" "/>';
echo '<br/>';
?>
<?=$row->about?>
<?
echo '<br/>';
echo '<br/>';
echo '<u>';
echo 'Постов:</u> ';
?>
<?=$row->post?>
<?
echo '<br/>';
echo '<u>';
echo 'Постов в форуме:</u> ';
?>
<?=$row->forum_post?>
<?
echo '<br/>';
echo '<u>';
echo 'MOPS: ';
echo '</u>';
echo '';
echo '<br/>';
echo '<u>e-mail:</u>';
echo ' [email protected]';
}
elseif ($row->name==SirCam)
{
echo '<p align="center">';
echo '<b>Администрация</b><br/>';
echo '<img src="../pictures/sir.jpg" alt="loading.."/>';
echo '<br/>';
echo '<u>';
echo 'Имя:</u>';
?>
<?=$row->imya?>
<?
echo '<br/>';
echo '<u>';
echo 'e-mail:</u>';
?>
<b>
<?=$row->email?>
</b>
<?
echo '<br/>';
echo 'ICQ: <b>542503</b><br/>';
echo 'Mobile-ICQ: <b>1536939</b><br/>';
echo '***<br/>';
?><?=$row->about?><?
echo '<br/>***';
}
elseif ($row->name=="Angel")
{
echo '<p align="center">';
echo '<b>Элегант</b><br/>';
?>
<?=$row->about?>
<?
echo '<br/>';
}
else
{
echo '<p>';
if ($row->picture!="")
{
echo '</p>';
echo '<p align="center">';
?><img src="../pictures/<?=$row->picture?>.jpg" alt="pics"/><?
echo '<br/>';
echo '</p>';
echo '<p>';
}
if(isset($row->status))
{
if ($row->status!="User")
{
echo '</p>';
echo '<p align="center">';
echo '<b>';
?>
<?=$row->status?>
<?
echo '</b>';
echo '</p>';
echo '<p>';
}
}
if ($row->imya!="")
{
echo '<u>';
echo 'Имя:</u> ';
$imya=translate($row->imya);
?>
<?=$imya?>
<?
echo '<br/>';
}
if (isset($row->age))
{
if ($row->age!="")
{
echo '<u>';
echo 'Возраст:</u> ';
?>
<?=$row->age?>
<?
echo '<br/>';
}
}
if ($row->god!="")
{
echo '<u>';
echo 'Дата рождения:</u> ';
?>
<?=$row->god?>
<?
echo '<br/>';
}
$email=trim($row->email);
if (isset($email))
{
if ($email!="")
{
echo '<u>';
echo 'E-mail:</u> ';
?>
<?=$row->email?>
<?
echo '<br/>';
}
}
if (isset($row->mops))
{
if ($row->mops!="")
{
echo '<u>';
echo 'MOPS:</u> ';
?>
<?=$row->mops?>
<?
echo '<br/>';
}
}
$otkuda=trim($row->otkuda);
if (isset($otkuda))
{
if ($otkuda!="")
{
echo '<u>';
echo 'Откуда:</u> ';
$otkuda=translate($row->otkuda);
?>
<?=$otkuda?>
<?
echo '<br/>';
}
}
if ($row->telnum!="")
{
echo '<u>';
echo 'Номер телефона:</u> ';
?>
<?=$row->telnum?>
<?
echo '<br/>';
}
$about=trim($row->about);
if (isset($about))
{
if ($about!="")
{
echo '<u>';
echo 'О себе:</u> ';
$about=translate($row->about);
?>
<?=$about?>
<?
echo '<br/>';
}
}
echo '<u>';
echo 'Дата регистрации:</u> ';
?>
<?=$row->datereg?>
<?
echo '<br/>';
echo '<u>';
echo 'Постов:</u> ';
?>
<?=$row->forum_post?>
<?
echo '<br/>';
echo '<u>';
echo 'Последнее посещение:</u>';
?>
<?=$row->last?>
<?
echo '<br/>';
if ($name1=="ramen")
{
echo '<u>';
echo 'ID:</u> ';
?>
<?=$row->id?>
<?
echo '<br/>';
echo '<u>';
echo 'Login:</u> ';
?>
<?=$row->name?>
<?
echo '<br/>';
echo '<u>';
echo 'Pass:</u> ';
?>
<?=$row->pass?>
<?
echo '<br/>';
echo '<u>';
echo 'Труба:</u> ';
?>
<?=$row->truba?>
<?
echo '<br/>';
$oper=$row->oper;
$oper=eregi_replace("194.190.213.37","Beeline",$oper);
$oper=eregi_replace("194.190.213.9","Beeline",$oper);
$oper=eregi_replace("209.212.118.136","Beeline-Оренсот",$oper);
echo '<u>';
echo 'Оператор:</u> ';
?>
<?=$oper?>
<?
}
if ($name1=="Malinych")
{
echo '<u>';
echo 'Труба:</u> ';
?>
<?=$row->truba?>
<?
echo '<br/>';
$oper=$row->oper;
$oper=eregi_replace("194.190.213.37","Beeline",$oper);
$oper=eregi_replace("194.190.213.9","Beeline",$oper);
$oper=eregi_replace("209.212.118.136","Beeline-Оренсот",$oper);
echo '<u>';
echo 'Оператор:</u> ';
?>
<?=$oper?>
<?
}
if (($addmin==1) || ($addmin==2))
{
echo '<u>';
echo 'Труба:</u> ';
?>
<?=$row->truba?>
<?
echo '<br/>';
$oper=$row->oper;
$oper=eregi_replace("194.190.213.37","Beeline",$oper);
$oper=eregi_replace("194.190.213.9","Beeline",$oper);
$oper=eregi_replace("209.212.118.136","Beeline-Оренсот",$oper);
echo '<u>';
echo 'Оператор:</u> ';
?>
<?=$oper?>
<?
}
if ($name1=="SirCam")
{
echo '<u>';
echo 'Труба:</u> ';
?>
<?=$row->truba?>
<?
echo '<br/>';
$oper=$row->oper;
$oper=eregi_replace("194.190.213.37","Beeline",$oper);
$oper=eregi_replace("194.190.213.9","Beeline",$oper);
$oper=eregi_replace("209.212.118.136","Beeline-Оренсот",$oper);
echo '<u>';
echo 'Оператор:</u> ';
?>
<?=$oper?>
<?
}
}
?>
<br/>
<?
mysql_free_result($result);
mysql_close($conn);
?>
</p>
</card>
</wml>