Files
afup/htdocs/pages/administration/logs.php
2020-04-21 15:15:42 +02:00

21 lines
569 B
PHP

<?php
// Impossible to access the file itself
use Afup\Site\Utils\Logs;
/** @var \AppBundle\Controller\LegacyController $this */
if (!defined('PAGE_LOADED_USING_INDEX')) {
trigger_error("Direct access forbidden.", E_USER_ERROR);
exit;
}
if (empty($_GET['numero_page'])) {
$_GET['numero_page'] = 1;
}
$smarty->assign('logs' , Logs::obtenirTous($_GET['numero_page']));
$smarty->assign('nombre_pages', Logs::obtenirNombrePages());
$smarty->assign('numero_page' , $_GET['numero_page']);
$smarty->assign('url' , 'index.php?page=logs');
?>