cms.document-delete.php 534 B

123456789101112131415161718
  1. <?php
  2. if(core::ifGet("id")) {
  3. document::delete(core::getGet("id"));
  4. json::create("documents");
  5. alert::recSuccess("Le document vient d'être supprimé");
  6. historique::recRef("/document-" . core::getGet("id").".html");
  7. historique::add(array(
  8. "idType" => historique::getIdRef("ACTION"),
  9. "idUser" => session::getId(),
  10. "idPage" => historique::getIdRef("/document-" . core::getGet("id").".html"),
  11. "log" => "Supression du document"
  12. ));
  13. }
  14. header("Location: /documents.html");
  15. exit();