| 1234567891011121314151617181920 |
- <?php
- if (core::ifPost("from") AND core::getPost("from") == "user") {
-
- if(core::getPost("id") == "add"){
- user::add_user(core::getPost());
- header("Location: /?p=user&id=" . user::lastUser());
- exit();
-
- } else {
- user::maj_user(core::getPost());
- header("Location: /?p=user&id=" . core::getPost("id"));
- exit();
- }
-
- } else {
- header('HTTP/1.0 401 Unauthorized');
- exit();
- }
|