more site stats
This commit is contained in:
parent
f92266d804
commit
36f63573c5
@ -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
|
// Required: name, nickname, account_id
|
||||||
|
|
||||||
|
@ -196,6 +196,11 @@ function zfinger_init(&$a) {
|
|||||||
|
|
||||||
require_once('include/account.php');
|
require_once('include/account.php');
|
||||||
$ret['site']['accounts'] = account_total();
|
$ret['site']['accounts'] = account_total();
|
||||||
|
|
||||||
|
require_once('include/identity.php');
|
||||||
|
$ret['site']['channels'] = channel_total();
|
||||||
|
|
||||||
|
|
||||||
$ret['site']['admin'] = get_config('system','admin_email');
|
$ret['site']['admin'] = get_config('system','admin_email');
|
||||||
|
|
||||||
json_return_and_die($ret);
|
json_return_and_die($ret);
|
||||||
|
Reference in New Issue
Block a user