View file Security_DCMS_Social/security.php

File size: 1.49Kb
<?
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();
$set['title'] = 'Защита сайта';
include_once '../sys/inc/thead.php';
title();
err();
aut();

?>

    <table class="mess" border="1" width="80%">
   <tr>
    <th> Способ</th>
    <th> Пользователь</th>
    <th> Код</th>
    <th> Дата</th>
   </tr>
   
   <?
  
  	$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `security`"),0);
	$k_page = k_page($k_post,$set['p_str']);
	$page = page($k_page);
	$start = $set['p_str']*$page-$set['p_str'];

	if ($k_post == 0) 
	{
		?><div class="mess">Список пуст</div><?
	}

	$q = mysql_query("SELECT * FROM `security` ORDER BY id DESC LIMIT $start, $set[p_str]");

	while($post = mysql_fetch_array($q))
	{
	    
   ?>
   
       <tr>
        <td><?=$post['attack'];?></td>
        <td><?=$post['hacker'];?></td>
        <td><?=$post['request'];?></td>
        <td><?=$post['date'];?></td>
    </tr>
    
   <?
   
	}
	
    ?>
   
   </table>
   
   <?
   
   if ($k_page > 1) str('security.php?', $k_page, $page);
   
   ?>
   
<div class='foot'>
<a href='/adm_panel/'>Админка</a><br>
</div>

<?
include_once '../sys/inc/tfoot.php';