First commit

This commit is contained in:
pezcurrel 2024-08-12 19:38:55 +02:00
parent 05c2c1da47
commit 4e32c26f45

10
web/lib/gethttpcode.php Normal file
View file

@ -0,0 +1,10 @@
<?php
function gethttpcode(&$headers) {
if (is_array($headers) && preg_match('#^\S+ (\d+) \S+.*$#',$headers[0],$matches)===1)
return $matches[1]+0;
else
return 0;
}
?>