Subversion Repositories ALCASAR

Rev

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

Rev Author Line No. Line
2093 raphael.pi 1
<HTML>
2
<HEAD>
3
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4
<TITLE>Admin Logs</TITLE>
5
<link rel="stylesheet" href="../css/bootstrap.min.css">
6
<script src="../js/jquery.min.js"></script>
7
<script src="../js/bootstrap.min.js"></script>
8
<style>
9
 
10
body {
11
    background-color: #EFEFEF;
12
}
13
 
14
</style>
15
</HEAD>
16
<body>
17
 
18
<?php
19
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
20
{
21
	$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
22
	$Language = strtolower(substr(chop($Langue[0]),0,2)); 
23
}
24
 
25
if($Language == 'fr')
26
{
27
	$l_title_amdin_log="Connexion à l'ALCASAR Control Center (ACC)";
28
}
29
else
30
{
31
	$l_title_amdin_log="Connection to ALCASAR Control Center (ACC)";
32
}
33
 
34
echo '<center><h3>';
35
echo "$l_title_amdin_log";
36
echo '</h3></center><div class="container"><table class="table table-striped">';
37
echo "<thead>";
38
echo "<tr>";
39
echo "<th>Date</th>";
40
echo "<th>User</th>";
41
echo "<th>IP address</th>";
42
echo "</tr>";
43
echo "</thead>";
44
echo "<tbody>";
45
 
46
$fichier='admin_log.txt';
47
$pointeur=fopen($fichier,"r");
48
if ($pointeur){
49
	while (!feof($pointeur)){
50
		$ligne=fgets($pointeur);
51
		$infos=explode("|||",$ligne);
52
		echo "<tr>";
53
		echo "<td>$infos[0]</td>";	
54
		echo "<td>$infos[1]</td>";	
55
		echo "<td>$infos[2]</td>";
56
		echo "</tr>";
57
	}
58
}
59
else
60
{
61
	echo '<tr><center>Empty</center></tr>';
62
}
63
fclose($pointeur);
64
echo '</tbody></table></div>';
65
 
66
 
67
 
68
?>
69
 
70
</body>
71
</HTML>
72