re-add pending registrations in ping.php, for admin side menu
This commit is contained in:
parent
1d7d4bf8c6
commit
0111a1231c
11
mod/ping.php
11
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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue