2
0

cms.compte-reset.php 767 B

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