Subversion Repositories ALCASAR

Rev

Rev 1201 | Rev 1410 | 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>
1233 richard 21
		<DIV style="width:100%;height:150px;overflow-x:hidden;overflow-y:scroll;">
22
		<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
1163 crox53 23
			<tr><td valign="middle" align="left">
24
			<?php
25
			$fichier='/var/Save/logs/security/watchdog.log';
26
			$pointeur=fopen($fichier,"r");
27
			if ($pointeur){
28
				while (!feof($pointeur)){
29
					$ligne=fgets($pointeur);
30
						echo "$ligne</br>";
31
					}
32
				}
33
			fclose($pointeur);
34
			?>
35
			</td></tr>
36
		</TABLE>
1233 richard 37
		</DIV>
1163 crox53 38
	</TABLE>
39
</TABLE>
40
</br>
41
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
42
<tr><th><?php echo "$l_virus";?></th></tr>
43
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
44
height="2"></td></tr>
45
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
46
		<tr bgcolor="#666666"><td>
1233 richard 47
		<DIV style="width:100%;height:150px;overflow-x:hidden;overflow-y:scroll;">
1163 crox53 48
		<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
49
			<tr><td valign="middle" align="left">
50
			<?php
51
			$fichier='/var/log/havp/access.log';
52
			$pointeur=fopen($fichier,"r");
53
			if ($pointeur){
54
				while (!feof($pointeur)){
55
					$ligne=fgets($pointeur);
56
						echo "$ligne</br>";
57
					}
58
				}
59
			fclose($pointeur);
60
			?>
61
			</td></tr>
62
		</TABLE>
1233 richard 63
		</DIV>
1163 crox53 64
	</TABLE>
65
</TABLE>
66
</br>
67
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
68
<tr><th><?php echo "$l_fail2ban";?></th></tr>
69
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
70
height="2"></td></tr>
71
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
72
		<tr bgcolor="#666666"><td>
1233 richard 73
		<DIV style="width:100%;height:150px;overflow-x:hidden;overflow-y:scroll;">
74
		<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
1163 crox53 75
			<tr><td valign="middle" align="left">
76
			<?php
77
			$fichier='/var/log/fail2ban.log';
1180 crox53 78
			$unban="/Unban/";
79
			$ban="/Ban/";
1163 crox53 80
			$pointeur=fopen($fichier,"r");
81
			if ($pointeur){
82
				while (!feof($pointeur)){
83
					$ligne=fgets($pointeur);
1180 crox53 84
					if(preg_match($ban,$ligne,$r)){
1163 crox53 85
						echo "$ligne</br>";
86
					}
1180 crox53 87
					if(preg_match($unban,$ligne,$r)){
1165 crox53 88
						echo " ---> $ligne</br>";
89
					}
1163 crox53 90
				}
91
			fclose($pointeur);
92
			}	
93
			?>
94
			</td></tr>
95
		</TABLE>
1233 richard 96
		</DIV>
1163 crox53 97
	</TABLE>
98
</TABLE>
99
</body>
1201 crox53 100
</HTML>