X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fstatistics_json.php;h=9b2263da778de9e027f7089fa053918d95eb08d2;hb=52625653d389c9c8d484781059a11f626e8f6a7a;hp=07444d2bb525f7facb01e51ba9f77ce6146fde7d;hpb=4d591c4a074a11bb27f5fe0981a13125d4ef2e02;p=friendica.git diff --git a/mod/statistics_json.php b/mod/statistics_json.php index 07444d2bb5..9b2263da77 100644 --- a/mod/statistics_json.php +++ b/mod/statistics_json.php @@ -1,27 +1,31 @@ $a->config["sitename"], - "network" => FRIENDICA_PLATFORM, - "version" => FRIENDICA_VERSION."-".DB_UPDATE_VERSION, - "registrations_open" => ($a->config['register_policy'] != 0), - "total_users" => get_config('nodeinfo','total_users'), - "active_users_halfyear" => get_config('nodeinfo','active_users_halfyear'), - "active_users_monthly" => get_config('nodeinfo','active_users_monthly'), - "local_posts" => get_config('nodeinfo','local_posts') - ); + "name" => $a->config["sitename"], + "network" => FRIENDICA_PLATFORM, + "version" => FRIENDICA_VERSION . "-" . DB_UPDATE_VERSION, + "registrations_open" => ($a->config['register_policy'] != 0), + "total_users" => Config::get('nodeinfo', 'total_users'), + "active_users_halfyear" => Config::get('nodeinfo', 'active_users_halfyear'), + "active_users_monthly" => Config::get('nodeinfo', 'active_users_monthly'), + "local_posts" => Config::get('nodeinfo', 'local_posts') + ); $statistics["services"] = array(); $statistics["services"]["appnet"] = plugin_enabled("appnet"); @@ -53,7 +57,7 @@ function statistics_json_init(App $a) { $statistics["wordpress"] = $statistics["services"]["wordpress"]; header("Content-Type: application/json"); - echo json_encode($statistics, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES); - logger("statistics_init: printed ".print_r($statistics, true), LOGGER_DATA); + echo json_encode($statistics, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); + logger("statistics_init: printed " . print_r($statistics, true), LOGGER_DATA); killme(); }