| 1234567891011121314151617181920212223 |
- <?php
- if (core::ifGet("from") AND core::getGet("from") == "compte-reset") {
- $banque = banque::getInitialCompte(core::getGet("id"));
- banque::reset(core::getGet("id"));
- json::create("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" => "Suppression des lignes du compte en banque : " . $banque["label"] . " [" .core::getGet("id") . "]"
- ));
- header("Location: /parametres-comptes.html#parametres-compte-" . core::getGet("id"));
- exit();
- } else {
- header('HTTP/1.0 401 Unauthorized');
- exit();
- }
|