diff --git a/bureau/class/m_dom.php b/bureau/class/m_dom.php index d8a039cf..aa7f9a46 100644 --- a/bureau/class/m_dom.php +++ b/bureau/class/m_dom.php @@ -70,8 +70,6 @@ class m_dom { var $type_url = "1"; var $type_ip = "2"; var $type_webmail = "3"; - var $type_cname = "4"; // TODO : implement this ;) - var $type_ns = "5"; // TODO : implement this ;) var $action_insert = "0"; var $action_update= "1"; @@ -977,10 +975,14 @@ class m_dom { /** * Returns the complete hosted domain list : */ - function get_domain_list() { + function get_domain_list($uid=-1) { global $db,$err; + $uid=intval($uid); $res=array(); - $db->query("SELECT domaine FROM domaines WHERE gesdns=1 ORDER BY domaine"); + if ($uid!=-1) { + $sql=" AND compte='$uid' "; + } + $db->query("SELECT domaine FROM domaines WHERE gesdns=1 $sql ORDER BY domaine"); while ($db->next_record()) { $res[]=$db->f("domaine"); } diff --git a/bureau/locales/fr_FR/LC_MESSAGES/messages.po b/bureau/locales/fr_FR/LC_MESSAGES/messages.po index 87eba110..2177ae14 100644 --- a/bureau/locales/fr_FR/LC_MESSAGES/messages.po +++ b/bureau/locales/fr_FR/LC_MESSAGES/messages.po @@ -1222,6 +1222,10 @@ msgstr "Liste des comptes ftp" msgid "Protect a folder" msgstr "Protéger un répertoire" +#: ../admin/hta_add.php:39 ../admin/hta_add.php:38 +msgid "Enter the name of the folder you want to protect. It must already exists." +msgstr "Choisir le répertoire que vous souhaitez protéger. Ce répertoire doit préexister." + #: ../admin/hta_add.php:39 ../admin/hta_add.php:36 msgid "The folder must exists." msgstr "Le répertoire doit déjà exister."