more site stats

This commit is contained in:
friendica 2013-07-24 18:17:00 -07:00
parent f92266d804
commit 36f63573c5
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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);