Subversion Repositories ALCASAR

Rev

Rev 1180 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log


<?php
//gestion de la langue
if (is_file("../lib/langues.php"))
        include("../lib/langues.php");
?>
<html>
<head>
<title>Find a user</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo "$l_spoofing";?></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>
        <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>
        </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>
                <TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
                        <tr><td valign="middle" align="left">
                        <?php
                        $fichier='/var/log/havp/access.log';
                        $pointeur=fopen($fichier,"r");
                        if ($pointeur){
                                while (!feof($pointeur)){
                                        $ligne=fgets($pointeur);
                                                echo "$ligne</br>";
                                        }
                                }
                        fclose($pointeur);
                        ?>
                        </td></tr>
                </TABLE>
        </TABLE>
</TABLE>
</br>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th><?php echo "$l_fail2ban";?></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>
        <TABLE width="100%" border=0 cellspacing=0 cellpadding=2>

                        <tr><td valign="middle" align="left">
                        <?php
                        $fichier='/var/log/fail2ban.log';
                        $uban="Uban";
                        $ban="Ban";
                        $motif="/$uban/";
                        $motif2="/$ban/";
                        $pointeur=fopen($fichier,"r");
                        if ($pointeur){
                                while (!feof($pointeur)){
                                        $ligne=fgets($pointeur);
                                        if(preg_match($motif2,$ligne,$r)){
                                                echo "$ligne</br>";
                                        }
                                }
                        fclose($pointeur);
                        }       
                        ?>
                        </td></tr>
                </TABLE>
        </TABLE>
</TABLE>
</body>
</html>