2
0

cms.compte-delete.php 718 B

123456789101112131415161718192021222324
  1. <?php
  2. if (core::ifGet("from") AND core::getGet("from") == "compte-delete") {
  3. $banque = banque::getInitialCompte(core::getGet("id"));
  4. banque::delete(core::getGet("id"));
  5. json::delete("banque-lignes-" . core::getGet("id"));
  6. historique::recRef("/parametres-comptes.html");
  7. historique::add(array(
  8. "idType" => historique::getIdRef("ACTION"),
  9. "idUser" => session::getId(),
  10. "idPage" => historique::getIdRef("/parametres-comptes.html"),
  11. "log" => "Supression du compte en banque : " . $banque["label"] . " [" .core::getGet("id") . "]"
  12. ));
  13. header("Location: /parametres-comptes.html");
  14. exit();
  15. } else {
  16. header('HTTP/1.0 401 Unauthorized');
  17. exit();
  18. }