| 12345678910111213141516171819 |
- <?php
- if (core::ifPost("from")) {
- if(core::ifPost("id") AND core::getPost("id") != "add"){
- banque::update();
- header("Location: /parametres-comptes.html#parametres-compte-". core::getPost("id"));
- exit();
- } else {
- $lastId = banque::add();
- json::create("banque-lignes-" . $lastId);
- header("Location: /parametres-comptes.html#parametres-compte-". $lastId);
- exit();
- }
- } else {
- header('HTTP/1.0 401 Unauthorized');
- exit();
- }
|