From b07faf3d715ec8317f0ba89ec32198dd4a767d43 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 22 Jan 2010 08:53:18 +0000 Subject: [PATCH] Updated class names git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15243 594d385d-05f5-0310-b6e9-bd551577e9d8 --- ...ist.inc => class_EventAddSystemDialog.inc} | 0 .../goto/events/class_filterSystemByIp.inc | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+) rename gosa-plugins/goto/addons/goto/events/{class_EventTargetAddList.inc => class_EventAddSystemDialog.inc} (100%) create mode 100644 gosa-plugins/goto/addons/goto/events/class_filterSystemByIp.inc diff --git a/gosa-plugins/goto/addons/goto/events/class_EventTargetAddList.inc b/gosa-plugins/goto/addons/goto/events/class_EventAddSystemDialog.inc similarity index 100% rename from gosa-plugins/goto/addons/goto/events/class_EventTargetAddList.inc rename to gosa-plugins/goto/addons/goto/events/class_EventAddSystemDialog.inc diff --git a/gosa-plugins/goto/addons/goto/events/class_filterSystemByIp.inc b/gosa-plugins/goto/addons/goto/events/class_filterSystemByIp.inc new file mode 100644 index 000000000..643a42303 --- /dev/null +++ b/gosa-plugins/goto/addons/goto/events/class_filterSystemByIp.inc @@ -0,0 +1,42 @@ + $entry){ + if(!isset($entry['ipHostNumber'])){ + unset($entries[$key]); + continue; + } + if(!tests::is_in_ip_range($ipstart,$ipstop, $entry['ipHostNumber'][0])){ + unset($entries[$key]); + continue; + } + } + } + return(array_values($entries)); + } + +} +?> -- 2.30.2