Add method to count all domains

This commit is contained in:
domi 2012-08-25 10:49:55 +00:00
parent 1a0fdc8d04
commit a6a3aeb949
1 changed files with 13 additions and 0 deletions

View File

@ -1210,6 +1210,19 @@ class m_dom {
} }
} }
/* ----------------------------------------------------------------- */
/**
* Count all domains, for all users
*/
function count_domains_all() {
global $db,$err,$cuid;
$db->query("SELECT COUNT(*) AS count FROM domaines;");
if ($db->next_record()) {
return $db->f('count');
} else {
return 0;
}
}
/* ----------------------------------------------------------------- */ /* ----------------------------------------------------------------- */
/** /**