summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: df50b0d)
raw | patch | inline | side by side (parent: df50b0d)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 Oct 2007 07:23:40 +0000 (07:23 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 23 Oct 2007 07:23:40 +0000 (07:23 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7623 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/addons/gotomasses/class_target_list.inc | patch | blob | history |
diff --git a/plugins/addons/gotomasses/class_target_list.inc b/plugins/addons/gotomasses/class_target_list.inc
index cdae5cb182456acf0b7950cce45d92e42ba92e00..1e69057a954937dac604b5c23a306c11cb7bd02b 100644 (file)
/* Subsearch checkbox */
var $SubSearch ;
+ var $IPMatch ;
var $parent ;
var $ui ;
/* Add SubSearch checkbox */
$this->AddCheckBox(SEPERATOR);
$this->AddCheckBox("SubSearch", _("Select to search within subtrees"), _("Search in subtrees"), false);
+ $this->AddCheckBox("IPMatch", _("Select to search for a specific IP range only"), _("Match IP range"), false);
/* Name,Text,Default , Connect with alphabet */
$this->AddRegex ("Regex", _("Regular expression for matching group names"), "*" , true);
$tmp=array();
foreach($this->list as $tkey => $val ){
- if(isset($val['ipHostNumber'][0])){
- if(is_ip_range($IP_start,$val['ipHostNumber'][0]) && is_ip_range($val['ipHostNumber'][0],$IP_end)){
- $tmp[strtolower($val['cn'][0]).$val['cn'][0]]=$val;
+ if($this->IPMatch){
+ if(isset($val['ipHostNumber'][0])){
+ if(is_ip_range($IP_start,$val['ipHostNumber'][0]) && is_ip_range($val['ipHostNumber'][0],$IP_end)){
+ $tmp[strtolower($val['cn'][0]).$val['cn'][0]]=$val;
+ }
}
}else{
$tmp[strtolower($val['cn'][0]).$val['cn'][0]]=$val;