Commit a6a3aeb9 authored by domi's avatar domi
Browse files

Add method to count all domains

parent 1a0fdc8d
......@@ -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;
}
}
/* ----------------------------------------------------------------- */
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment