Файл: profiwm.pp.ua/chat/say.php
Строк: 33
<?php
require '../system/sid.php';
require '../system/config.php';
include '../system/user.php';
include '../system/head.php';
whorm(0, 'chat');
$open = mysql_fetch_array(mysql_query("SELECT `open_chat` FROM `setting` WHERE `ids` = '1'"));
if ($open[0] == 0)
{
err('Чат закрыт Администратором!');
include '../system/foot.php';
exit();
}
$ASnum = mysql_num_rows(mysql_query("SELECT * FROM `users` WHERE `room` = 'chat' AND `onl` + '300' > '" . time() . "' ORDER BY `onl` DESC"));
echo $div_left . $div_title . 'Мини-чат' . $div_end;
echo '<FORM method="POST" action="index.php">
<textarea name="msg" cols="50" rows="5" style="width: 99%;"></textarea>
<br/>';
##############
if ($user['level'] == 3 || $user['level'] == 4 || $user['level'] == 5) {
echo '<input type="checkbox" name="b" value="1"/> <b>Жирный</b>
<br/>
<input type="checkbox" name="u" value="1"/> <u>Подчеркнутый</u>
<br/>
<input type="checkbox" name="r" value="1"/> <font color="#FF0000">Красный</font>
<br/>';
}
##############
echo '<input type="checkbox" name="boteg" value="0"/> Обратится к боту<br/>
<input type="submit" name="send" value="Сказать"/>
</FORM>' . $div_end . $block;
echo '<a href="index.php">В чат</a>';
include '../system/foot.php';
?>