| 12345678910111213141516171819202122 |
- <?php
- if (core::ifPost("from")) {
- clients::insert(core::getPost("client"));
- alert::recSuccess("Ajout du client : ". core::getPost("client"));
- historique::recRef("/parametres-clients.html");
- historique::add(array(
- "idType" => historique::getIdRef("ACTION"),
- "idUser" => session::getId(),
- "idPage" => historique::getIdRef("/parametres-clients.html"),
- "log" => "Ajout du client : " . core::getPost("client")
- ));
- header("Location: /parametres-clients.html");
- exit();
- } else {
- header('HTTP/1.0 401 Unauthorized');
- exit();
- }
|