ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/computer3/8-maquette-diaboloAAAAAAAAAA.com/cp-admin/ |
Upload File : |
<?php
require_once('includes/header.php');
require_once('includes/menu.php');
$GLOBALS['db_table']['cp_ips'] = 'cp_ips';
?>
<div class="container">
<div class="page-header">
<div class="container-fluid">
<h1>IPs Administration</h1>
</div>
</div>
<div class="form-horizontal">
Tri par ordre décroissant des 500 adresses IP
<table class="table table-bordered table-striped">
<thead>
<tr>
<th class="span2 center">IPs</th>
<th class="span1 center">Dates</th>
</tr>
</thead>
<tbody>
<?php
$requete = $bdd->query('SELECT * FROM ' . $GLOBALS['db_table']['cp_ips'] .' ORDER BY id DESC LIMIT 500');
$list = $requete->fetchAll();
for($i=0; $i<count($list); $i++) {
$id = $list[$i]['id'];
$ip = $list[$i]['ip'];
$date_us = $list[$i]['date_us'];
$heure = $list[$i]['heure'];
echo '<tr>';
echo '<td class="span1 font12 center"><b>'.$ip.'</b></td>';
echo '<td class="center">';
echo ''. $date_us .' '.$heure ;
echo '</td>';
echo '</tr>';
}
if(count($list)==0) echo 'Aucun élément à afficher !!!';
?>
</tbody>
</table>
</div>
</div>
<?php
include_once('includes/footer.php');
?>