diff --git a/bureau/class/m_mail.php b/bureau/class/m_mail.php index e83c5693..d63d3f67 100644 --- a/bureau/class/m_mail.php +++ b/bureau/class/m_mail.php @@ -681,6 +681,21 @@ class m_mail { } return false; } + + + /* ----------------------------------------------------------------- */ + /** Out (echo) the complete hosted domain list : + */ + function echo_domain_list() { + global $db,$err; + $db->query("SELECT domaine FROM domaines WHERE gesdns=1 ORDER BY domaine"); + while ($db->next_record()) { + echo $db->f("domaine")."\n"; + } + return true; + } + + /* ----------------------------------------------------------------- */ /** * Add a slave account that will be allowed to access the mxdomain list