get nonack on info-call

This commit is contained in:
2018-11-17 02:06:44 +01:00
parent 75929aad48
commit 9cf5133469
13 changed files with 265 additions and 63 deletions

View File

@@ -217,10 +217,15 @@ function refreshVerifyToken()
return $obj['access_token'];
}
/**
* @param int $http_code
* @param array $message
*/
function api_return($http_code, $message)
{
http_response_code($http_code);
echo $message;
header('Content-Type: application/json');
echo json_encode($message);
die();
}