aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ping.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-07-29 17:14:35 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-07-29 17:14:35 +0200
commit0111a1231cfa90a2aee5b18fc4b8c3dde9f48b81 (patch)
tree6940ed397ec83914d1cca74c59ba89fff8f40804 /mod/ping.php
parent1d7d4bf8c6dcd8d3d70129d5a09228a62851cc74 (diff)
downloadvolse-hubzilla-0111a1231cfa90a2aee5b18fc4b8c3dde9f48b81.tar.gz
volse-hubzilla-0111a1231cfa90a2aee5b18fc4b8c3dde9f48b81.tar.bz2
volse-hubzilla-0111a1231cfa90a2aee5b18fc4b8c3dde9f48b81.zip
re-add pending registrations in ping.php, for admin side menu
Diffstat (limited to 'mod/ping.php')
-rw-r--r--mod/ping.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/mod/ping.php b/mod/ping.php
index 7c31f00c9..924f9ff76 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 "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\r\n<result><intro>$intro</intro><mail>$mail</mail><net>$network</net><home>$home</home></result>\r\n";
+ echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\r\n<result><intro>$intro</intro><mail>$mail</mail><net>$network</net><home>$home</home><register>$register</register></result>\r\n";
killme();
}