summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 42501ab)
raw | patch | inline | side by side (parent: 42501ab)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 21 Jun 2005 13:01:27 +0000 (13:01 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 21 Jun 2005 13:01:27 +0000 (13:01 +0000) |
plugins/admin/systems/class_phoneGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc
index dd0ca0ed08ae50b12edf6616943b5bbf7ca180ac..50ac4d3c292ddf4875f51887904c8e19107a2698 100644 (file)
$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>");
/* 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") == ""){