1
1
Fork 0

crypto stuff

This commit is contained in:
Friendika 2011-08-09 18:55:46 -07:00
commit 1bfe1283aa
10 changed files with 102 additions and 90 deletions

View file

@ -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