Browse Source

- Update infos.php to the new population counting system

pull/16/head
Jaussoin Timothée 13 years ago
parent
commit
d97ef0c02a
  1. 8
      infos.php

8
infos.php

@ -20,9 +20,9 @@
require("init.php");
// We get the informations
$conf = Conf::getServerConf();
global $sdb;
$contacts = $sdb->select('CacheVar', array());
$rd = new \modl\RosterLinkDAO();
$pop = $rd->countAccounts();
$pop = $pop[0];
// We create a simple DOMDocument
$doc = new DOMDocument("1.0");
@ -36,7 +36,7 @@ $doc->appendChild($infos);
$infos->appendChild($language);
$population = $doc->createElement("population");
$population->appendChild($doc->createTextNode(ceil(count($contacts)/2)));
$population->appendChild($doc->createTextNode($pop));
$infos->appendChild($population);
$whitelist = $doc->createElement("whitelist");

Loading…
Cancel
Save