Code

Some functions were missing.
[gosa.git] / plugins / admin / systems / class_termDNS.inc
index 74a7183e59187bc7524da99b304ae6c566148ec6..ad36377c53174a60260005accfbde831652cb380 100644 (file)
@@ -27,7 +27,7 @@ class termDNS extends plugin
    */
   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;
 
@@ -56,7 +56,7 @@ class termDNS extends plugin
     /* 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;
       }
@@ -100,7 +100,7 @@ class termDNS extends plugin
  
     /* Store initally account settings 
      */
-    $this->DNSinitially_was_account = $this->DNS_is_account;
+    $this->initially_was_account = $this->DNS_is_account;
   }
 
 
@@ -230,7 +230,7 @@ class termDNS extends plugin
     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));
     }
     */
   }
@@ -408,7 +408,7 @@ class termDNS extends plugin
       /* 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{
@@ -445,7 +445,7 @@ class termDNS extends plugin
       /* 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));
       }
     }
   }