65 lines
1.8 KiB
PHP
65 lines
1.8 KiB
PHP
<?php
|
|
/**
|
|
* MSIN-4464 — Traçabilité fiche : whitelist + rétention (super admin).
|
|
*/
|
|
|
|
$strLangue = 'fr';
|
|
$strPage = 'fiche_audit.php';
|
|
|
|
require_once('php/inc_start_time.php');
|
|
require_once('php/inc_functions.php');
|
|
require_once('php/inc_fx_fiche_audit_admin.php');
|
|
|
|
global $objDatabase;
|
|
|
|
if (empty($_SESSION['usa_id'])) {
|
|
header('Location: login.php');
|
|
exit;
|
|
}
|
|
|
|
$strFlash = '';
|
|
$strError = '';
|
|
|
|
if ($_SERVER['REQUEST_METHOD'] === 'POST' && ($_POST['action'] ?? '') === 'save_fiche_audit') {
|
|
if (!fxAdminCanEditFicheAudit()) {
|
|
header('Location: fiche_audit.php?err=' . urlencode('Modification réservée.'));
|
|
exit;
|
|
}
|
|
$arrResult = fxFicheAuditSaveConfig($_POST);
|
|
if ($arrResult['state'] === 'ok') {
|
|
header('Location: fiche_audit.php?ok=' . urlencode($arrResult['message']));
|
|
exit;
|
|
}
|
|
$strError = $arrResult['message'];
|
|
}
|
|
|
|
if (!empty($_GET['ok'])) {
|
|
$strFlash = (string)$_GET['ok'];
|
|
}
|
|
if (!empty($_GET['err'])) {
|
|
$strError = (string)$_GET['err'];
|
|
}
|
|
|
|
include('inc_header.php');
|
|
?>
|
|
<div class="container-fluid" id="main">
|
|
<div class="row">
|
|
<div class="col-md-9 col-lg-10 order-first order-md-last py-3">
|
|
<?php
|
|
require_once dirname(__FILE__) . '/../php/inc_fx_superadm_v2_ui.php';
|
|
$strV2Title = !empty($_GET['voir_logs'])
|
|
? 'Traçabilité fiche — Logs'
|
|
: 'Traçabilité fiche — Champs & rétention';
|
|
fxSuperadmV2PanelOpen($strV2Title, array(
|
|
'zone_class' => 'superadm-content-v2-zone superadm-content-v2-zone--flush',
|
|
));
|
|
fxFicheAuditAdminRenderPage($strFlash, $strError);
|
|
fxSuperadmV2PanelClose();
|
|
?>
|
|
<p> </p>
|
|
</div>
|
|
<?php require_once('inc_droite.php'); ?>
|
|
</div>
|
|
</div>
|
|
<?php require_once('inc_footer.php'); ?>
|