cms.parametres-client-add.php 592 B

12345678910111213141516171819202122
  1. <?php
  2. if (core::ifPost("from")) {
  3. clients::insert(core::getPost("client"));
  4. alert::recSuccess("Ajout du client : ". core::getPost("client"));
  5. historique::recRef("/parametres-clients.html");
  6. historique::add(array(
  7. "idType" => historique::getIdRef("ACTION"),
  8. "idUser" => session::getId(),
  9. "idPage" => historique::getIdRef("/parametres-clients.html"),
  10. "log" => "Ajout du client : " . core::getPost("client")
  11. ));
  12. header("Location: /parametres-clients.html");
  13. exit();
  14. } else {
  15. header('HTTP/1.0 401 Unauthorized');
  16. exit();
  17. }