Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1409 → Rev 1410

/web/acc/manager/htdocs/security.php
12,42 → 12,78
<link rel="stylesheet" href="/css/style.css" type="text/css">
</HEAD>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo "$l_spoofing";?></th></tr>
 
 
 
<?php
$table = 1;
if(isset($_GET['table'])){
$table = $_GET['table'];
}
?>
 
 
<?php
 
echo'
<br />
<table width="100%" style="text-align: center;">
<tr>
<td width="33%"><a href="./security.php?table=1">'.$l_spoofing.'</a></td>
<td width="33%"><a href="./security.php?table=2">'.$l_virus.'</a></td>
<td width="33%"><a href="./security.php?table=3">'.$l_fail2ban.'</a></td>
</tr>
</table>
<br />';
 
 
?>
 
 
<?php
 
if ( $table == 1){
 
echo ' <TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>';
echo "$l_spoofing";
echo '</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
<tr bgcolor="#666666"><td>
<DIV style="width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;">
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">';
 
$fichier='/var/Save/logs/security/watchdog.log';
$pointeur=fopen($fichier,"r");
if ($pointeur){
while (!feof($pointeur)){
$ligne=fgets($pointeur);
echo "$ligne</br>";
}
}
fclose($pointeur);
echo ' </td></tr>
</TABLE>
</DIV>
</TABLE>
</TABLE>';
 
 
} elseif ($table == 2){
echo '<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>';
echo "$l_virus";
echo '</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
<tr bgcolor="#666666"><td>
<DIV style="width:100%;height:150px;overflow-x:hidden;overflow-y:scroll;">
<DIV style="width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;">
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<?php
$fichier='/var/Save/logs/security/watchdog.log';
$pointeur=fopen($fichier,"r");
if ($pointeur){
while (!feof($pointeur)){
$ligne=fgets($pointeur);
echo "$ligne</br>";
}
}
fclose($pointeur);
?>
</td></tr>
</TABLE>
</DIV>
</TABLE>
</TABLE>
</br>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo "$l_virus";?></th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
<tr bgcolor="#666666"><td>
<DIV style="width:100%;height:150px;overflow-x:hidden;overflow-y:scroll;">
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<?php
<tr><td valign="middle" align="left">';
$fichier='/var/log/havp/access.log';
$pointeur=fopen($fichier,"r");
if ($pointeur){
57,23 → 93,24
}
}
fclose($pointeur);
?>
</td></tr>
echo ' </td></tr>
</TABLE>
</DIV>
</TABLE>
</TABLE>
</br>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo "$l_fail2ban";?></th></tr>
</TABLE>';
} elseif ($table == 3){
echo '<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th>';
echo "$l_fail2ban";
echo '</th></tr>
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1"
height="2"></td></tr>
<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
<tr bgcolor="#666666"><td>
<DIV style="width:100%;height:150px;overflow-x:hidden;overflow-y:scroll;">
<DIV style="width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;">
<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
<tr><td valign="middle" align="left">
<?php
<tr><td valign="middle" align="left">';
 
$fichier='/var/log/fail2ban.log';
$unban="/Unban/";
$ban="/Ban/";
82,19 → 119,23
while (!feof($pointeur)){
$ligne=fgets($pointeur);
if(preg_match($ban,$ligne,$r)){
echo "$ligne</br>";
echo "<font color='red'>$ligne</font></br>";
}
if(preg_match($unban,$ligne,$r)){
echo " ---> $ligne</br>";
echo "<font color='orange'>$ligne</font></br>";
}
}
fclose($pointeur);
}
?>
</td></tr>
}
echo ' </td></tr>
</TABLE>
</DIV>
</TABLE>
</TABLE>
</TABLE>';
} else {
echo 'Do not exist';
}
 
?>
</body>
</HTML>
/web/css/style_intercept.css
39,7 → 39,7
background-color: #666666;
}
 
INPUT, #contenu_acces, #logon, #auth_reussi {
INPUT, #contenu_acces, #contenu_error, #logon, #auth_reussi {
background-color: #ffffff;
}
 
239,6 → 239,27
-webkit-box-shadow: 1px 1px 10px #000;
box-shadow: 1px 1px 10px #000;
}
 
#contenu_error {
position: relative;
width: 640px;
height: auto;
top: -20px;
padding-top: 40px;
padding-bottom: 40px;
padding-left: 40px;
padding-right: 40px;
margin-left: auto;
margin-right: auto;
z-index: 1;
 
/* ombrage CSS3 */
 
-moz-box-shadow: 1px 1px 10px #000;
-webkit-box-shadow: 1px 1px 10px #000;
box-shadow: 1px 1px 10px #000;
}
 
#logo_acces IMG, #box_refuse IMG {
width: 95px;
height: 95px;
273,6 → 294,11
bottom: -150px;
font-family: "courier new";
}
#contenu_error SPAN {
position: relative;
bottom: -150px;
font-family: "courier new";
}
#box_refuse {
font-size: 16px;
margin-left: 130px;
296,7 → 322,7
height: 70px;
top: -25px;
}
.box_menu, #logon , #contenu_acces, #acces_controle, #cadre_titre, #box_info{
.box_menu, #logon , #contenu_acces, #contenu_error, #acces_controle, #cadre_titre, #box_info{
/* Arrondi CSS3 Firefox*/
-moz-border-radius: 10px;
/* Arrondi CSS3 Autres Nav*/
430,4 → 456,4
margin-right : 10px;
display: block;
float: left;
}
}