| 123456789101112131415161718192021222324 |
- <?php
- if (core::ifGet("from") AND core::getGet("from") == "compte-delete") {
- $banque = banque::getInitialCompte(core::getGet("id"));
- banque::delete(core::getGet("id"));
- json::delete("banque-lignes-" . core::getGet("id"));
- historique::recRef("/parametres-comptes.html");
- historique::add(array(
- "idType" => historique::getIdRef("ACTION"),
- "idUser" => session::getId(),
- "idPage" => historique::getIdRef("/parametres-comptes.html"),
- "log" => "Supression du compte en banque : " . $banque["label"] . " [" .core::getGet("id") . "]"
- ));
- header("Location: /parametres-comptes.html");
- exit();
- } else {
- header('HTTP/1.0 401 Unauthorized');
- exit();
- }
|