Файл: l2ps_v5/statusx.php
Строк: 176
<?php
include_once("files/zag.php");
include_once("files/ini.php");
$polz=mysql_query("SELECT * FROM `users` WHERE `udata0`='$log' AND `udata1`='$pas' LIMIT 1");
if(mysql_num_rows($polz)==0){
header ("Location: index.php?error");
}else{
$req = mysql_query("SELECT * FROM `users` WHERE `udata0` = '$log'");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto=="0"){
echo'Нет такого персонажа!';
include ("files/down.php");
exit;
}
$usdata = mysql_fetch_array($req);
if (isset($_GET['set']))
{
mysql_query("UPDATE `users` SET `udata91` = '".intval($_GET['st'])."' WHERE `udata0` = '$log' LIMIT 1");
if (!isset($err)){
echo"<center><b>Новый статус успешно установлен!</center></b>";
}
}
if (isset($usdata))
{
echo "Текущий статус: ";
if ($udata91==0){echo "<img src='/l2pic/status/on.gif' alt='' class='icon'/> <br/>n";}
else if ($udata91==1){echo "<img src='/l2pic/status/gotov_boltat.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==2){echo "<img src='/l2pic/status/zaniat.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==3){echo "<img src='/l2pic/status/boleu.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==4){echo "<img src='/l2pic/status/depressia.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==5){echo "<img src='/l2pic/status/dumau.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==6){echo "<img src='/l2pic/status/kuru.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==7){echo "<img src='/l2pic/status/kushau.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==8){echo "<img src='/l2pic/status/love.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==9){echo "<img src='/l2pic/status/tv.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==10){echo "<img src='/l2pic/status/music.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==11){echo "<img src='/l2pic/status/vanna.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==12){echo "<img src='/l2pic/status/tualet.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==13){echo "<img src='/l2pic/status/sex.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==14){echo "<img src='/l2pic/status/igrau.png' alt='' class='icon'/><br/>n";}
else if ($udata91==15){echo "<img src='/l2pic/status/pivo.png' alt='' class='icon'/><br/>n";}
else if ($udata91==16){echo "<img src='/l2pic/status/sonni.png' alt='' class='icon'/><br/>n";}
////////
else if ($udata91==17){echo "<img src='/l2pic/status/1.png' alt='' class='icon'/><br/>n";}
else if ($udata91==18){echo "<img src='/l2pic/status/12.png' alt='' class='icon'/><br/>n";}
else if ($udata91==19){echo "<img src='/l2pic/status/13.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==20){echo "<img src='/l2pic/status/14.png' alt='' class='icon'/><br/>n";}
else if ($udata91==21){echo "<img src='/l2pic/status/18.png' alt='' class='icon'/><br/>n";}
else if ($udata91==22){echo "<img src='/l2pic/status/19.png' alt='' class='icon'/><br/>n";}
else if ($udata91==23){echo "<img src='/l2pic/status/31.png' alt='' class='icon'/> <br/>n";}
else if ($udata91==24){echo "<img src='/l2pic/status/7.png' alt='' class='icon'/> <br/>n";}
if ($status>=0){ echo "» <a href='?p=status&st=0&set'>Убрать статус</a><hr>n";}
echo "<img src='/l2pic/status/gotov_boltat.png' alt='' class='icon'/> <a href='?p=status&st=1&&go=set'>Готов болтать</a><br />n";
echo "<img src='/l2pic/status/zaniat.png' alt='' class='icon'/> <a href='?p=status&st=2&set'>Не беспокоить</a><br />n";
echo "<img src='/l2pic/status/boleu.png' alt='' class='icon'/> <a href='?p=status&st=3&set'>Болею</a><br />n";
echo "<img src='/l2pic/status/depressia.png' alt='' class='icon'/> <a href='?p=status&st=4&set'>Депрессия</a><br />n";
echo "<img src='/l2pic/status/dumau.png' alt='' class='icon'/> <a href='?p=status&st=5&set'>Думаю</a><br />n";
echo "<img src='/l2pic/status/kuru.png' alt='' class='icon'/> <a href='?p=status&st=6&set'>Курю</a><br />n";
echo "<img src='/l2pic/status/kushau.png' alt='' class='icon'/> <a href='?p=status&st=7&set'>Кушаю</a><br />n";
echo "<img src='/l2pic/status/love.png' alt='' class='icon'/> <a href='?p=status&st=8&set'>Люблю</a><br />n";
echo "<img src='/l2pic/status/tv.png' alt='' class='icon'/> <a href='?p=status&st=9&set'>Смотрю тв</a><br />n";
echo "<img src='/l2pic/status/music.png' alt='' class='icon'/> <a href='?p=status&st=10&set'>Слушаю музыку</a><br />n";
echo "<img src='/l2pic/status/vanna.png' alt='' class='icon'/> <a href='?p=status&st=11&set'>В ванной</a><br />n";
echo "<img src='/l2pic/status/tualet.png' alt='' class='icon'/> <a href='?p=status&st=12&set'>В туалете</a><br />n";
echo "<img src='/l2pic/status/sex.png' alt='' class='icon'/> <a href='?p=status&st=13&set'>Занимаюсь сексом</a><br />n";
echo "<img src='/l2pic/status/igrau.png' alt='' class='icon'/> <a href='?p=status&st=14&set'>Играю в игру</a><br />n";
echo "<img src='/l2pic/status/pivo.png' alt='' class='icon'/> <a href='?p=status&st=15&set'>Пью пиво</a><br />n";
echo "<img src='/l2pic/status/sonni.png' alt='' class='icon'/> <a href='?p=status&st=16&set'>Сонный</a><br />n";
//////////
echo "<img src='/l2pic/status/1.png' alt='' class='icon'/> <a href='?p=status&st=17&set'>В сети</a><br />n";
echo "<img src='/l2pic/status/12.png' alt='' class='icon'/> <a href='?p=status&st=18&set'>На учебе</a><br />n";
echo "<img src='/l2pic/status/13.png' alt='' class='icon'/> <a href='?p=status&st=19&set'>Вопрос</a><br />n";
echo "<img src='/l2pic/status/14.png' alt='' class='icon'/> <a href='?p=status&st=20&set'>В Пути</a><br />n";
echo "<img src='/l2pic/status/18.png' alt='' class='icon'/> <a href='?p=status&st=21&set'>На работе</a><br />n";
echo "<img src='/l2pic/status/19.png' alt='' class='icon'/> <a href='?p=status&st=22&set'>С друзьями</a><br />n";
echo "<img src='/l2pic/status/31.png' alt='' class='icon'/> <a href='?p=status&st=23&set'>Сплю</a><br />n";
echo "<img src='/l2pic/status/7.png' alt='' class='icon'/> <a href='?p=status&st=24&set'>В телефоне</a><br />n";}
}
include_once"files/down.php";
?>