From 04c84e067a12c2e1627871075a8411d24bae34e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Fri, 23 Jun 2006 03:08:29 +0000 Subject: [PATCH] =?UTF-8?q?modification=20cosm=C3=A9tique:=20utiliser=20se?= =?UTF-8?q?t=5Fsub=5Fdomain()=20pour=20r=C3=A9gler=20les=20sous-domaine=20?= =?UTF-8?q?=C3=A0=20la=20cr=C3=A9ation=20pour=20=C3=A9viter=20la=20duplica?= =?UTF-8?q?tion=20de=20code=20et=20clarifier=20le=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/class/m_dom.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bureau/class/m_dom.php b/bureau/class/m_dom.php index fe7a64b8..6c0453cd 100644 --- a/bureau/class/m_dom.php +++ b/bureau/class/m_dom.php @@ -257,9 +257,9 @@ class m_dom { $db->query("insert into domaines (compte,domaine,mx,gesdns,gesmx,noerase) values ('$cuid','$domain','$L_MX','$dns','$mx','$noerase');"); $db->query("insert into domaines_standby (compte,domaine,mx,gesdns,gesmx,action) values ('$cuid','$domain','$L_MX','$dns','$mx',0);"); // INSERT // Creation des 3 sous-domaines par défaut : Vide, www et mail - $db->query("insert into sub_domaines (compte,domaine,sub,valeur,type) values ('$cuid','$domain','','http://www.".$domain."',1);"); - $db->query("insert into sub_domaines (compte,domaine,sub,valeur,type) values ('$cuid','$domain','www','/',0);"); - $db->query("insert into sub_domaines (compte,domaine,sub,valeur,type) values ('$cuid','$domain','mail','',3);"); + $this->set_sub_domain($domain, '', $this->type_url, 'add', 'http://www.'.$domain); + $this->set_sub_domain($domain, 'www', $this->type_local, 'add', '/'); + $this->set_sub_domain($domain, 'mail', $this->type_webmail, 'add', ''); // DEPENDANCE : // Lancement de add_dom sur les classes domain_sensitive : // Declenchons les autres classes.