2
0

cms.document-delete.php 472 B

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