X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fping.php;h=cb067f3feb04fcd55843ed857badc7062c6427c7;hb=8c245a5d2f4e6882211ac17561f86537a7089c73;hp=731562cd1a973b127a8e5f1b163c03f0188e4abf;hpb=ac824fe83e67950f9303d13d574ff00b57dd5727;p=friendica.git
diff --git a/mod/ping.php b/mod/ping.php
index 731562cd1a..cb067f3feb 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -25,7 +25,16 @@ function ping_init(&$a) {
);
$intro = $r[0]['total'];
- $myurl = $a->get_baseurl() . '/profile/' . $user['nickname'] ;
+ if ($a->config['register_policy'] == REGISTER_APPROVE &&
+ $a->config['admin_email'] === $a->user['email']){
+ $r = q("SELECT COUNT(*) AS `total` FROM `register`");
+ $register = $r[0]['total'];
+ } else {
+ $register = "0";
+ }
+
+
+ $myurl = $a->get_baseurl() . '/profile/' . $a->user['nickname'] ;
$r = q("SELECT COUNT(*) AS `total` FROM `mail`
WHERE `uid` = %d AND `seen` = 0 AND `from-url` != '%s' ",
intval(local_user()),
@@ -35,7 +44,7 @@ function ping_init(&$a) {
$mail = $r[0]['total'];
header("Content-type: text/xml");
- echo "\r\n$intro$mail$network$home\r\n";
+ echo "\r\n$register$intro$mail$network$home\r\n";
killme();
}