1
1
Fork 0

re-add pending registrations in ping.php, for admin side menu

This commit is contained in:
Fabio Comuni 2011-07-29 17:14:35 +02:00
parent 1d7d4bf8c6
commit 0111a1231c

View file

@ -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();
}