<?php
include_once "function.php";
include_once "inc/connect.php";
include_once "inc/h.php";
$user = auth();
if(!$user){
header("Location:index.php");
exit;
}
echo'<div class="player"><form action="?search" method="post">Логин:<br/>
<input type="text" name="login"/><input type="submit" value="Искать"/></form></div>';
if(isset($_GET['search'])){
$nick2 = check($_POST['nickname']);
$nickname = mysql_fetch_assoc(mysql_query("SELECT id,online,nickname from `user` where `nickname` = '".$nick2."' limit 1"));
if(empty($nickname['nickname'])){
echo'<div class="player">Игрок не найден!</div>';
}else{
echo '<div class="player" style = "color: #d3e2ed;">';
echo online($nick['id']);
echo ' <a href="/user/?id='.$nickname['id'].'"><b><span style = "color: #becdd8;">'.$nickname['nickname'].'</span></b></a> <span class="dgreen">['.vremja($nickname['online']).']</span>';
echo "</div>";
}
}
include "inc/f.php";
?><LINK href="https://odkl.vten.ru/skin/lightui/css/style-v10.css?v=1451529034175" rel="stylesheet" type="text/css" />