Размер файла: 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=\"Ошибка\" 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=\"Ошибка\" 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&ps=$ps&rm=$rm&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&ps=$ps&rm=$rm&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&ps=$ps&nk=$usid&rm=$rm&ref=$ref\">Пнуть</a><br/>\n";
echo "*******<br/>\n";
}
if($row["level"] > 4)
{
echo "<a href=\"bann.php?id=$id&ps=$ps&nk=$usid&rm=$rm&ref=$ref\">Забанить</a><br/>\n";
//echo "Consult administrator when use:!!!<br/>";
//echo "<a href=\"bannip.php?id=$id&ps=$ps&nk=$usid&rm=$rm&ref=$ref\">Банн ip+soft!!!</a><br/>\n";
echo "*******<br/>\n";
}
if($row["level"] > 5)
{
if(($inf["level"]<7)||($row["level"]==7)){
echo "Его ip: $us_ip<br/>\n";
echo "Он с: $us_soft<br/>\n";
echo "*******<br/>\n";
}
else echo "А за Админом шпионить нехорошо!:)<br/>*******<br/>\n";
}
echo "<a href=\"ignor.php?id=$id&ps=$ps&nk=$usid&rm=$rm&ref=$ref\">Игнор</a><br/>\n";
echo "*******<br/>\n";
if ($row["level"]>6){
echo "<a href=\"fullign.php?id=$id&ps=$ps&nk=$usid&rm=$rm&ref=$ref\">Полный игнор!</a><br/>\n";
echo "*******<br/>\n";
//echo "<a href=\"pwel.php?id=$id&ps=$ps&nk=$usid&rm=$rm&ref=$ref\">Послать его!</a><br/>\n";
//echo "*******<br/>\n";
}
echo "<a href=\"maf.php?id=$id&ps=$ps&rm=$rm&ref=$ref\">В игру</a>\n";
echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";
mysql_close ($link);
?>