Файл: adm_panel/antiflood.php
Строк: 65
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/adm_check.php';
include_once '../sys/inc/user.php';
adm_check();
user_access('adm_panel_show', null, '/index.php?'.SID);
$set['title']='Антифлуд';
include_once '../sys/inc/thead.php';
title();
aut();
if(isset($_SESSION['flood_msg'])){ ?><div class="msg"><?=$_SESSION['flood_msg']?></div><? unset($_SESSION['flood_msg']); }
$antiflood=mysql_fetch_assoc(mysql_query("SELECT * FROM `antiflood` LIMIT 1"));
$ank=get_user($antiflood['id_user']);
?>
<div class="p_t"><strong>Текущие настройки:</strong><br />
Время антифлуда: <?=$antiflood['time']?> сек.<br />
Установил: <a href="/info.php?id=<?=$antiflood['id_user']?>"><?=$ank['nick']?></a>
</div>
<form method="post" action="?update">
Введите время в секундах:<br />
<input type="text" name="time" value="<?=$antiflood['time']?>"><br />
<input type="submit" value="Сохранить">
</form>
<?
if(isset($_GET['update'])){
$time_flood=intval($_POST['time']);
mysql_query(" UPDATE `antiflood` SET `time`='$time_flood', `id_user`='$user[id]' ");
$_SESSION['flood_msg']='Настройки обновлены';
header("Location: antiflood.php");
}
include_once '../sys/inc/tfoot.php';
?>