Файл: sumerki.mobi/sumerki.mobi/ps.php
Строк: 447
<?php
//////////////////////////////////////////////////////////////
////////////////////// "Сумерки"///////////////////
//////////////////////Основатель: Mc Laren////////////////////
///////////////////Контакты: ICQ - 597687549//////////////////
/////////////////////Пример: Sumerki.Mobi/////////////////////
///////////Если ты это читаешь, значит скрипт слили :D////////
//////////////////////////////////////////////////////////////
define('PROTECTOR', 1);
$headmod = 'msg';//фикс. места
$textl='Cообщения';
include('files/path.php');
include('files/gzips.php');
include($path.'files/db.php');
include($path.'files/auth.php');
include($path.'files/func.php');
include($path.'files/core.php');
include($path.'files/head.php');
include($path.'files/zag.php');
switch($_GET[mod]){
default:
$q = mysql_query("SELECT COUNT(*) FROM `msg_r` WHERE `user_to` = '$log' AND `read` = '1';");
$new_mail = mysql_result($q, 0);
$w = mysql_query("SELECT COUNT(*) FROM `msg_r` WHERE `user_to` = '$log'");
$old_mail = mysql_result($w, 0);
$qo = mysql_query("SELECT COUNT(*) FROM `msg_i` WHERE `user_from` = '$log'");
$new_mailo = mysql_result($qo, 0);
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Почта';
echo '</div><div class="clearFix"></div></div></div></div>';
echo "<div class='button pad_bot_5 pad'><a href="ps.php?mod=read">    <img src='/theme/standart/images/galochka.png'/> Входящие [$new_mail/$old_mail]</a></div>";
echo "<div class='button pad_bot_5 pad'><a href="ps.php?mod=vxod">    <img src='/theme/standart/images/galochka.png'/> Исходящие [$new_mailo]</a></div>";
echo "<div class='button pad_bot_5 pad'><a href="ps.php?mod=write_message">    <img src='/theme/standart/images/galochka.png'/> Написать другу</a></div>";
echo "<div class='button pad_bot_5 pad'><a href="ps.php?mod=add_conts">    <img src='/theme/standart/images/galochka.png'/> Мои Друзья</a></div>";
echo "<div class='button pad_bot_5 pad'><a href="ps.php?mod=logsmif">    <img src='/theme/standart/images/galochka.png'/> История игнор листа</a></div>";
echo "<div class='button pad_bot_5 pad'><a href="ps.php?mod=delete_all">    <img src='/theme/standart/images/galochka.png'/> Очистить Входящую почту</a></div>";
echo "<div class='button pad_bot_5 pad'><a href="ps.php?mod=delete_all_vxod">    <img src='/theme/standart/images/galochka.png'/> Очистить Исходящую почту</a></div>";
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "<b>Подсказка:</b> <br>Регулярное удаление сообщений ускоряет загрузку страниц...";
echo '</div></div></div></div></div></div></div></div></div>';
break;
case 'delete_all':
$req = mysql_query("SELECT * FROM `msg_r` WHERE `user_to` = '$log' LIMIT 1");
////////////////////////////
if (mysql_num_rows($req)==0){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Эх...';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "У вас нет писем!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;}
mysql_query("DELETE FROM msg_r WHERE (user_to='$log')") or die("не пашет!");
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ура!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Почта очищена!";
echo '</div></div></div></div></div></div></div></div></div>';
break;
case 'logsmif':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'История игнора';
echo '</div><div class="clearFix"></div></div></div></div>';
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 5;
if($_GET[page] == "0")
{$i = 1;}
else{$i = ($_GET[page]*5)+1;}
$viso = mysql_num_rows(mysql_query("SELECT usr FROM info_ignor "));
$puslap = floor($viso/5);
$times = date("H:i");
$req = mysql_query("SELECT * FROM `info_ignor` where `usr`='$log' ORDER BY id DESC LIMIT $num,5");
$avto=mysql_num_rows($req);
if($avto==0){
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"История игноров пуста...";
echo '</div></div></div></div></div></div></div></div></div>';
}else{
while($chat = mysql_fetch_array($req))
{
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo" $chat[msg]";
echo '</div></div></div></div></div></div></div></div></div>';
}
}
if ($_GET[page] > 0)
{
echo "<h1><a href="ps.php?mod=logsmif&page=$back"><img alt="Icon" src="pic/ico/left_ico.png"></a>";
}
elseif ($_GET[page] == 0)
{
echo "<h1><img alt="Icon" src="pic/ico/left_ico.png">";
}
echo" ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="ps.php?mod=logsmif&page=$next"><img alt="Icon" src="pic/ico/right_ico.png"></a></h1>";}
else
{echo "<img alt="Icon" src="pic/ico/right_ico.png"></h1>";}
break;
case 'add_conts':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Поиск';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "<form action="ps.php?mod=save_conts" method="post">Игрок:<br/>";
echo "<input type="text" name="nick"> ";
echo "<input type="submit" value="Поиск" class="buuut"></form>";
echo '</div></div></div></div></div></div></div></div></div>';
break;
case 'write_message':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Пишем другу';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "<form method="post" action="ps.php?mod=save_message"><font color="#6FDBFF">Кому:</font>";
echo " <select name="to">";
$using = mysql_query("SELECT id FROM `users` WHERE `usr` = '$log'");
$u2 = mysql_fetch_array($using);
$result = mysql_result(mysql_query("SELECT COUNT(*) FROM `users`"),0);
$whiel = mysql_query("SELECT contact FROM `msg_users` WHERE `user_id` = '$u2[id]'");
$lists = mysql_fetch_array($whiel);
do{
printf("<option value="%s">%s</option><br/>",$lists[contact],$lists[contact]);
} while($lists = mysql_fetch_array($whiel));
echo "</select><br/>";
echo "Текст сообщения:<br/>";
echo "<textarea name="text" rows=5 cols=15 wrap="on"></textarea><br/><br/>";
echo "<input type="submit" value="Отправить" class="buuut"></form>";
echo '</div></div></div></div></div></div></div></div></div>';
break;
case 'wr':
if($udata[lvl]<"1"){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"В почту можно писать с 1 уровня!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if(!empty($_GET[go_user])){
$reqtmp = mysql_query("SELECT * FROM `msg_ignor` WHERE `usr` = '$log' and `contact` = '".mysql_real_escape_string($_GET['go_user'])."' LIMIT 1");
if (mysql_num_rows($reqtmp)>=1){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Эх...';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Вы находитесь в игноре у этого игрока!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if($_GET[go_user]=='NG-Team'){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Вам запрещено писать администраторам!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if($_GET[go_user]==$log){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Удивительно!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Самому себе нельзя писать письма!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo "$_GET[go_user]";
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "<form method="post" action="ps.php?mod=save_info&to=$_GET[go_user]"><font color="#6FDBFF">Кому:</font> <b>$_GET[go_user]</b>";
echo "<br/>Текст сообщения:<br/>";
echo "<textarea name="text" rows=5 cols=40 wrap="off"></textarea><br/><br/>";
echo "<input type="submit" value="Отправить" class="buuut"></form>";
echo '</div></div></div></div></div></div></div></div></div>';
}else{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Не выбран получатель!";
echo '</div></div></div></div></div></div></div></div></div>';
}
break;
case 'save_info':
if ($_POST[text] != "" && $_GET[to] != "")
{
if (isset($_POST[text]))
{
$text = htmlspecialchars(stripslashes($_POST[text]));
}
if (isset($_GET[to]))
{
$to = $_GET[to];
}
$time = date("H:i d.m.y");
mysql_query("INSERT INTO `msg_r` SET `user_from` = '$log', `user_to` = '$to', `time` = '$time', `read` = 1, `mail_msg` = '$text'");
mysql_query("INSERT INTO `msg_i` SET `user_from` = '$log', `user_to` = '$to', `time` = '$time',`mail_msg` = '$text'");
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Успешно!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Сообщение успешно отправлено $to!<br/> Время отправления: $time";
echo '</div></div></div></div></div></div></div></div></div>';
echo "<div class='b-panel gray-panel'>Сообщение успешно отправлено $to!<br/> Время отправления: $time</div>";
}
elseif ($_POST[text] == "" || $_POST[text] == null )
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Вы не ввели текст сообщения";
echo '</div></div></div></div></div></div></div></div></div>';
}
elseif ($_GET[to] == "" || $_GET[to] == null)
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Не выбран отправитель";
echo '</div></div></div></div></div></div></div></div></div>';
}
else
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Что то пошло не так";
echo '</div></div></div></div></div></div></div></div></div>';
}
break;
case 'save_message':
if($udata[lvl]<"1"){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Писать в почту можно с 1 уровня!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if($log==$_POST[to]){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Удивительно!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Себе писать нельзя!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_POST[text] != "" && $_POST[to] != "")
{
if (isset($_POST[text]))
{
$text = htmlspecialchars(stripslashes($_POST[text]));
}
if (isset($_POST[to]))
{
$to = $_POST[to];
}
$time = date("H:i d.m.y");
mysql_query("INSERT INTO `msg_r` SET `user_from` = '$log', `user_to` = '$to', `time` = '$time', `read` = 1, `mail_msg` = '$text'");
mysql_query("INSERT INTO `msg_i` SET `user_from` = '$log', `user_to` = '$to', `time` = '$time',`mail_msg` = '$text'");
echo "<div class='b-panel gray-panel'>Сообщение успешно отправлено $to!<br/> Время отправления: $time</div>";
}
elseif ($_POST[text] == "" || $_POST[text] == null )
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Вы не ввели текст письма";
echo '</div></div></div></div></div></div></div></div></div>';
}
elseif ($_POST[to] == "" || $_POST[to] == null)
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Не выбран отправитель!";
echo '</div></div></div></div></div></div></div></div></div>';
}
else
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Что то пошло не так!";
echo '</div></div></div></div></div></div></div></div></div>';
}
break;
case 'vxod':
$result = mysql_result(mysql_query("SELECT COUNT(*) FROM `msg_i` WHERE user_from = '$log'"),0);
if ($result == 0)
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Эх...';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Сообщений нет!";
echo '</div></div></div></div></div></div></div></div></div>';
}else{
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 5;
if($_GET[page] == "0")
{$i = 0;}
else{$i = ($_GET[page]*5)+1;}
$viso = mysql_num_rows(mysql_query("SELECT komentaras FROM komentarai"));
$puslap = floor($viso/5);
$message = mysql_query("SELECT * FROM msg_i WHERE user_from = '$log' ORDER BY id DESC LIMIT $num,5");
while($msg = mysql_fetch_array($message))
{
$text = $msg[mail_msg];
$text = strip_tags($text);
$from = strip_tags($msg['user_to']);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "<font color="#6FDBFF"><b>Кому: </b></font>"; echo " <a href="search.php?nick=$from&go=go"> $from</a> <small>$msg[time]</small><br/>
<font color="#A6FFB3"><b>Сообщение:</b>:</font> $text
<br/><div align="right"><a class="buuut" href="ps.php?user=$from&mod=answer">Ответить</a> <a class="buuut" href="ps.php?iden=$msg[id]&mod=delete_mess_vxod">Удалить</a></div>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<div class="btn nav2-btn"><a href="ps.php?mod=vxod&page=$back">«</a>";
}
elseif ($_GET[page] == 0)
{
echo "<div class="btn nav2-btn">«";
}
echo" • ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="ps.php?mod=vxod&page=$next">»</a></div>";}
else
{echo "»</div>";}
}
break;
case 'read':
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Входящие';
echo '</div><div class="clearFix"></div></div></div></div>';
$result = mysql_result(mysql_query("SELECT COUNT(*) FROM `msg_r` WHERE user_to = '$log'"),0);
if ($result == 0)
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Эх...';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Сообщений нет!";
echo '</div></div></div></div></div></div></div></div></div>';
}
else {
if ($_GET[page] == "" || $_GET[page] < 0 || $_GET[page] == "0")
{
$_GET[page] = 0;
}
$next = $_GET[page] + 1;
$back = $_GET[page] - 1;
$num = $_GET[page] * 5;
if($_GET[page] == "0")
{$i = 0;}
else{$i = ($_GET[page]*5)+1;}
$viso = mysql_num_rows(mysql_query("SELECT komentaras FROM komentarai"));
$puslap = floor($viso/5);
$message = mysql_query("SELECT * FROM msg_r WHERE user_to = '$log' ORDER BY id DESC LIMIT $num,5");
while($msg = mysql_fetch_array($message))
{
if ($msg[read] == 1)
{
mysql_query("UPDATE `msg_r` SET `read` = 0 WHERE `user_to` = '$log'");
}
if ($msg[read] == 1)
{
$read = "<img width='12' height='12' src='pic/ico/mail_no.png'>";
} else
{
$read = "<img width='12' height='12' src='pic/ico/mail_yes.png'>";
}
$text = $msg[mail_msg];
$text = strip_tags($text);
$from = strip_tags($msg['user_from']);
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "$read <font color="#6FDBFF"><b>От:</b></font>"; echo " <a href="search.php?nick=$from&go=go"><font color='#FF7777'><b>$from</b></font></a>";
if($pic['prava']==5){echo'<font color="lime">Адм.</font>';
}
if($pic['prava']==2){echo'<font color="gold">Мод.</font>';
}
echo " <small>($msg[time])</small><br/><font color="#A6FFB3"><b>Cообщение</b>:</font> $text
<br/><div align="right"><a class="buuut" href="ps.php?user=$from&mod=answer">Ответить</a> <a class="buuut" href="ps.php?iden=$msg[id]&mod=delete_mess">Удалить</a></div>";
echo '</div></div></div></div></div></div></div></div></div>';
}
if ($_GET[page] > 0)
{
echo "<div class="btn nav2-btn"><a href="ps.php?mod=read&page=$back">«</a>";
}
elseif ($_GET[page] == 0)
{
echo "<div class="btn nav2-btn">«";
}
echo" • ";
if($_GET[page] < $puslap || $_GET[page] == "" || $_GET[page] == 0)
{echo "<a href="ps.php?mod=read&page=$next">»</a></div>";}
else
{echo "»</div>";}
}
break;
case 'delete_all_vxod':
$req = mysql_query("SELECT * FROM `msg_i` WHERE `user_from` = '$log' LIMIT 1");
////////////////////////////
if (mysql_num_rows($req)==0){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Эх...';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Сообщений нет!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;}
mysql_query("DELETE FROM msg_i WHERE (user_from='$log')") or die("не пашет!");
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ура!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Письма очищены!";
echo '</div></div></div></div></div></div></div></div></div>';
break;
case 'answer':
if($udata[lvl]<"1"){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo'В почту писать можно с 1 уровня!';
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
$reqtmp = mysql_query("SELECT * FROM `msg_ignor` WHERE `usr` = '$log' and `contact` = '".mysql_real_escape_string($_GET['user'])."'LIMIT 1");
if (mysql_num_rows($reqtmp)>=1){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Эх...';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo'Вы находитесь в игноре у этого игрока!';
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if($_GET[user]=='NG-Team'){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!!!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bgray"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo'Администрации сообщения писать нельзя!';
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if (isset($_GET[user]))
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo "$_GET[user]";
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "<form method="post" action="ps.php?mod=send_message"><font color="#6FDBFF">Кому:</font> $_GET[user]<br/>";
echo "Текст Сообщения:<br/>";
echo "<input type="hidden" name="to" value="$_GET[user]">";
echo "<textarea name="text" wrap="on"></textarea><br/><input type="submit" value="Написать" class="buuut"></form>";
echo '</div></div></div></div></div></div></div></div></div>';
}
else
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Не выбран получатель!";
echo '</div></div></div></div></div></div></div></div></div>';
}
break;
case 'send_message':
if($udata[lvl]<"1"){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Писать письма можно с 1 уровня!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
if ($_POST[text] != "" && $_POST[to] != "")
{
$time = date("H:i d.m.y");
mysql_query("INSERT INTO `msg_r` SET `user_from` = '$log', `user_to` = '$_POST[to]', `time` = '$time', `read` = 1, `mail_msg` = '$_POST[text]'");
mysql_query("INSERT INTO `msg_i` SET `user_from` = '$log', `user_to` = '$_POST[to]', `time` = '$time',`mail_msg` = '$_POST[text]'");
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ура!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Сообщение успешно отправлено $_POST[to]!<br/> Время отправления: $time";
echo '</div></div></div></div></div></div></div></div></div>';
}
elseif ($_POST[text] == ""){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Вы не ввели текст сообщения!";
echo '</div></div></div></div></div></div></div></div></div>';
}
elseif ($_POST[to] == "" || $_POST[to] == null)
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Не выбран отправитель!";
echo '</div></div></div></div></div></div></div></div></div>';
}
else
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Что то пошло не так!";
echo '</div></div></div></div></div></div></div></div></div>';
}
break;
case 'delete_mess':
if (isset($_GET[iden]))
{
mysql_query("DELETE FROM `msg_r` WHERE `id` = '".intval($_GET['iden'])."' LIMIT 1");
mysql_query("OPTIMIZE TABLE `msg_r`");
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ура!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Вы успешно удалили сообщение!";
echo '</div></div></div></div></div></div></div></div></div>';
} else
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Что то пошло не так!";
echo '</div></div></div></div></div></div></div></div></div>';
}
break;
case 'delete_mess_vxod':
if (isset($_GET[iden]))
{
mysql_query("DELETE FROM `msg_i` WHERE `id` = '".intval($_GET['iden'])."' LIMIT 1");
mysql_query("OPTIMIZE TABLE `msg_r`");
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ура!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Вы успешно удалили сообщение!";
echo '</div></div></div></div></div></div></div></div></div>';
} else
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Что то пошло не так!";
echo '</div></div></div></div></div></div></div></div></div>';
}
break;
case 'save_conts':
if($_POST[nick]=='NG-Team'){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Администраторов нельзя добавлять в друзья!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
$_POST[nick] = htmlspecialchars("$_POST[nick]");
$find = mysql_num_rows(mysql_query("SELECT usr FROM users WHERE usr LIKE '%$_POST[nick]%'"));
if ($_POST[nick] != "")
{
echo "<div class="b-panel gray-panel">Найдено игроков: <i>$find</i></div>";
echo "<form action="ps.php?mod=adding" method="post">
<select name="user" value="one"><option name="one">--Выбрать--</option>";
$useras = mysql_query("SELECT usr FROM users WHERE usr LIKE '%$_POST[nick]%'");
while ($users = mysql_fetch_array($useras))
{
$users = strip_tags($users['usr']);
echo "<option name="$users">$users</option>";
}
echo "</select><br/><input type="submit" value="Ok" class="ibutton"></form>";
}
elseif ($_POST[nick] == "") {
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Вы не ввели имя в поле!";
echo '</div></div></div></div></div></div></div></div></div>';
}
else
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Нет такого игрока!";
echo '</div></div></div></div></div></div></div></div></div>';
}
break;
case 'info_m':
$_GET[nick] = htmlspecialchars("$_GET[nick]");
$find = mysql_num_rows(mysql_query("SELECT usr FROM users WHERE usr LIKE '%$_GET[nick]%'"));
if ($_GET[nick] != "")
{
echo "<div class="b-panel gray-panel">Найдено персонажей: <i>$find</i></div>";
echo "<form action="ps.php?mod=adding" method="post">
<select name="user" value="one"><option name="one">--Выбрать--</option>";
$useras = mysql_query("SELECT usr FROM users WHERE usr LIKE '%$_GET[nick]%'");
while ($users = mysql_fetch_array($useras))
{
$users = strip_tags($users['usr']);
echo "<option name="$users">$users</option>";
}
echo "</select><br/><input type="submit" value="Ok" class="ibutton"></form>";
}
elseif ($_GET[nick] == "") {
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Что то пошло не так!";
echo '</div></div></div></div></div></div></div></div></div>';
}
else
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Нет такого игрока!";
echo '</div></div></div></div></div></div></div></div></div>';
}
break;
case 'wr2':
echo'<div class="b-panel gray-panel">Стоимость проклятия 5 <img src="pic/golds.gif"/><br>Персонаж на которого вы наложили проклятие 48 часов не сможет нападать на вас в окрестностях.';
echo "</div><div class='btn nav2-btn'><a href="ps.php?mod=3"> Наложить проклятие</a></div>";
break;
case '3':
if(empty($_POST[name])){
echo'<div class="b-panel gray-panel">Введите ник:<br/>';
echo "<form action="ps.php?mod=3" method="post">";
echo"<input class='input' type="text" size="10" name="name" maxlength="15"/><br/>";
echo '<input class="button" type="submit" value="Проклянуть" /></form></div>';
}else{
if($_POST[name]==$log){
echo'<div class="b-panel gray-panel">На себя проклятия налаживать нельзя</div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
$req = mysql_query("SELECT * FROM `proklyat` WHERE `usr2`= '$_POST[name]' and `usr` = '$log' LIMIT 1");
////////////////////////////
$avto=mysql_num_rows($req);
if($avto==1){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Вы уже наложили проклятие на этого игрока!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
$name=htmlspecialchars($_POST[name]);
if($udata['gold']<5){
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "У вас не хватает золота!";
echo '</div></div></div></div></div></div></div></div></div>';
include($path.'files/down.php');
include($path.'files/meny.php');
exit;
}
$udata[gold]=$udata[gold]-5;//mony
mysql_query("UPDATE `users` SET `gold` = '$udata[gold]' WHERE `usr` = '$log'");
$time=time()+172800;
mysql_query("INSERT INTO `proklyat` SET `usr2` = '$_POST[name]',`usr` = '$log', `timeout` = '$time'");
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ура!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo"Вы успешно наложили проклятие на персонажа: <b>$_POST[name]</b>";
echo '</div></div></div></div></div></div></div></div></div>';
$time = date("H:i d.m.y");
$text = '<div class="b-panel gray-panel">Игрок '.$log.' наложил на вас проклятие на 48 часов!</div>';
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'Система', `user_to` = '".mysql_real_escape_string($_POST[name])."', `time` = '$time', `read` = 1, `mail_msg` = '$text'");
}
break;
case 'adding':
$user = mysql_query("SELECT usr FROM users WHERE usr LIKE '".mysql_real_escape_string($_POST['user'])."'");
$users = mysql_fetch_array($user);
$_POST[user] = htmlspecialchars(stripslashes($_POST[user]));
$whiel = mysql_query("SELECT id FROM users WHERE usr='$log' LIMIT 1");
$u = mysql_fetch_array($whiel);
$c = mysql_query("SELECT contact FROM msg_users WHERE contact LIKE '$_POST[user]' and user_id = '$u[id]' LIMIT 1");
$contacts = mysql_fetch_array($c);
$time = date("H:i d.m.y");
if ($_POST[user] == $users[usr] && $_POST[user] != $log && $_POST[user] != $contacts[contact]) {
mysql_query("INSERT INTO msg_users SET user_id = '$u[id]', contact = '$_POST[user]', time = '$time'");
$time = date("H:i d.m.y");
$text = '<div class="b-panel gray-panel">Вас только что добавил в друзья '.$log.' </div>';
mysql_query("INSERT INTO `msg_r` SET `user_from` = 'System', `user_to` = '".mysql_real_escape_string($_POST[user])."', `time` = '$time', `read` = 1, `mail_msg` = '$text'");
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ура!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "$_POST[user] успешно добавлен в Друзья!";
echo '</div></div></div></div></div></div></div></div></div>';
}
elseif ($_POST[user] ==$log)
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Странно!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Себя нельзя добавлять в друзья!";
echo '</div></div></div></div></div></div></div></div></div>';
}
elseif ($_POST[user] == $contacts[contact])
{
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Ошибка!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Игрок уже находится в списке ваших друзей!";
echo '</div></div></div></div></div></div></div></div></div>';
}
else {
echo '<div class="zagolovok"><div class="zagolovok1"> <div class="zagolovok2"><div class="zagolovok_right"></div><div class="zagolovok_left"></div><div class="ch_name">';
echo 'Стоп!';
echo '</div><div class="clearFix"></div></div></div></div>';
echo '<div class="fon bg"><div class="bg1"><div class="bg2"><div class="bg3"><div class="bg4"><div class="bg5"><div class="bg6"><div class="bg7"><div class="bg8">';
echo "Не балуйся!";
echo '</div></div></div></div></div></div></div></div></div>';
}
break;
}
include($path.'files/down.php');
include($path.'files/meny.php');
?>