Code

Added auto activate to thin clients
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Oct 2008 14:20:50 +0000 (14:20 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 6 Oct 2008 14:20:50 +0000 (14:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12613 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_terminalGeneric.inc

index 6c05101828d9bd938b27f566d3516fcb0f3d33ef..d2ccc9cbe8d4cd50b96c5d9c0fa95f336cc42493 100644 (file)
@@ -23,6 +23,7 @@ class termgeneric extends plugin
   var $ghSoundAdapter= "-";
   var $gotoLastUser= "-";
   var $netConfigDNS;
+  var $auto_activate= FALSE;
   
   /* Needed values and lists */
   var $base= "";
@@ -497,9 +498,8 @@ class termgeneric extends plugin
     /* Detect mode changes */
     $activate= (isset($this->saved_attributes['gotoMode']) &&
         $this->gotoMode != $this->saved_attributes['gotoMode'] &&
-        $this->gotoMode == "enabled" &&
-        tests::is_ip($this->netConfigDNS->ipHostNumber));
-
+        $this->gotoMode == "active" &&
+        tests::is_ip($this->netConfigDNS->ipHostNumber)) || $this->auto_activate;
     plugin::save();
 
     /* Strip out 'default' values */