Code

Added gotomasses option to setup step3
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Aug 2007 10:25:55 +0000 (10:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Aug 2007 10:25:55 +0000 (10:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7106 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/gosa.conf
setup/class_setupStep_Config3.inc
setup/setup_config3.tpl

index 82abc69a15c371098f54a8b340e2ec5c3e2cb756..c40c1f42731b864a0eb878066fd112cc18957506 100644 (file)
                        <plugin acl="notifications" class="msgplug" icon="notifications.png"
                                 path="plugins/addons/notifications" />
 -->
+{if $cv.optional.gotomasses_active}
+                       <plugin acl="gotomasses" class="gotomasses" icon="system.png"
+                               path="{$cv.optional.gotomasses_file}" />
+{else}
 <!--
                        <plugin acl="gotomasses" class="gotomasses" icon="system.png"
-                                path="plugins/addons/gotomasses" />
+                               path="plugins/addons/gotomasses" />
 -->
+{/if}
                </section>
        </menu>
 
index 8ed1d6df4b2dcaf0470a84454b94ec81f04bf16c..9148868ef95cd131e996bfec6dc7a0b17272de33 100644 (file)
@@ -53,6 +53,9 @@ class Step_Config3 extends setup_step
               "kioskpath" => "/var/spool/kiosk",
               "kioskpath_active" => FALSE,
 
+              "gotomasses_file"   => "/etc/gosa/gotomasses",
+              "gotomasses_active" => FALSE,
+
               "noprimarygroup"  => FALSE);
 
   var $attributes = array("errorlvl");
@@ -136,6 +139,15 @@ class Step_Config3 extends setup_step
         $this->optional['kioskpath_active'] = FALSE;
       }
 
+      if(isset($_POST['gotomasses_active'])){
+        $this->optional['gotomasses_active'] = TRUE;
+        if(isset($_POST['gotomasses_file'])){
+          $this->optional['gotomasses_file'] = get_post('gotomasses_file');
+        }
+      }else{
+        $this->optional['gotomasses_active'] = FALSE;
+      }
+
       if(isset($_POST['auto_network_hook_active'])){
         $this->optional['auto_network_hook_active'] = TRUE;
         if(isset($_POST['auto_network_hook'])){
index 4f71c89373bf146c06881fc87c2ac9e3e907c242..47c2a42301f7d59faf7ccd6a6e87d756612e9bb4 100644 (file)
         </div>
     </div>
 
+    <div class='step4_container'>
+        <div class='step4_name'>
+            {t}Enable system deployment{/t}
+        </div>
+        <div class='step4_value'>
+            {if $optional.gotomasses_active == FALSE}
+                <input type='checkbox' value='1' name='gotomasses_active'
+                    onClick='changeState("gotomasses_file");'>
+                <input size=40 id='gotomasses_file' name='gotomasses_file' 
+                                       type='text' value='{$optional.gotomasses_file}' disabled>
+            {else}
+                <input type='checkbox' value='1' name='gotomasses_active' checked>
+                <input size=40 id='gotomasses_file' name='gotomasses_file' 
+                                       type='text' value='{$optional.gotomasses_file}'  >
+            {/if}
+        </div>
+    </div>
+
 
     <div class='step4_container'>
         <div class='step4_name'>