X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fping.php;h=924f9ff76bff228c0db16ff41e91c34d2c59d25c;hb=2abcf76ec17a9a7754c399cdde9a4449308a4b02;hp=6e8618bbdcc5424c5e110c4f40955824b24d898e;hpb=2413a6b422d5c49024d9c2c9cff79cbc82ba3a56;p=friendica.git
diff --git a/mod/ping.php b/mod/ping.php
index 6e8618bbdc..924f9ff76b 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -25,25 +25,24 @@ function ping_init(&$a) {
);
$intro = $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";
- }
-
-
$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()),
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$register$intro$mail$network$home\r\n";
+ echo "\r\n$intro$mail$network$home$register\r\n";
killme();
}