Add method to count all domains
This commit is contained in:
parent
1a0fdc8d04
commit
a6a3aeb949
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue