Просмотр файла ilichat_exclusive/info.php

Размер файла: 20.81Kb
<?php
error_reporting(0);
include('start.php');
include("config.php");
include("./includes/".$ver."/banned");
$ttl="Профайл";
list($msec, $sec) = explode(chr(32), microtime()); 
$headtime = $sec + $msec;

$ref = rand(1000, 9999);

switch($ver)
{
////////////////////////////////////////////////////////
//WML VERSION
////////////////////////////////////////////////////////
case 'wml':
header ("Content-type:text/vnd.wap.wml; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-revalidate");

//AUTH
$id = intval($_SESSION['id']);
$password = mysql_escape_string($_SESSION['password']);
$q = mysql_query("SELECT `level`, `default`, `posts` FROM `chat_users` WHERE `id` = '".$id."' AND `password` = '".md5($password)."';");
if(mysql_num_rows($q) == 0)
{
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.3//EN\" \"http://www.wapforum.org/DTD/wml13.dtd\"><wml>\n";
echo "<card title=\"ERROR\" ontimer=\"index.php?ver=wml\"><timer value=\"15\"/><p align=\"left\">\n";
echo "<small>Ошибка авторизации!<br/>\n";
echo"<br/>$wmlfoot";
echo "</small></p></card></wml>";
exit();
}
//END AUTH

$us = mysql_fetch_array($q);
$level = $us['level'];
$default = $us['default'];
$posts = $us['posts'];
//ONLINE
$online = time() + 60;
$update = mysql_query("UPDATE `chat_users` SET `time` = '".$online."', `place` = 0, `ip` = '".getenv('REMOTE_ADDR')."', `ua` = '".htmlspecialchars(getenv('HTTP_USER_AGENT'))."' WHERE `id` = '".$id."';");
//END ONLINE

if(isset($_GET['rid']))
{
$sql = mysql_query("SELECT `type` FROM `chat_rooms` WHERER `id` = '".intval($_GET['rid'])."';");
$type = mysql_result($sql, 0);
	if($type == 0)
	{
	$url = "room.php?".SID."&amp;nocache=".rand(10000, 99999)."&amp;ver=wml&amp;rid=".intval($_GET['rid']);
	}
	else
	{
	$url = "mroom.php?".SID."&amp;nocache=".rand(10000, 99999)."&amp;ver=wml&amp;rid=".intval($_GET['rid']);
	}
}
else
{
$key = $_GET['key'];
$url = "intim.php?".SID."&amp;nocache=".rand(10000, 99999)."&amp;ver=wml&amp;key=$key";
}

$q = mysql_query("SELECT * FROM `chat_users` WHERE `id` = '".intval($_GET['uid'])."';");

if(mysql_num_rows($q) == 0)
{
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.3//EN\" \"http://www.wapforum.org/DTD/wml13.dtd\"><wml>\n";
echo "<card id=\"error\" title=\"Error\" ontimer=\"$url\"><timer value=\"10\"/><p align=\"left\">\n";
echo "Пользователь не найден в базе данных.<br/>\n";
}
else
{
$user = mysql_fetch_array($q);
$uid = $user['id'];
$nick = $user['nickname'];
$pass = $user['password'];
$ip = $user['ip'];
$ua = $user['ua'];
$kick = $user['kick'];
$moder = $user['moder'];
$reason = $user['reason'];
$name = $user['name'];
$site = $user['site'];
$sex = $user['sex'];
$from = $user['from'];
$mobile = $user['mobile'];
$email = $user['email'];
$birthday = $user['birthday'];
$about = $user['about'];
$posts = $user['posts'];
$lev = $user['level'];
$answers = $user['answers'];
$gbalans = $user['gbalans'];
$status = $user['status'];
$regdate = $user['regdate'];
$place = $user['place'];
$photo_type = $user['photo'];
$time = $user['time'];
$mood = $user['mood'];

echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.3//EN\" \"http://www.wapforum.org/DTD/wml13.dtd\"><wml>\n";
echo "<card title=\"$ttl\"><p align=\"left\">\n";
echo'<br/>';
if($_GET['rid'])
{
echo "<input type=\"text\" name=\"msg$nocache\" maxlength=\"300\" value=\"\"/><br/>\n";

	if($us['default'] == 0)
	{
	echo "<select name=\"to$nocache\" value=\"0\">\n";
	echo "<option value=\"".$uid."\">Приватно</option>\n";
	echo "<option value=\"0\">Всем</option>\n";
	echo "</select><br/>\n";
	}
	else
	{
	echo "<select name=\"to$nocache\" value=\"1\">\n";
	echo "<option value=\"".$uid."\">Приватно</option>\n";
	echo "<option value=\"0\">Всем</option>\n";
	echo "</select><br/>\n";
	}
echo "<anchor>Сказать<go href=\"room.php?".SID."&amp;ver=wml&amp;rid=$rid&amp;nocache=$nocache\" method=\"post\">\n";
echo "<postfield name=\"msg\" value=\"$(msg$nocache)\"/>\n";
echo "<postfield name=\"uid\" value=\"$uid\"/>\n";
if($us['posts'] >= 100) echo "<postfield name=\"to\" value=\"$(to$nocache)\"/>\n";
echo "</go></anchor><br/><br/>\n";
}
if($_GET['key'])
{
echo "<input type=\"text\" name=\"msg$nocache\" maxlength=\"300\" value=\"\"/><br/>\n";

	if($us['default'] == 0)
	{
	echo "<select name=\"to$nocache\" value=\"0\">\n";
	echo "<option value=\"".$uid."\">Приватно</option>\n";
	echo "<option value=\"0\">Всем</option>\n";
	echo "</select><br/>\n";
	}
	else
	{
	echo "<select name=\"to$nocache\" value=\"1\">\n";
if($us['posts'] >= 100)	echo "<option value=\"".$uid."\">Приватно</option>\n";
	echo "<option value=\"0\">Всем</option>\n";
	echo "</select><br/>\n";
	}
echo "<anchor>Сказать<go href=\"intim.php?".SID."&amp;ver=wml&amp;key=$key&amp;nocache=$nocache\" method=\"post\">\n";
echo "<postfield name=\"msg\" value=\"$(msg$nocache)\"/>\n";
echo "<postfield name=\"uid\" value=\"$uid\"/>\n";
if($us['posts'] > 100) echo "<postfield name=\"to\" value=\"$(to$nocache)\"/>\n";
echo "</go></anchor><br/><br/>\n";
}
echo "<u>Ник:</u> ".$nick."<br/>\n";
echo "<u>ID:</u> $uid<br/>";
echo "<u>Имя:</u> $name<br/>\n";
echo "<u>Статус:</u> $status<br/>\n";
//test
if ($handle = opendir('res/users/fotos/'.$uid.'')) 
{ 
while (false !== ($file = readdir($handle))) 
{
if ($file != "." && $file != ".." && $file != "Thumbs.db") 
{  
$a[]=$file;
}  
} 
closedir($handle);  
}
$cnt=count($a);
		if($cnt != 0)
		{
				echo"<u>Картинки:</u>";
if ($handle = opendir('res/users/fotos/'.$uid.'')) 
{ 
		$c = 1;
    while (false !== ($file = readdir($handle))) 
    {  
        if ($file != "." && $file != ".." && $file != "Thumbs.db") 
        {  
            echo "<a href=\"res/users/fotos/$uid/$file\">[$c]</a>\n";  
			$c++;
			}
        }  

    } 
echo"<br/>";
closedir($handle);  
}
//
//test
if ($handle = opendir('res/users/music/'.$uid.'')) 
{ 
while (false !== ($file = readdir($handle))) 
{
if ($file != "." && $file != ".." && $file != "Thumbs.db") 
{  
$a[]=$file;
}  
} 
closedir($handle);  
}
$cnt=count($a);
		if($cnt != 0)
		{
				echo"<u>Звуки:</u>";
if ($handle = opendir('res/users/music/'.$uid.'')) 
{ 
		$c = 1;
    while (false !== ($file = readdir($handle))) 
    {  
        if ($file != "." && $file != ".." && $file != "Thumbs.db") 
        {  
            echo "<a href=\"res/users/music/$uid/$file\">[$c]</a>\n";  
			$c++;
			}
        }  

    } 
echo"<br/>";
closedir($handle);  
}
//
//
$god = "$birthday";
$arrr=explode("-",$god);
if($arrr[1] == 1)
{
$mess = "Января";
}
if($arrr[1] == 2)
{
$mess = "Февраля";
}
if($arrr[1] == 3)
{
$mess = "Марта";
}
if($arrr[1] == 4)
{
$messs = "Апреля";
}
if($arrr[1] == 5)
{
$mess = "Мая";
}
if($arrr[1] == 6)
{
$mess = "Июня";
}
if($arrr[1] == 7)
{
$mess = "Июля";
}
if($arrr[1] == 8)
{
$mess = "Августа";
}
if($arrr[1] == 9)
{
$mess = "Сентября";
}
if($arrr[1] == 10)
{
$mess = "Октября";
}
if($arrr[1] == 11)
{
$mess = "Ноября";
}
if($arrr[1] == 12)
{
$mess = "Декабря";
}
//
echo "<u>День рождения:</u> $arrr[0] $mess $arrr[2]<br/>\n";
if($sex == 0)
{
echo "<u>Пол:</u> мужской<br/>\n";
}
elseif($sex == 1)
{
echo "<u>Пол:</u> женский<br/>\n";
}
echo "<u>Город</u>: $from<br/>\n";
echo "<u>Е-Маил:</u> <a href=\"mailto:$email\">$email</a><br/>\n";
echo "<u>Модель телефона:</u> $mobile<br/>\n";
include "includes/text_array/wml_info.php";
if($lev == 4)
{
$about = preg_replace($search, $replace, $about); 
}
echo "<u>О себе:</u> $about<br/>\n";
echo "<u>Количество постов:</u> $posts<br/>\n";
echo "<u>Ответов в викторине:</u> $answers<br/>\n";
echo "<u>Игровой баланс:</u> $gbalans<br/>\n";
$data = "$regdate";
$arr=explode("-",$data);
if($arr[1] == 01)
{
$mes = "Января";
}
if($arr[1] == 02)
{
$mes = "Февраля";
}
if($arr[1] == 03)
{
$mes = "Марта";
}
if($arr[1] == 04)
{
$mes = "Апреля";
}
if($arr[1] == 05)
{
$mes = "Мая";
}
if($arr[1] == 06)
{
$mes = "Июня";
}
if($arr[1] == 07)
{
$mes = "Июля";
}
if($arr[1] == 08)
{
$mes = "Августа";
}
if($arr[1] == 09)
{
$mes = "Сентября";
}
if($arr[1] == 10)
{
$mes = "Октября";
}
if($arr[1] == 11)
{
$mes = "Ноября";
}
if($arr[1] == 12)
{
$mes = "Декабря";
}
echo "<u>Дата регистрации:</u> $arr[0] $mes $arr[2]<br/>\n";
	if($level == 3 && $lev != 4)
	{
	echo "[IP]: ".$ip."<br/>\n";
	echo "[UserAgent]: ".$ua."<br/>\n";
	}
	elseif($level == 3)
	{
	echo "[IP]: скрыто<br/>\n";
	echo "[UserAgent]: скрыто<br/>\n";
	}
	if($level == 4)
	{
	echo "[IP]: ".$ip."<br/>\n";
	echo "[UserAgent]: ".$ua."<br/>\n";
	}
	if($level == 4)
	{
		if(time() < $kick)
		{
		echo "Данный пользователь заблокирован.<br/>\n";
		$tkick = $kick - time();
		if($tkick < 60 && $tkick > 0)
		{
		$var = "sec.";
		}
		elseif($tkick < 3600 && $tkick > 60)
		{
		$new = $tkick;
		$tkick = $new/60;
		$var = "min.";
		}
		elseif($tkick < 86400 && $tkick > 3600)
		{
		$new = $tkick;
		$tkick = $new/3600;
		$var = "hours";
		}
		elseif($tkick > 86400)
		{
		$new = $tkick;
		$tkick = $new/86400;
		$var = "days";
		}
		$tkick = round($tkick, 2);
		echo "Выпнут(а) модератором <u>".$moder."</u>.<br/>\n";
		echo "Разбан через <u>".$tkick." $var</u><br/>\n";
		echo "Причина: <u>".$reason."</u><br/>\n";
		}
	}

}
echo"<br/><br/>";
echo"===<br/>";
if($level != 0) echo "• <a href=\"kick.php?".SID."&amp;ver=wml&amp;rid=$rid&amp;uid=$uid&amp;nocache=$nocache\">Пнуть</a><br/>\n";
if($level >= 2) echo "• <a href=\"ban.php?".SID."&amp;ver=wml&amp;rid=$rid&amp;uid=$uid&amp;nocache=$nocache\">Удалить</a><br/>\n";
if($level > 2) echo "• <a href=\"ipua.php?".SID."&amp;ver=wml&amp;rid=$rid&amp;uid=$uid&amp;nocache=$nocache\">Забанить по IP+UA</a><br/>\n";
if($level == 4) echo "• <a href=\"ip.php?".SID."&amp;ver=wml&amp;rid=$rid&amp;uid=$uid&amp;nocache=$nocache\">Забанить по IP</a><br/>\n";
echo"===<br/>";
echo "• <a href=\"ignor.php?".SID."&amp;ver=wml&amp;mod=add&amp;uid=$uid\">Игнорировать</a><br/>\n";
if($_GET['rid']) echo "• <a href=\"$url\">В чат</a><br/>\n";
if($_GET['key']) echo "• <a href=\"$url\">В чат</a><br/>\n";
echo "• <a href=\"menu.php?".SID."&amp;ver=wml\">В прихожую</a><br/>\n";
echo"<br/>$wmlfoot";
echo "</p></card></wml>";
break;

////////////////////////////////////////////////////////
//HTML VERSION
////////////////////////////////////////////////////////
case 'html':
header ("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-revalidate");

//AUTH
$id = intval($_SESSION['id']);
$password = mysql_escape_string($_SESSION['password']);
$q = mysql_query("SELECT `level`, `default`, `posts` FROM `chat_users` WHERE `id` = '".$id."' AND `password` = '".md5($password)."';");
if(mysql_num_rows($q) == 0)
{
echo "$css";
echo'<title>'.$ttl.'</title>';
echo'<div class="d3">Ошибка</div>';
echo "<div class=\"d5\">Ошибка авторизации!</div>\n";
echo'<div class="d3">';
echo"$sitefoot";
echo'</div>';
echo "</body></html>";
exit();
}
//END AUTH
$us = mysql_fetch_array($q);
$level = $us['level'];
$default = $us['default'];
$posts = $us['posts'];
//ONLINE
$online = time() + 60;
$update = mysql_query("UPDATE `chat_users` SET `time` = '".$online."', `place` = 0, `ip` = '".getenv('REMOTE_ADDR')."', `ua` = '".htmlspecialchars(getenv('HTTP_USER_AGENT'))."' WHERE `id` = '".$id."';");
//END ONLINE

if(isset($_GET['rid']))
{
$sql = mysql_query("SELECT `type` FROM `chat_rooms` WHERER `id` = '".intval($_GET['rid'])."';");
$type = mysql_result($sql, 0);
	if($type == 0)
	{
	$url = "room.php?".SID."&amp;nocache=".rand(10000, 99999)."&amp;ver=html&amp;rid=".intval($_GET['rid']);
	}
	else
	{
	$url = "mroom.php?".SID."&amp;nocache=".rand(10000, 99999)."&amp;ver=html&amp;rid=".intval($_GET['rid']);
	}
}
else
{
$key = $_GET['key'];
$url = "intim.php?".SID."&amp;nocache=".rand(10000, 99999)."&amp;ver=html&amp;key=$key";
}

$q = mysql_query("SELECT * FROM `chat_users` WHERE `id` = '".intval($_GET['uid'])."';");

if(mysql_num_rows($q) == 0)
{
echo "$css";
echo'<title>'.$ttl.'</title>';
echo'<div class="d3">'.$ttl.'</div>';
echo "Пользователь не найден в базе данных.<br/>\n";
}
else
{
$user = mysql_fetch_array($q);
$uid = $user['id'];
$nick = $user['nickname'];
$pass = $user['password'];
$ip = $user['ip'];
$ua = $user['ua'];
$kick = $user['kick'];
$moder = $user['moder'];
$reason = $user['reason'];
$name = $user['name'];
$site = $user['site'];
$sex = $user['sex'];
$from = $user['from'];
$mobile = $user['mobile'];
$email = $user['email'];
$birthday = $user['birthday'];
$about = $user['about'];
$posts = $user['posts'];
$lev = $user['level'];
$answers = $user['answers'];
$gbalans = $user['gbalans'];
$status = $user['status'];
$regdate = $user['regdate'];
$place = $user['place'];
$photo_type = $user['photo'];
$time = $user['time'];
$mood = $user['mood'];
echo "$css";
echo'<title>'.$ttl.'</title>';
echo'<div class="d3">'.$ttl.'</div>';
if($_GET['rid'])
{
echo"<div class=\"d1\">";
echo "<div><form action=\"room.php?".SID."&amp;ver=html&amp;rid=$rid&amp;nocache=$nocache\" method=\"post\">\n";
echo "<input type=\"text\" name=\"msg\" maxlength=\"300\" value=\"\"/>";
echo"<input type=\"hidden\" name=\"uid\" value=\"$uid\" />";
if($us['posts'] >= 100) echo"<input type=\"hidden\" name=\"to\" value=\"".$uid."\" />\n";
echo"<br/>";
if($us['default'] == 0)
{
echo "<input type=\"submit\" value=\"Всем\" />\n<input type=\"submit\" name=\"tto\" value=\"В приват\" />";
}
else
{
echo "<input type=\"submit\" name=\"tto\" value=\"В приват\" />\n<input type=\"submit\" value=\"Всем\" />";
}
echo"</form></div></div>\n";
}
if($_GET['key'])
{
echo"<div class=\"d1\">";
echo "<div><form action=\"intim.php?".SID."&amp;ver=html&amp;key=$key&amp;nocache=$nocache\" method=\"post\">\n";
echo "<input type=\"text\" name=\"msg\" maxlength=\"300\" value=\"\"/>";
echo "<input type=\"hidden\" name=\"uid\" value=\"$uid\" />";
if($us['posts'] >= 100)  echo"<input type=\"hidden\" name=\"to\" value=\"".$uid."\" />\n";
echo"<br/>";
if($us['default'] == 0)
{
echo "<input type=\"submit\" value=\"Всем\" />\n<input type=\"submit\" name=\"tto\" value=\"В приват\" />";
}
else
{
echo "<input type=\"submit\" name=\"tto\" value=\"В приват\" />\n<input type=\"submit\" value=\"Всем\" />";
}
echo"</form></div></div>\n";
}
echo"<div>";

echo "<u>Ник:</u> ".$nick."<br/>\n";
echo "<u>ID:</u> $uid<br/>";
echo "<u>Имя:</u> $name<br/>\n";
echo "<u>Статус:</u> $status<br/>\n";
//test
if ($handle = opendir('res/users/fotos/'.$uid.'')) 
{ 
while (false !== ($file = readdir($handle))) 
{
if ($file != "." && $file != ".." && $file != "Thumbs.db") 
{  
$a[]=$file;
}  
} 
closedir($handle);  
}
$cnt=count($a);
		if($cnt != 0)
		{
				echo"<u>Картинки:</u>";
if ($handle = opendir('res/users/fotos/'.$uid.'')) 
{ 
		$c = 1;
    while (false !== ($file = readdir($handle))) 
    {  
        if ($file != "." && $file != ".." && $file != "Thumbs.db") 
        {  
            echo "<a href=\"res/users/fotos/$uid/$file\">[$c]</a>\n";  
			$c++;
			}
        }  

    } 
echo"<br/>";
closedir($handle);  
}
//
//
//test
if ($handle = opendir('res/users/music/'.$uid.'')) 
{ 
while (false !== ($file = readdir($handle))) 
{
if ($file != "." && $file != ".." && $file != "Thumbs.db") 
{  
$a[]=$file;
}  
} 
closedir($handle);  
}
$cnt=count($a);
		if($cnt != 0)
		{
				echo"<u>Звуки:</u>";
if ($handle = opendir('res/users/music/'.$uid.'')) 
{ 
		$c = 1;
    while (false !== ($file = readdir($handle))) 
    {  
        if ($file != "." && $file != ".." && $file != "Thumbs.db") 
        {  
            echo "<a href=\"res/users/music/$uid/$file\">[$c]</a>\n";  
			$c++;
			}
        }  

    } 
echo"<br/>";
closedir($handle);  
}
//
//
$god = "$birthday";
$arrr=explode("-",$god);
if($arrr[1] == 1)
{
$mess = "Января";
}
if($arrr[1] == 2)
{
$mess = "Февраля";
}
if($arrr[1] == 3)
{
$mess = "Марта";
}
if($arrr[1] == 4)
{
$messs = "Апреля";
}
if($arrr[1] == 5)
{
$mess = "Мая";
}
if($arrr[1] == 6)
{
$mess = "Июня";
}
if($arrr[1] == 7)
{
$mess = "Июля";
}
if($arrr[1] == 8)
{
$mess = "Августа";
}
if($arrr[1] == 9)
{
$mess = "Сентября";
}
if($arrr[1] == 10)
{
$mess = "Октября";
}
if($arrr[1] == 11)
{
$mess = "Ноября";
}
if($arrr[1] == 12)
{
$mess = "Декабря";
}
//
echo "<u>День рождения:</u> $arrr[0] $mess $arrr[2]<br/>\n";
if($sex == 0)
{
echo "<u>Пол:</u> мужской<br/>\n";
}
elseif($sex == 1)
{
echo "<u>Пол:</u> женский<br/>\n";
}
echo "<u>Город</u>: $from<br/>\n";
echo "<u>Е-Маил:</u> <a href=\"mailto:$email\">$email</a><br/>\n";
echo "<u>Модель телефона:</u> $mobile<br/>\n";
include "includes/text_array/moder_tegi.php";
if($lev == 4)
{
$about = preg_replace($search, $replace, $about); 
}
echo "<u>О себе:</u> $about<br/>\n";
echo "<u>Количество постов:</u> $posts<br/>\n";
echo "<u>Ответов в викторине:</u> $answers<br/>\n";
echo "<u>Игровой баланс:</u> $gbalans<br/>\n";
$data = "$regdate";
$arr=explode("-",$data);
if($arr[1] == 01)
{
$mes = "Января";
}
if($arr[1] == 02)
{
$mes = "Февраля";
}
if($arr[1] == 03)
{
$mes = "Марта";
}
if($arr[1] == 04)
{
$mes = "Апреля";
}
if($arr[1] == 05)
{
$mes = "Мая";
}
if($arr[1] == 06)
{
$mes = "Июня";
}
if($arr[1] == 07)
{
$mes = "Июля";
}
if($arr[1] == 08)
{
$mes = "Августа";
}
if($arr[1] == 09)
{
$mes = "Сентября";
}
if($arr[1] == 10)
{
$mes = "Октября";
}
if($arr[1] == 11)
{
$mes = "Ноября";
}
if($arr[1] == 12)
{
$mes = "Декабря";
}
echo "<u>Дата регистрации:</u> $arr[0] $mes $arr[2]<br/>\n";
	if($level == 3 && $lev != 4)
	{
	echo "[IP]: ".$ip."<br/>\n";
	echo "[UserAgent]: ".$ua."<br/>\n";
	}
	elseif($level == 3)
	{
	echo "[IP]: скрыто<br/>\n";
	echo "[UserAgent]: скрыто<br/>\n";
	}
	if($level == 4)
	{
	echo "[IP]: ".$ip."<br/>\n";
	echo "[UserAgent]: ".$ua."<br/>\n";
	}
	if($level == 4)
	{
		if(time() < $kick)
		{
		echo "Данный пользователь заблокирован.<br/>\n";
		$tkick = $kick - time();
		if($tkick < 60 && $tkick > 0)
		{
		$var = "sec.";
		}
		elseif($tkick < 3600 && $tkick > 60)
		{
		$new = $tkick;
		$tkick = $new/60;
		$var = "min.";
		}
		elseif($tkick < 86400 && $tkick > 3600)
		{
		$new = $tkick;
		$tkick = $new/3600;
		$var = "hours";
		}
		elseif($tkick > 86400)
		{
		$new = $tkick;
		$tkick = $new/86400;
		$var = "days";
		}
		$tkick = round($tkick, 2);
		echo "Выпнут(а) модератором <u>".$moder."</u>.<br/>\n";
		echo "Разбан через <u>".$tkick." $var</u><br/>\n";
		echo "Причина: <u>".$reason."</u><br/>\n";
		}
	}

}
echo"</div>";
if($level != 0) echo "<div class=\"d2\">• <a href=\"kick.php?".SID."&amp;ver=html&amp;rid=$rid&amp;uid=$uid&amp;nocache=$nocache\">Пнуть</a></div>\n";
if($level >= 2) echo "<div class=\"d2\">• <a href=\"ban.php?".SID."&amp;ver=html&amp;rid=$rid&amp;uid=$uid&amp;nocache=$nocache\">Удалить</a></div>\n";
if($level > 2) echo "<div class=\"d2\">• <a href=\"ipua.php?".SID."&amp;ver=html&amp;rid=$rid&amp;uid=$uid&amp;nocache=$nocache\">Забанить по IP+UA</a></div>\n";
if($level == 4) echo "<div class=\"d2\">• <a href=\"ip.php?".SID."&amp;ver=html&amp;rid=$rid&amp;uid=$uid&amp;nocache=$nocache\">Забанить по IP</a></div>\n";
echo"<div class=\"d1\">";
echo "• <a href=\"ignor.php?".SID."&amp;ver=html&amp;mod=add&amp;uid=$uid\">Игнорировать</a><br/>\n";
if($_GET['rid']) echo "• <a href=\"$url\">В чат</a><br/>\n";
if($_GET['key']) echo "• <a href=\"$url\">В чат</a><br/>\n";
echo "• <a href=\"menu.php?".SID."&amp;ver=html\">В прихожую</a><br/>\n";
echo"</div></div>";
echo'<div class="d3">';
echo"$sitefoot";
echo'</div>';
echo "</body></html>";
break;
}
?>