create get_site_info() function so we can have a siteinfo.json module instead of or actually in addition to siteinfo/json

This commit is contained in:
redmatrix
2015-11-29 19:37:03 -08:00
parent 29877963be
commit 3f9412add2
3 changed files with 115 additions and 97 deletions

8
mod/siteinfo_json.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
function siteinfo_json_init(&$a) {
$data = get_site_info();
json_return_and_die($data);
}