+ $nodeinfo["services"]["inbound"] = array();
+ $nodeinfo["services"]["outbound"] = array();
+
+ $nodeinfo["openRegistrations"] = ($a->config['register_policy'] != 0);
+
+ $nodeinfo["usage"] = array();
+ $nodeinfo["usage"]["users"] = array("total" => (int)get_config("nodeinfo","total_users"),
+ "activeHalfyear" => (int)get_config("nodeinfo","active_users_halfyear"),
+ "activeMonth" => (int)get_config("nodeinfo","active_users_monthly"));
+ $nodeinfo["usage"]["localPosts"] = (int)get_config("nodeinfo","local_posts");
+ $nodeinfo["usage"]["localComments"] = (int)get_config("nodeinfo","local_comments");
+
+ $nodeinfo["metadata"] = array("nodeName" => $a->config["sitename"]);
+
+ if (plugin_enabled("appnet"))
+ $nodeinfo["services"]["inbound"][] = "appnet";
+
+ if (plugin_enabled("appnet") OR plugin_enabled("buffer"))
+ $nodeinfo["services"]["outbound"][] = "appnet";