aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-08 18:50:04 -0700
committerfriendica <info@friendica.com>2012-08-08 18:50:04 -0700
commit9a39d4ade21af15e9d6a3aae1f467f0d173cc0de (patch)
tree569a3839709bf452b44515dc8c6d3f887f78b9dc /include/network.php
parentc28da5673731acbedecb4209c38b72046db597e1 (diff)
downloadvolse-hubzilla-9a39d4ade21af15e9d6a3aae1f467f0d173cc0de.tar.gz
volse-hubzilla-9a39d4ade21af15e9d6a3aae1f467f0d173cc0de.tar.bz2
volse-hubzilla-9a39d4ade21af15e9d6a3aae1f467f0d173cc0de.zip
moving forward again
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php7
1 files changed, 7 insertions, 0 deletions
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 <status> variable