aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-24 18:17:00 -0700
committerfriendica <info@friendica.com>2013-07-24 18:17:34 -0700
commit36f63573c5cd471f3296dff0a277900093267cf3 (patch)
tree368d139e13cbe88682717ceac29938db3279b4ef
parentf92266d8040dd4d2e0aa08760d2ab5a8d9a1dfb3 (diff)
downloadvolse-hubzilla-36f63573c5cd471f3296dff0a277900093267cf3.tar.gz
volse-hubzilla-36f63573c5cd471f3296dff0a277900093267cf3.tar.bz2
volse-hubzilla-36f63573c5cd471f3296dff0a277900093267cf3.zip
more site stats
-rw-r--r--include/identity.php8
-rw-r--r--mod/zfinger.php5
2 files changed, 13 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php
index 7e42e33a8..8f8a71fee 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -58,6 +58,14 @@ function create_dir_account() {
}
+function channel_total() {
+ $r = q("select channel_id from channel where true");
+ if(is_array($r))
+ return count($r);
+ return false;
+}
+
+
// Required: name, nickname, account_id
diff --git a/mod/zfinger.php b/mod/zfinger.php
index 50f4d0afe..12a24259e 100644
--- a/mod/zfinger.php
+++ b/mod/zfinger.php
@@ -196,6 +196,11 @@ function zfinger_init(&$a) {
require_once('include/account.php');
$ret['site']['accounts'] = account_total();
+
+ require_once('include/identity.php');
+ $ret['site']['channels'] = channel_total();
+
+
$ret['site']['admin'] = get_config('system','admin_email');
json_return_and_die($ret);