index 74a7183e59187bc7524da99b304ae6c566148ec6..ad36377c53174a60260005accfbde831652cb380 100644 (file)
*/
var $DNSattributes = array("dNSClass","zoneName","dNSTTL");
var $DNS_is_Account = false;
- var $DNSinitially_was_account = false;
+ var $initially_was_account = false;
var $dnsEntry = array();
var $DNSenabled = false;
/* Hide all dns specific code, if dns is not available
*/
$DNSenabled = false;
- foreach($this->config->data['TABS']['SERVTABS'] as $tab){
+ foreach($this->config->data['TABS']['SERVERSERVICE'] as $tab){
if(preg_match("/^servdns$/",$tab['CLASS'])){
$this->DNSenabled = true;
}
/* Store initally account settings
*/
- $this->DNSinitially_was_account = $this->DNS_is_account;
+ $this->initially_was_account = $this->DNS_is_account;
}
while($attr = $ldap->fetch()){
$ldap->cd($attr['dn']);
$ldap->rmDir($attr['dn']);
- show_ldap_error("Record:".$ldap->get_error(), _("Removing terminal from DNS object failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing of terminal/dns acoount with dn '%s' failed."),$this->dn));
}
*/
}
/* Create diff and follow instructions
* If Account was disabled, remove account by setting exists to false
*/
- if((!$this->DNS_is_account)&&($this->DNSinitially_was_account)){
+ if((!$this->DNS_is_account)&&($this->initially_was_account)){
$this->dnsEntry['exists'] = false;
$tmp = getDNSHostEntriesDiff($this->config,$this->OrigCn,$this->dnsEntry,$this->cn);
}else{
/* Display errors
*/
if($ldap->get_error() != "Success"){
- show_ldap_error("Record:".$ldap->get_error(), _("Saving terminal to DNS object failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Saving of terminal/dns account with dn '%s' failed."),$this->dn));
}
}
}