Subversion Repositories ALCASAR

Rev

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

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