Subversion Repositories ALCASAR

Rev

Rev 1500 | Rev 1867 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1500 Rev 1858
Line 7... Line 7...
7
<HTML>
7
<HTML>
8
<!-- written by Crox -->
8
<!-- written by Crox -->
9
<HEAD>
9
<HEAD>
10
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
10
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
11
<TITLE>menu</TITLE>
11
<TITLE>menu</TITLE>
12
<link rel="stylesheet" href="/css/style.css" type="text/css">
12
<link rel="stylesheet" href="../../../css/bootstrap.min.css">
-
 
13
  <script src="../../../js/jquery.min.js"></script>
-
 
14
  <script src="../../../js/bootstrap.min.js"></script>
13
</HEAD>
15
</HEAD>
14
<body>
16
<body>
15
 
17
 
16
 
18
 
17
 
19
 
Line 25... Line 27...
25
 
27
 
26
<?php
28
<?php
27
 
29
 
28
echo'
30
echo'
29
	<br />
31
	<br />
30
		<table  width="100%" style="text-align: center;">
32
			<div class="btn-group btn-group-justified" role="group" aria-label="Justified button group"> 
31
			<tr>
-
 
32
				<td width="33%"><a href="./security.php?table=1">'.$l_spoofing.'</a></td>
33
			<a href="./security.php?table=1" class="btn btn-default" role="button">'.$l_spoofing.'</a> 
33
				<td width="33%"><a href="./security.php?table=2">'.$l_virus.'</a></td>
34
			<a href="./security.php?table=2" class="btn btn-default" role="button">'.$l_virus.'</a>
34
				<td width="33%"><a href="./security.php?table=3">'.$l_fail2ban.'</a></td>
35
			<a href="./security.php?table=3" class="btn btn-default" role="button">'.$l_fail2ban.'</a>  
35
			</tr>
36
			</div>
36
		</table>
-
 
37
	<br />';
37
	<br />';
38
 
38
 
39
 
39
 
40
?>
40
?>
41
 
41
 
42
 
42
 
43
<?php
43
<?php
44
 
44
 
