Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2809 → Rev 2810

/web/acc/manager/htdocs/security.php
1,9 → 1,6
<?php
# $Id$
 
//gestion de la langue
require('../lib/langues.php');
 
$language = 'en';
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$langue = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
11,15 → 8,26
}
if ($language === 'fr') {
$l_title = 'Sécurité';
$l_spoofing = "Adresse(s) MAC usurpée(s) (Watchdog)";
$l_virus = "Virus bloqué(s) (HAVP)";
$l_fail2ban = "Adresse(s) IP bloquée(s) (Fail2Ban)";
$l_ipAddress="Adresse IP";
$l_user = "L'utilisateur";
$l_empty="Vide";
$l_rule="Règle";
} else {
$l_title = 'Security';
$l_spoofing = "MAC address spoofed (Watchdog)";
$l_virus = "Virus blocked (HAVP)";
$l_fail2ban = "IP address blocked (Fail2Ban)";
$l_ipAddress="IP address";
$l_user = "User";
$l_empty="Empty";
$l_rule="Rule";
}
 
$tab = (isset($_GET['tab'])) ? intval($_GET['tab']) : 1;
 
?>
 
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta charset="UTF-8">
34,7 → 42,6
}
</style>
</head>
 
<body>
<table class="tableTop" border=0 cellspacing=0 cellpadding=0 >
<tbody >
50,17 → 57,13
</tr>
</tbody>
</table>
 
<div class="frameBorderACC">
 
<div class="btn-group btn-group-justified" role="group" aria-label="Justified button group">
<a href="security.php?tab=1" class="btn btn-default<?= (($tab === 1) ? ' active' : '') ?>" role="button"><?= $l_spoofing ?></a>
<a href="security.php?tab=1" class="btn btn-default<?= (($tab === 1) ? ' active' : '') ?>" role="button"><?= $l_spoofing ?></a>
<a href="security.php?tab=2" class="btn btn-default<?= (($tab === 2) ? ' active' : '') ?>" role="button"><?= $l_virus ?></a>
<a href="security.php?tab=3" class="btn btn-default<?= (($tab === 3) ? ' active' : '') ?>" role="button"><?= $l_fail2ban ?></a>
<a href="security.php?tab=3" class="btn btn-default<?= (($tab === 3) ? ' active' : '') ?>" role="button"><?= $l_fail2ban ?></a>
</div>
<br>
 
 
<?php
if ($tab === 1) {
$spoofs = [];
84,7 → 87,6
}
fclose($file);
}
 
$spoofs = array_reverse($spoofs);
?>
<h3 style="text-align: center;"><?= $l_spoofing ?></h3>
170,7 → 172,6
}
fclose($file);
}
 
$bans = array_reverse($bans);
?>
<h3 style="text-align: center;"><?= $l_fail2ban ?></h3>