Initial commit for radiantprestation project
This commit is contained in:
53
flexcodeOLD/log.php
Normal file
53
flexcodeOLD/log.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
include 'include/global.php';
|
||||
include 'include/function.php';
|
||||
|
||||
if (isset($_GET['action']) && $_GET['action'] == 'index') {
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
|
||||
$('title').html('Log');
|
||||
|
||||
</script>
|
||||
<?php
|
||||
|
||||
$log = getLog();
|
||||
|
||||
if (count($log) > 0) {
|
||||
|
||||
echo "<div class='row'>"
|
||||
."<div class='col-md-12'>"
|
||||
."<table class='table table-bordered table-hover'>"
|
||||
."<thead>"
|
||||
."<tr>"
|
||||
."<th class='col-md-4'>Heure Serveur</th>"
|
||||
."<th class='col-md-4'>Nom</th>"
|
||||
."<th class='col-md-4'>Infos</th>"
|
||||
."</tr>"
|
||||
."</thead>"
|
||||
."<tbody>";
|
||||
|
||||
foreach ($log as $row) {
|
||||
|
||||
echo "<tr>"
|
||||
."<td>".$row['log_time']."</td>"
|
||||
."<td>".$row['user_name']."</td>"
|
||||
."<td><code>".$row['data']."</code></td>"
|
||||
."</tr>";
|
||||
|
||||
}
|
||||
|
||||
echo
|
||||
"</tbody>"
|
||||
."</table>"
|
||||
."</div>"
|
||||
."</div>";
|
||||
|
||||
} else {
|
||||
|
||||
echo 'Aucune trace';
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user