+2003-12-18 Roland Mas <99.roland.mas@aist.enst.fr>
+
+ * common/include/GForge.class: Only count public projects and
+ non-None users when gathering statistics for the front page.
+
2003-12-17 Roland Mas <99.roland.mas@aist.enst.fr>
* README.Plugins: Mention ldapextauth in the list of known
}
function getNumberOfHostedProjects() {
- $res=db_query("SELECT count(*) AS count FROM groups WHERE status='A'");
+ $res=db_query("SELECT count(*) AS count FROM groups WHERE status='A' AND is_public=1");
if (!$res || db_numrows($res) < 1) {
$this->setError('Unable to get hosted project count: '.db_error());
return false;
}
function getNumberOfActiveUsers() {
- $res = db_query("SELECT count(*) AS count FROM users WHERE status='A'");
+ $res = db_query("SELECT count(*) AS count FROM users WHERE status='A' and user_id != 100");
if (!$res || db_numrows($res) < 1) {
$this->setError('Unable to get user count: '.db_error());
return false;
}
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
+?>