cms.user.php 459 B

1234567891011121314151617181920
  1. <?php
  2. if (core::ifPost("from") AND core::getPost("from") == "user") {
  3. if(core::getPost("id") == "add"){
  4. user::add_user(core::getPost());
  5. header("Location: /user-" . user::lastUser() . ".html");
  6. exit();
  7. } else {
  8. user::maj_user(core::getPost());
  9. header("Location: /user-" . core::getPost("id") . ".html");
  10. exit();
  11. }
  12. } else {
  13. header('HTTP/1.0 401 Unauthorized');
  14. exit();
  15. }