From 9a39d4ade21af15e9d6a3aae1f467f0d173cc0de Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 8 Aug 2012 18:50:04 -0700 Subject: moving forward again --- include/network.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/network.php') diff --git a/include/network.php b/include/network.php index 0e16f3c2d..8617c1f44 100644 --- a/include/network.php +++ b/include/network.php @@ -275,6 +275,13 @@ function z_post_url($url,$params, $headers = null, &$redirects = 0, $timeout = 0 +function json_return_and_die($x) { + header("content-type: application/json"); + echo json_encode($x); + killme(); +} + + // Generic XML return // Outputs a basic dfrn XML status structure to STDOUT, with a variable -- cgit v1.2.3