| 123456789101112131415161718 |
- <?php
- if(core::ifGet("id")) {
- document::delete(core::getGet("id"));
- json::create("documents");
- alert::recSuccess("Le document vient d'être supprimé");
- historique::recRef("/document-" . core::getGet("id").".html");
- historique::add(array(
- "idType" => historique::getIdRef("ACTION"),
- "idUser" => session::getId(),
- "idPage" => historique::getIdRef("/document-" . core::getGet("id").".html"),
- "log" => "Supression du document"
- ));
- }
- header("Location: /documents.html");
- exit();
|