Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
domainepublic
alternc
Commits
a6a3aeb9
Commit
a6a3aeb9
authored
Aug 25, 2012
by
domi
Browse files
Add method to count all domains
parent
1a0fdc8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
bureau/class/m_dom.php
View file @
a6a3aeb9
...
...
@@ -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
;
}
}
/* ----------------------------------------------------------------- */
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment