diff options
author | Friendika <info@friendika.com> | 2011-08-09 18:55:46 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-09 18:55:46 -0700 |
commit | 1bfe1283aa38454369f29883411a6c012c88df59 (patch) | |
tree | b85f93b9d4c6b40bf4678ccd32fea7b9531f27bb /include/network.php | |
parent | 49be3941828668e762141972afa1324045805f20 (diff) | |
download | volse-hubzilla-1bfe1283aa38454369f29883411a6c012c88df59.tar.gz volse-hubzilla-1bfe1283aa38454369f29883411a6c012c88df59.tar.bz2 volse-hubzilla-1bfe1283aa38454369f29883411a6c012c88df59.zip |
crypto stuff
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/network.php b/include/network.php index 48e830e84..ddfc34977 100644 --- a/include/network.php +++ b/include/network.php @@ -181,6 +181,20 @@ function xml_status($st, $message = '') { }} +if(! function_exists('http_status_exit')) { +function http_status_exit($val) { + + if($val >= 400) + $err = 'Error'; + if($val >= 200 && $val < 300) + $err = 'OK'; + + logger('http_status_exit ' . $val); + header($_SERVER["SERVER_PROTOCOL"] . ' ' . $val . ' ' . $err); + killme(); + +}} + // convert an XML document to a normalised, case-corrected array // used by webfinger |