Файл: profiwm.pp.ua/chat/inside.php
Строк: 56
<?php
require '../system/sid.php';
require '../system/config.php';
include '../system/user.php';
include '../system/head.php';
whorm(0, 'chat');
$nk = my_int($_GET['nk']);
echo $div_title . 'Мини-чат' . $div_end;
$open = mysql_fetch_array(mysql_query("SELECT `open_chat` FROM `setting` WHERE `ids` = '1'"));
if ($open[0] == 0)
{
err('Чат закрыт Администратором!');
include '../system/foot.php';
exit();
}
if (!user_inf($nk) && $nk != 0 && !online_user($nk) && user_inf($nk, 'room') != 'chat')
{
header('Location: index.php?');
die();
}
$ASnum = mysql_result(mysql_query("SELECT COUNT(id) FROM `users` WHERE `room` = 'chat' AND `onl` + '300' > '" . time() . "' ORDER BY `onl` DESC"), 0);
if ($nk == 0) {
$kto = 'Мажор';
$adr = 'Мажор';
}
else
{
$kto = us($nk);
$adr = user_inf($nk, 'user');
}
if ($nk != 0 && ignor($user['id'], $nk)) $IG = '<a href="../black.php?x='.$nk.'">Убрать с игнора</a><br/>';
elseif ($nk != 0 && !ignor($user['id'], $nk)) $IG = '<a href="/ignor-add-'.$nk.'">Добавить в игнор</a><br/>';
echo '<FORM method="POST" action="index.php">
' . $div_razdel . $kto . $div_end . '
<textarea name="msg" cols="50" rows="5" style="width: 99%;">' . $adr . ', </textarea>
<select name="private">
<option value="0">Всем</option>
<option value="1">Приватно</option>
</select>
<br/>
<input type="hidden" name="komu" value="' . $nk . '">
<input type="submit" name="send" value="Сказать"/>
' . $IG . '
</FORM>';
include '../system/foot.php';
?>