1.0RC1 dans changelog + debug fonction checkalldom
This commit is contained in:
parent
c378f051b8
commit
e79702c344
|
@ -854,7 +854,7 @@ EOF;
|
||||||
/** Check all the domains for their NS MX and IPs
|
/** Check all the domains for their NS MX and IPs
|
||||||
*/
|
*/
|
||||||
function checkalldom() {
|
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();
|
$checked=array();
|
||||||
$r=$db->query("SELECT * FROM domaines ORDER BY domaine;");
|
$r=$db->query("SELECT * FROM domaines ORDER BY domaine;");
|
||||||
$dl=array();
|
$dl=array();
|
||||||
|
@ -875,7 +875,7 @@ EOF;
|
||||||
if (count($out)==0) {
|
if (count($out)==0) {
|
||||||
$dontexist=true;
|
$dontexist=true;
|
||||||
} else {
|
} 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";
|
$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) {
|
foreach($out as $o) {
|
||||||
list($t,$out2[])=explode(" ",$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";
|
$errno=1; $errstr.="MX is not $L_MX BUT ".implode(",",$out2)."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
alternc (0.9.10~rc1) stable; urgency=low
|
alternc (1.0~rc1) stable; urgency=low
|
||||||
|
|
||||||
* new features:
|
* new features:
|
||||||
* removed the dependency on postgrey, added dnsutils (for domain checks)
|
* removed the dependency on postgrey, added dnsutils (for domain checks)
|
||||||
|
@ -30,7 +30,7 @@ alternc (0.9.10~rc1) stable; urgency=low
|
||||||
* Major patch
|
* Major patch
|
||||||
* Blue desktop using only css, no frameset etc
|
* Blue desktop using only css, no frameset etc
|
||||||
* Sanitizing of get/request/post parameters
|
* Sanitizing of get/request/post parameters
|
||||||
|
|
||||||
-- Benjamin Sonntag <benjamin@alternc.org> Sat, 12 May 2009 17:55:30 +0200
|
-- Benjamin Sonntag <benjamin@alternc.org> Sat, 12 May 2009 17:55:30 +0200
|
||||||
|
|
||||||
alternc (0.9.9) stable; urgency=low
|
alternc (0.9.9) stable; urgency=low
|
||||||
|
|
Loading…
Reference in New Issue