Bootswatch, Summernote, and Captcheck mods for Mods for HESK (mods-for-hesk.com). In use at support.netsyms.com.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

http_response_code.php 397B

123456789101112131415
  1. <?php
  2. // For 4.3.0 <= PHP <= 5.4.0
  3. if (function_exists('http_response_code') === false) {
  4. function http_response_code($newcode = NULL) {
  5. static $code = 200;
  6. if ($newcode !== NULL) {
  7. header('X-PHP-Response-Code: ' . $newcode, true, $newcode);
  8. if (!headers_sent()) {
  9. $code = $newcode;
  10. }
  11. }
  12. return $code;
  13. }
  14. }