Subversion Repositories ALCASAR

Rev

Rev 1165 | Go to most recent revision | Details | Last modification | View Log

Rev Author Line No. Line
1163 crox53 1
 
2
<?php
3
//gestion de la langue
4
if (is_file("../lib/langues.php"))
5
	include("../lib/langues.php");
6
?>
7
<html>
8
<head>
9
<title>Find a user</title>
10
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $config['general_charset']?>">
11
<link rel="stylesheet" href="/css/style.css">
12
</head>
13
<body>
14
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
15
<tr><th><?php echo "$l_spoofing";?></th></tr>
16
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
17
height="2"></td></tr>
18
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
19
		<tr bgcolor="#666666"><td>
20
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
21
			<tr><td valign="middle" align="left">
22
			<?php
23
			$fichier='/var/Save/logs/security/watchdog.log';
24
			$pointeur=fopen($fichier,"r");
25
			if ($pointeur){
26
				while (!feof($pointeur)){
27
					$ligne=fgets($pointeur);
28
						echo "$ligne</br>";
29
					}
30
				}
31
			fclose($pointeur);
32
			?>
33
			</td></tr>
34
		</TABLE>
35
	</TABLE>
36
</TABLE>
37
</br>
38
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
39
<tr><th><?php echo "$l_virus";?></th></tr>
40
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
41
height="2"></td></tr>
42
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
43
		<tr bgcolor="#666666"><td>
44
		<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
45
			<tr><td valign="middle" align="left">
46
			<?php
47
			$fichier='/var/log/havp/access.log';
48
			$pointeur=fopen($fichier,"r");
49
			if ($pointeur){
50
				while (!feof($pointeur)){
51
					$ligne=fgets($pointeur);
52
						echo "$ligne</br>";
53
					}
54
				}
55
			fclose($pointeur);
56
			?>
57
			</td></tr>
58
		</TABLE>
59
	</TABLE>
60
</TABLE>
61
</br>
62
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
63
<tr><th><?php echo "$l_fail2ban";?></th></tr>
64
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
65
height="2"></td></tr>
66
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
67
		<tr bgcolor="#666666"><td>
68
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
69
 
70
			<tr><td valign="middle" align="left">
71
			<?php
72
			$fichier='/var/log/fail2ban.log';
73
			$uban="Uban";
74
			$ban="Ban";
75
			$motif="/$uban/";
76
			$motif2="/$ban/";
77
			$pointeur=fopen($fichier,"r");
78
			if ($pointeur){
79
				while (!feof($pointeur)){
80
					$ligne=fgets($pointeur);
81
					if(preg_match($motif2,$ligne,$r)){
82
						echo "$ligne</br>";
83
					}
84
				}
85
			fclose($pointeur);
86
			}	
87
			?>
88
			</td></tr>
89
		</TABLE>
90
	</TABLE>
91
</TABLE>
92
</body>
93
</html>