cms.login.php 212 B

123456789101112
  1. <?php
  2. if (core::ifPost("from") AND core::getPost("from") == "login") {
  3. user::connect(core::getPost());
  4. header("Location: /");
  5. exit();
  6. } else {
  7. header('HTTP/1.0 401 Unauthorized');
  8. exit();
  9. }