X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Fping.php;h=924f9ff76bff228c0db16ff41e91c34d2c59d25c;hb=2ef82cd34760565b6446a148770b3efbb49d3ad0;hp=7c31f00c9c355848791e452fefffd3ab996970c6;hpb=4e7a5dc56ebb8d99ed06b0b303c4ee24460ae6a8;p=friendica.git
diff --git a/mod/ping.php b/mod/ping.php
index 7c31f00c9c..924f9ff76b 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -31,11 +31,18 @@ function ping_init(&$a) {
intval(local_user()),
dbesc($myurl)
);
-
$mail = $r[0]['total'];
+
+ if ($a->config['register_policy'] == REGISTER_APPROVE && is_site_admin()){
+ $r = q("SELECT COUNT(*) AS `total` FROM `register`");
+ $register = $r[0]['total'];
+ } else {
+ $register = "0";
+ }
+
header("Content-type: text/xml");
- echo "\r\n$intro$mail$network$home\r\n";
+ echo "\r\n$intro$mail$network$home$register\r\n";
killme();
}