Header.inc 295 B

1234567891011121314
  1. <?php
  2. class Header {
  3. public function setPageNotFound() {
  4. header('HTTP/1.0 404 Not Found');
  5. }
  6. public function setNotLoggedIn() {
  7. header('HTTP/1.0 401 Unauthorized');
  8. }
  9. public function redirect($location) {
  10. header('Location: ' . $location);
  11. }
  12. }