45
if ( $table == 1){
45
if ( $table == 1){
46
 
46
 
47
	echo '	<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
-
 
48
			<tr><th>';
47
	echo '<center><h3>';
49
			echo "$l_spoofing";
48
	echo "$l_spoofing";
50
		echo '</th></tr>
-
 
51
			<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
49
	echo '</h3></center><div class="container"><table class="table table-striped"><tbody>';
52
		height="2"></td></tr>
-
 
53
			<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
-
 
54
				<tr bgcolor="#666666"><td>
-
 
55
				<DIV style="width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;">
-
 
56
				<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
-
 
57
					<tr><td valign="middle" align="left">';
-
 
58
 
50
 
59
					$fichier='/var/Save/security/watchdog.log';
51
	$fichier='/var/Save/security/watchdog.log';
60
					$pointeur=fopen($fichier,"r");
52
	$pointeur=fopen($fichier,"r");
61
					if ($pointeur){
53
	if ($pointeur){
62
						while (!feof($pointeur)){
54
	while (!feof($pointeur)){
63
							$ligne=fgets($pointeur);
55
		$ligne=fgets($pointeur);
64
								echo "$ligne</br>";
56
		echo "<tr><td>$ligne</td></tr>";
65
							}
57
		}
66
						}
58
	}
67
					fclose($pointeur);
59
	else
-
 
60
	{
68
			echo '		</td></tr>
61
		echo '<tr><center>Empty</center></tr>';
69
				</TABLE>
-
 
70
				</DIV>
62
	}
71
			</TABLE>
63
	fclose($pointeur);
72
		</TABLE>';
64
	echo '</tbody></table></div>';
73
 
65
 
74
 
66
 
75
} elseif ($table == 2){
67
} elseif ($table == 2){
76
echo '<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
-
 
77
<tr><th>';
68
	echo '<center><h3>';
78
echo "$l_virus";
69
	echo "$l_virus";
79
echo '</th></tr>
-
 
80
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
70
	echo '</h3></center><div class="container"><table class="table table-striped"><tbody>';
81
height="2"></td></tr>
-
 
82
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
-
 
83
		<tr bgcolor="#666666"><td>
71
				
84
		<DIV style="width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;">
-
 
85
		<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
-
 
86
			<tr><td valign="middle" align="left">';
-
 
87
			$fichier='/var/log/havp/access.log';
72
	$fichier='/var/log/havp/access.log';
88
			$pointeur=fopen($fichier,"r");
73
	$pointeur=fopen($fichier,"r");
89
			if ($pointeur){
74
	if ($pointeur){
90
				while (!feof($pointeur)){
75
	while (!feof($pointeur)){
91
					$ligne=fgets($pointeur);
76
		$ligne=fgets($pointeur);
92
						echo "$ligne</br>";
77
		echo "<tr><td>$ligne</td></tr>";
93
					}
78
		}
-
 
79
	}
-
 
80
	else
-
 
81
	{
-
 
82
		echo '<tr><center>Empty</center></tr>';
94
				}
83
	}
95
			fclose($pointeur);
84
	fclose($pointeur);
96
echo '			</td></tr>
85
	echo '</tbody></table></div>';
97
		</TABLE>
-
 
98
		</DIV>
86
	
99
	</TABLE>
-
 
100
</TABLE>';
-
 
101
} elseif ($table == 3){
87
} elseif ($table == 3){
102
echo '<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
-
 
103
<tr><th>';
88
	echo '<center><h3>';
104
echo "$l_fail2ban";
89
	echo "$l_fail2ban";
105
echo '</th></tr>
-
 
106
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" 
90
	echo '</h3></center><div class="container"><table class="table table-striped"><tbody>';
107
height="2"></td></tr>
-
 
108
	<TABLE width="100%" border=0 cellspacing=0 cellpadding=1>
-
 
109
		<tr bgcolor="#666666"><td>
-
 
110
		<DIV style="width:100%;height:100%;overflow-x:hidden;overflow-y:scroll;">
-
 
111
		<TABLE width="100%" border=0 cellspacing=0 cellpadding=2>
-
 
112
			<tr><td valign="middle" align="left">';
-
 
113
 
91
 
114
			$fichier='/var/log/fail2ban.log';
92
	$fichier='/var/log/fail2ban.log';
115
			$unban="/Unban/";
93
	$unban="/Unban/";
116
			$ban="/Ban/";
94
	$ban="/Ban/";
117
			$pointeur=fopen($fichier,"r");
95
	$pointeur=fopen($fichier,"r");
118
			if ($pointeur){
96
	if ($pointeur){
119
				while (!feof($pointeur)){
97
		while (!feof($pointeur)){
120
					$ligne=fgets($pointeur);
98
			$ligne=fgets($pointeur);
121
					if(preg_match($ban,$ligne,$r)){
99
			if(preg_match($ban,$ligne,$r)){
122
						echo "<font color='red'>$ligne</font></br>";
100
				echo "<tr><td><font color='red'>$ligne</font></td></tr>";
123
					}
101
			}
124
					if(preg_match($unban,$ligne,$r)){
102
			if(preg_match($unban,$ligne,$r)){
125
						echo "<font color='orange'>$ligne</font></br>";
103
				echo "<tr><td><font color='orange'>$ligne</font></td></tr>";
126
					}
-
 
127
				}
-
 
128
			fclose($pointeur);
-
 
129
			}
104
			}
-
 
105
		}
130
echo '			</td></tr>
106
			fclose($pointeur);
-
 
107
	}
131
		</TABLE>
108
	else
132
		</DIV>
109
	{
-
 
110
		echo '<tr><center>Empty</center></tr>';
133
	</TABLE>
111
	}
134
</TABLE>';
112
	echo '</tbody></table></div>';
135
} else {
113
} else {
136
	echo 'Do not exist';
114
	echo 'Do not exist';
137
}
115
}
138
 
116
 
139
?>
117
?>