summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b7fadf1)
raw | patch | inline | side by side (parent: b7fadf1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Nov 2007 14:35:02 +0000 (14:35 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 26 Nov 2007 14:35:02 +0000 (14:35 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7896 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_systemManagement.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index 52b1534213c6521ce0915a4c35965ec3a3083664..eafdafb131830b32e44611c37b60cc5ecd618044 100644 (file)
var $start_pasting_copied_objects = FALSE;
var $CopyPasteHandler = NULL;
+ /* Arp hanlding activated */
+ var $arp_handling_active = FALSE;
+
function systems (&$config, $ui)
{
/* Save configuration for internal use */
if((isset($this->config->data['MAIN']['ENABLECOPYPASTE']))&&(preg_match("/true/i",$this->config->data['MAIN']['ENABLECOPYPASTE']))){
$this->CopyPasteHandler = new CopyPasteHandler($this->config);
}
+
+ /* Check whether the arp handling active or not */
+ if($this->config->search("ArpNewDevice","CLASS",array('tabs')) != ""){
+ $this->arp_handling_active = TRUE;
+ }
+
}
function get_system_type($attrs)
{
- if($this->config->search("ArpNewDevice","CLASS",array('tabs')) != ""){
- $enable_arp_device_handling = TRUE;
- }
-
$classes = $attrs['objectClass'];
$type= "";
$type= "phone";
}elseif (in_array_ics('goServer', $classes)){
$type= "server";
- }elseif (in_array_ics('GOhard', $classes) && !isset($attrs['gotoMode']) && $enable_arp_device_handling){
+ }elseif (in_array_ics('GOhard', $classes) && !isset($attrs['gotoMode']) && $this->arp_handling_active){
$type= "ArpNewDevice";
}elseif (in_array_ics('GOhard', $classes)){
$type= "NewDevice";