Файл: besedka/test.php
Строк: 31
<?php
session_name('im');
session_start();
include '../header/config.inc.php';
include '../header/function.inc.php';
include '../header/header.inc.php';
include '../header/connect.inc.php';
include '../header/click-club.class.php';
include '../header/enter.inc.php';
include '../ban.php';
echo 'ТЕСТ';
$spam = '10';
$antiflood = mysql_query("SELECT COUNT(*) FROM `cclub_chat` WHERE `date` >='" . ($time - $spam) . "' AND `user` = '".$user."' ");
$flood = mysql_result($antiflood, 0) > 0 ? 1 : false;
if ($flood) {
echo '<div class="error"><b>Антиспам !</b> Запрещенно часто добавлять сообщения ! <small>[порог '.$spam.' секунд]</small><br/></div>';
include '../header/end.inc.php';
exit;
}
include '../header/end.inc.php';
?>