Rev 2182 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>Admin Logs</TITLE>
<link rel="stylesheet" href="../css/bootstrap.min.css">
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<style>
body {
background-color: #EFEFEF;
}
</style>
</HEAD>
<body>
<?php
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
{
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Language = strtolower(substr(chop($Langue[0]),0,2));
}
if($Language == 'fr')
{
$l_title_amdin_log="Connexion à l'ALCASAR Control Center (ACC)";
}
else
{
$l_title_amdin_log="Connection to ALCASAR Control Center (ACC)";
}
echo '<center><h3>';
echo "$l_title_amdin_log";
echo '</h3></center><div class="container"><table class="table table-striped">';
echo "<thead>";
echo "<tr>";
echo "<th>Date</th>";
echo "<th>User</th>";
echo "<th>IP address</th>";
echo "</tr>";
echo "</thead>";
echo "<tbody>";
$fichier='admin_log.txt';
$pointeur=fopen($fichier,"r");
if ($pointeur){
while (!feof($pointeur)){
$ligne=fgets($pointeur);
$infos=explode("|||",$ligne);
echo "<tr>";
echo "<td>$infos[0]</td>";
echo "<td>$infos[1]</td>";
echo "<td>$infos[2]</td>";
echo "</tr>";
}
}
else
{
echo '<tr><center>Empty</center></tr>';
}
fclose($pointeur);
echo '</tbody></table></div>';
?>
</body>
</HTML>