From e79702c344b3c673963fd42980c4882da84e6bfd Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sun, 11 Apr 2010 08:41:08 +0000 Subject: [PATCH] 1.0RC1 dans changelog + debug fonction checkalldom --- bureau/class/m_admin.php | 6 +++--- debian/changelog | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index 285ddd3c..d1ba5717 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -854,7 +854,7 @@ EOF; /** Check all the domains for their NS MX and IPs */ function checkalldom() { - global $L_NS1,$L_NS2,$L_MX,$L_PUBLIC_IP; + global $db,$L_NS1,$L_NS2,$L_MX,$L_PUBLIC_IP; $checked=array(); $r=$db->query("SELECT * FROM domaines ORDER BY domaine;"); $dl=array(); @@ -875,7 +875,7 @@ EOF; if (count($out)==0) { $dontexist=true; } else { - if (!in_array($L_NS1,$out) || !in_array($L_NS2,$out)) { + if (!in_array($L_NS1.".",$out) || !in_array($L_NS2.".",$out)) { $errno=1; $errstr.="NS for this domain are not $L_NS1 and $L_NS2 BUT ".implode(",",$out)."\n"; } } @@ -887,7 +887,7 @@ EOF; foreach($out as $o) { list($t,$out2[])=explode(" ",$o); } - if (!in_array($L_MX,$out2)) { + if (!in_array($L_MX.".",$out2)) { $errno=1; $errstr.="MX is not $L_MX BUT ".implode(",",$out2)."\n"; } } diff --git a/debian/changelog b/debian/changelog index 65f65b0f..c5bc84ff 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -alternc (0.9.10~rc1) stable; urgency=low +alternc (1.0~rc1) stable; urgency=low * new features: * removed the dependency on postgrey, added dnsutils (for domain checks) @@ -30,7 +30,7 @@ alternc (0.9.10~rc1) stable; urgency=low * Major patch * Blue desktop using only css, no frameset etc * Sanitizing of get/request/post parameters - + -- Benjamin Sonntag Sat, 12 May 2009 17:55:30 +0200 alternc (0.9.9) stable; urgency=low