2016-10-18 14:03:03 +00:00
|
|
|
<?php define('__ROOT__', dirname(dirname(dirname(__FILE__))) );
|
2017-09-19 14:38:16 +00:00
|
|
|
require_once __ROOT__.'/vendor/autoload.php';
|
2017-01-30 17:39:21 +00:00
|
|
|
use \api\core\Request;
|
2017-11-06 14:23:49 +00:00
|
|
|
use \generic\core\View;
|
2016-02-03 22:22:18 +00:00
|
|
|
?>
|
|
|
|
|
2016-02-01 22:09:35 +00:00
|
|
|
<!-- [1] Gestion du sous-menu de gauche -->
|
|
|
|
|
2016-02-02 22:29:30 +00:00
|
|
|
<nav class='sub-menu-side'>
|
2016-02-18 14:49:06 +00:00
|
|
|
<span data-sublink='view'>
|
2016-10-18 14:03:03 +00:00
|
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/view.svg' ); ?></span>
|
2016-02-03 07:45:42 +00:00
|
|
|
<span>Tout afficher</span>
|
|
|
|
</span>
|
|
|
|
|
2017-07-29 16:45:24 +00:00
|
|
|
<span data-sublink='details' >
|
2016-10-18 14:03:03 +00:00
|
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/filter.svg' ); ?></span>
|
2016-07-21 10:23:18 +00:00
|
|
|
<span>Détails</span>
|
2016-02-03 07:45:42 +00:00
|
|
|
</span>
|
|
|
|
|
2017-07-29 16:45:24 +00:00
|
|
|
<span data-sublink='archive' >
|
2016-10-18 14:03:03 +00:00
|
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/archive.svg' ); ?></span>
|
2016-07-21 10:23:18 +00:00
|
|
|
<span>Archiver</span>
|
2016-02-03 07:45:42 +00:00
|
|
|
</span>
|
2016-02-02 10:09:48 +00:00
|
|
|
</nav>
|
|
|
|
|
2016-02-03 10:30:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2016-02-18 14:49:06 +00:00
|
|
|
|
|
|
|
<?php
|
|
|
|
|
2016-07-04 13:45:29 +00:00
|
|
|
$post = [];
|
2016-02-18 14:49:06 +00:00
|
|
|
foreach($_POST as $k=>$v)
|
|
|
|
array_push($post, $k);
|
|
|
|
|
|
|
|
$sublink = $post[0];
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-01-11 15:28:21 +00:00
|
|
|
/* [1] VIEW -> Liste des acces
|
2016-02-18 14:49:06 +00:00
|
|
|
=========================================================*/
|
2016-07-21 14:25:29 +00:00
|
|
|
echo "<section data-sublink='view' class='list fstart'>";
|
2016-02-18 14:49:06 +00:00
|
|
|
|
2017-11-06 14:23:49 +00:00
|
|
|
$view = View::load('history.view');
|
|
|
|
echo $view->render();
|
2016-07-21 13:35:00 +00:00
|
|
|
|
2016-02-18 14:49:06 +00:00
|
|
|
echo '</section>';
|
2017-07-29 16:45:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-07-29 18:08:41 +00:00
|
|
|
/* [2] DETAILS -> Détails d'un log
|
2017-07-29 16:45:24 +00:00
|
|
|
=========================================================*/
|
|
|
|
if( isset($post[1]) && is_numeric($post[1]) ){
|
|
|
|
|
2017-11-08 12:46:57 +00:00
|
|
|
echo "<section data-sublink='details'>";
|
2017-07-29 16:45:24 +00:00
|
|
|
|
2017-11-06 14:23:49 +00:00
|
|
|
$view = View::load('history.details');
|
|
|
|
echo $view->render([
|
|
|
|
$post[1] // id_history
|
|
|
|
]);
|
2017-07-29 16:45:24 +00:00
|
|
|
|
|
|
|
echo '</section>';
|
|
|
|
|
|
|
|
}
|
2017-07-29 18:08:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* [3] Archive -> Archivage des logs
|
|
|
|
=========================================================*/
|
|
|
|
|
2017-11-13 12:49:32 +00:00
|
|
|
echo "<section data-sublink='archive'>";
|
2017-07-29 18:08:41 +00:00
|
|
|
|
2017-11-08 12:46:57 +00:00
|
|
|
$view = View::load('history.archive');
|
|
|
|
echo $view->render();
|
2017-07-29 18:08:41 +00:00
|
|
|
|
|
|
|
echo '</section>';
|
|
|
|
|