aboutsummaryrefslogtreecommitdiffstats
path: root/mod/siteinfo_json.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-29 19:37:03 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-29 19:37:03 -0800
commit3f9412add27ecc225df0e5c23f5c15a4bf4e8971 (patch)
treea3210fd5ac1cf590ef2bf39f37b9dd9658619a2f /mod/siteinfo_json.php
parent29877963be2f13607976df84e1c88a161714a4a6 (diff)
downloadvolse-hubzilla-3f9412add27ecc225df0e5c23f5c15a4bf4e8971.tar.gz
volse-hubzilla-3f9412add27ecc225df0e5c23f5c15a4bf4e8971.tar.bz2
volse-hubzilla-3f9412add27ecc225df0e5c23f5c15a4bf4e8971.zip
create get_site_info() function so we can have a siteinfo.json module instead of or actually in addition to siteinfo/json
Diffstat (limited to 'mod/siteinfo_json.php')
-rw-r--r--mod/siteinfo_json.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/siteinfo_json.php b/mod/siteinfo_json.php
new file mode 100644
index 000000000..35697917c
--- /dev/null
+++ b/mod/siteinfo_json.php
@@ -0,0 +1,8 @@
+<?php
+
+function siteinfo_json_init(&$a) {
+
+ $data = get_site_info();
+ json_return_and_die($data);
+
+}