__("This page is restricted to authorized staff");
exit();
}
$fields=array(
"delaccount"=>array("request","string",""),
"newlogin"=>array("request","string",""),
"newpass"=>array("request","string",""),
"delip"=>array("request","string",""),
"newip"=>array("request","string",""),
"newclass"=>array("request","string","32"),
);
getFields($fields);
if($delaccount){
// Delete an account
if($dom->del_slave_account($delaccount)){
$error=_("The requested account has been deleted. It is now denied.");
}
}
if($newlogin){
// Add an account
if($dom->add_slave_account($newlogin,$newpass)){
$error=_("The requested account address has been created. It is now allowed.");
unset($newlogin);unset($newpass);
}
}
if($delip){
// Delete an ip address/class
if($dom->del_slave_ip($delip)){
$error=_("The requested ip address has been deleted. It will be denied in one hour.");
}
}
if($newip){
// Add an ip address/class
if($dom->add_slave_ip($newip,$newclass)){
$error=_("The requested ip address has been added to the list. It will be allowed in one hour.");
unset($newip);unset($newclass);
}
}
include_once("head.php");
if(!empty($error)){
echo"<p class=\"error\">$error</p>";
}
?>
<h3><?php__("Manage allowed ip for slave zone transfers");?></h3>
<hrid="topbar"/>
<?php
$c=$dom->enum_slave_ip();
if(is_array($c)){?>
<p>
<?php__("Here is the list of the allowed ip or ip class for slave dns zone transfer requests (AXFR). You must add the ip address of all the slave DNS you have so that those slaves will be allowed to transfer the zone files. There is also some defaults ip from DNS checks made by some third-party technical offices such as afnic (for .fr domains)");?>
<p><?php__("If you want to allow an ip address or class to connect to your dns server, enter it here. Choose 32 as a prefix for single ip address.");?></p>
<h3><?php__("Manage allowed accounts for slave zone transfers");?></h3>
<hrid="topbar"/>
<br/>
<?php
$c=$dom->enum_slave_account();
if(is_array($c)){?>
<p><?php__("Here is the list of the allowed accounts for slave dns synchronization. You can configure the alternc-slavedns package on your slave server and give him the login/pass that will grant him access to your server's domain list. ");?></p>
<h4class="toggle toggle-next"><ahref="javascript:void(0)"class="btn"><?=_("In need of DNS Slave servers?")?> ▼</a></h4>
<divclass="info-hide">
<p><?=_("We offer free of charge DNS servers for alternc users.");?></p>
<h4>Howdoesitwork?</h4>
<ol>
<li><?=sprintf(_("<strong>Allow the servers to access your server.</strong> Follow the instructions on <a href='%s' target='blank'>this page</a>"),"http://aide-alternc.org")?></li>
<li><?=sprintf(_("<strong>Subscribe to alternc.net.</strong> Go to <a href='%s' target='_blank' class='btn btn-inline btn-link'>this site</a> to use the DNS servers provided for free by the AlternC association."),"http://aide-alternc.org/")?> </li>
</ol>i
<br/>
<p><?=_("The alternc.net servers will take care of transfering and distributing to the world your domains zones.")?> </p>