Code

some changes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Jun 2005 13:01:27 +0000 (13:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Jun 2005 13:01:27 +0000 (13:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@784 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_phoneGeneric.inc

index dd0ca0ed08ae50b12edf6616943b5bbf7ca180ac..50ac4d3c292ddf4875f51887904c8e19107a2698 100644 (file)
@@ -189,7 +189,9 @@ class phoneGeneric extends plugin
       $smarty->assign($attr."ACL", chkacl($this->acl, $attr));
     }
     $smarty->assign("base_select", $this->base);
-    
+   
+    $smarty->assign("goFonDefaultIPs",array("dynamic"=>_("dynamic"),"network"=>_("Networksettings")));
     /* Show Asterisk for required attribute ipHostNumber and macAddress */
     $smarty->assign("staticAddress", "<font class=\"must\">*</font>");
         
@@ -239,18 +241,18 @@ class phoneGeneric extends plugin
     /* To check for valid ip*/
     $num="(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";
 
-    if(in_array("goFonDefaultIP",$this->usedattrs[$this->selected_categorie])){
-      if (!preg_match("/^$num\\.$num\\.$num\\.$num$/", $this->goFonDefaultIP)){
-       $message[]= _("Wrong IP format in field goFonDefaultIP.");
-      }
-    }
+//    if(in_array("goFonDefaultIP",$this->usedattrs[$this->selected_categorie])){
+//      if (!preg_match("/^$num\\.$num\\.$num\\.$num$/", $this->goFonDefaultIP)){
+//       $message[]= _("Wrong IP format in field goFonDefaultIP.");
+//      }
+//    }
     
-    /* Check for valid number */
-    if(in_array("goFonDefaultIP",$this->usedattrs[$this->selected_categorie])){
-      if((strlen($this->goFonQualify))!=(strlen((int)($this->goFonQualify)))){
-        $message[]= _("The given value for goFonQualify is not a valid number.");
-      } 
-    }
+//    /* Check for valid number */
+//    if(in_array("goFonDefaultIP",$this->usedattrs[$this->selected_categorie])){
+//      if((strlen($this->goFonQualify))!=(strlen((int)($this->goFonQualify)))){
+//        $message[]= _("The given value for 'Response timeout' is not a valid number.");
+//      } 
+//    }
 
     /* must: cn, macAddress, ipHostNumber */
     if ($this->cn == "" && chkacl ($this->acl, "cn") == ""){