Просмотр файла mafia/inside.php

Размер файла: 5.73Kb
<?
header("Cache-Control: no-cache");
header("Content-type:text/vnd.wap.wml");  
$ref=rand(10000,1000000);
require("inc.php");
$link = @mysql_pconnect ($MySQL_Hostname, $MySQL_Username, $MySQL_Password)
                or die ("<wml>
<card id=\"error\" title=\"error\">
<do type=\"prev\" label=\"Back\"><prev/></do><p align=\"center\">Can not connect to MySQL</p>
</card>
</wml>");
     
     @mysql_select_db($MySQLDatabasename) or die ("<wml>
<card id=\"error\" title=\"error\">
<do type=\"prev\" label=\"Back\"><prev/></do><p align=\"center\">error select the database...</p>
</card>
</wml>");
  
        $result = @mysql_query ("Select * from mafusers where id='".$id."'");
         
         if (mysql_affected_rows() == 0) {
          echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
echo "<wml>\n";
echo "<card id=\"error\" title=\"&#x041E;&#x0448;&#x0438;&#x0431;&#x043A;&#x0430;\" ontimer=\"index.php?ref=$ref\"><timer value=\"15\"/>\n";
echo "<p align=\"center\">\n";
echo "User was not found\n";
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";
mysql_close($link);
exit;
}
                
$row = mysql_fetch_array ($result);
if ($ps !== $row["pass"]){
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
echo "<wml>\n";
echo "<card id=\"error\" title=\"&#x041E;&#x0448;&#x0438;&#x0431;&#x043A;&#x0430;\" ontimer=\"index.php?ref=$ref\"><timer value=\"15\"/>\n";
echo "<p align=\"center\">\n";
echo "Your login failed\n";
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";
mysql_close($link);   
exit;
}           

$select = @mysql_query ("Select * from mafusers where id='".$nk."'");    
        if (mysql_affected_rows() == 0) {
          echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
echo "<wml>\n";
echo "<card id=\"error\" title=\"error\" ontimer=\"maf.php?id=$id&amp;ps=$ps&amp;rm=$rm&amp;ref=$ref\"><timer value=\"10\"/>\n";
echo "<p align=\"center\">\n";
echo "error database...\n";
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";
mysql_close ($link);
exit;
}
$us=$row["user"];  

$inf = mysql_fetch_array ($select); 
$usid=$inf["id"];  
$nick = $inf["user"];
$name = $inf["name"];
$birth = $inf["birth"];
$sex = $inf["sex"];
$city = $inf["city"];
$infa = $inf["infa"];
$posts = $inf["posts"];
$status = $inf["status"];
$us_ip = $inf["user_ip"];
$us_soft = $inf["user_soft"];
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">\n";
echo "<wml>\n";
echo "<head><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/></head>\n";
echo "<card id=\"info\" title=\"$nick\">\n";
echo "<p mode=\"wrap\">\n"; 
if ($nk!=38601) echo "<input name=\"msg$ref\" value=\"$nick, \" maxlength=\"200\" title=\"Text\"/><br/>\n"; else echo "<input name=\"msg$ref\" maxlength=\"200\" title=\"Text\"/><br/>\n"; 
if($row["say"]==="0"){
echo "<select name=\"prvt\">";  
echo "<option value=\"1\">Приватно</option>\n";
echo "<option value=\"0\">Всем</option>\n";
echo "</select><br/>\n"; 
} else {
echo "<select name=\"prvt\">";  
echo "<option value=\"0\">Всем</option>\n";
echo "<option value=\"1\">Приватно</option>\n";
echo "</select><br/>\n"; 
}
echo "<anchor title=\"send\">Сказать<go href=\"maf.php?id=$id&amp;ps=$ps&amp;rm=$rm&amp;ref=$ref\" method=\"post\">\n";
echo "<postfield name=\"msg\" value=\"$(msg$ref)\"/>\n";  
echo "<postfield name=\"prvt\" value=\"$(prvt)\"/>\n";
echo "<postfield name=\"towhom\" value=\"$usid\"/>\n";                             
echo "</go></anchor><br/>\n";
echo "Ник: $nick<br/>\n";
echo "Подпольная кличка: $name<br/>\n";
echo "День рождения: $birth<br/>\n";
echo "Пол: $sex<br/>\n";
echo "Город: $city<br/>\n";
echo "Краткая справка: $infa<br/>\n";
echo "Фраз: $posts<br/>\n";
echo "Положение в обществе: $status";
echo "<br/>\n";
echo "*******<br/>\n";

if($row["level"] > 3)
{
echo "<a href=\"kick.php?id=$id&amp;ps=$ps&amp;nk=$usid&amp;rm=$rm&amp;ref=$ref\">&#x041F;&#x043D;&#x0443;&#x0442;&#x044C;</a><br/>\n";
echo "*******<br/>\n";
}
if($row["level"] > 4)
{
echo "<a href=\"bann.php?id=$id&amp;ps=$ps&amp;nk=$usid&amp;rm=$rm&amp;ref=$ref\">Забанить</a><br/>\n";
//echo "Consult administrator when use:!!!<br/>";
//echo "<a href=\"bannip.php?id=$id&amp;ps=$ps&amp;nk=$usid&amp;rm=$rm&amp;ref=$ref\">Банн ip+soft!!!</a><br/>\n";
echo "*******<br/>\n";
} 

if($row["level"] > 5)
{                    
if(($inf["level"]<7)||($row["level"]==7)){
echo "&#x0415;&#x0433;&#x043E; ip: $us_ip<br/>\n";
echo "&#x041E;&#x043D; &#x0441;: $us_soft<br/>\n"; 
echo "*******<br/>\n";
                      } 
else echo "А за Админом шпионить нехорошо!:)<br/>*******<br/>\n";
}
echo "<a href=\"ignor.php?id=$id&amp;ps=$ps&amp;nk=$usid&amp;rm=$rm&amp;ref=$ref\">Игнор</a><br/>\n";
echo "*******<br/>\n";   
if ($row["level"]>6){
echo "<a href=\"fullign.php?id=$id&amp;ps=$ps&amp;nk=$usid&amp;rm=$rm&amp;ref=$ref\">Полный игнор!</a><br/>\n";
echo "*******<br/>\n";
//echo "<a href=\"pwel.php?id=$id&amp;ps=$ps&amp;nk=$usid&amp;rm=$rm&amp;ref=$ref\">Послать его!</a><br/>\n";
//echo "*******<br/>\n";
}
echo "<a href=\"maf.php?id=$id&amp;ps=$ps&amp;rm=$rm&amp;ref=$ref\">В игру</a>\n";
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";
mysql_close ($link);

?>