Code

Added rfc2307bis
[gosa.git] / setup / class_setupStep_Config3.inc
index 728f5808ac90e0131f9a5416081ac8eb7c78df08..c5d37d95a1a887327643ef4e41e197df3a4b073b 100644 (file)
 */
 
 
-class setup_step_6a extends setup_step
+class Step_Config3 extends setup_step
 {
+  var $header_image= "images/ldap.png";
   var $optional = array(
-              "enableCopyPaste" => false,
+              "strict_units" => false,
               "forceglobals" => true,
               "forcessl" => false,
               "warnssl" => true,
@@ -44,11 +45,14 @@ class setup_step_6a extends setup_step
               "notifydir" => "",
               "notifydir_active" => FALSE,
 
+              "kioskpath" => "/var/spool/kiosk",
+              "kioskpath_active" => FALSE,
+
               "noprimarygroup"  => FALSE,
               "smbhash" => 'SMBHASH');
 
 
-  function setup_step_6a()
+  function Step_Config3()
   {
     $this->update_strings();
 
@@ -68,8 +72,8 @@ class setup_step_6a extends setup_step
   function update_strings()
   {
     $this->s_title      = _("GOsa settings 3/3");
-    $this->s_title_long = _("GOsa generic settings, page 3/3");
-    $this->s_info       = _("This dialog allows you to setup GOsa behaviour");
+    $this->s_title_long = _("GOsa settings 3/3");
+    $this->s_info       = _("Tweak some GOsa core behaviour");
   }
   
 
@@ -77,17 +81,11 @@ class setup_step_6a extends setup_step
   {
     $smarty = get_smarty();
     $smarty->assign("bool",array(FALSE => _("No"), TRUE => _("Yes")));
-
     $smarty->assign("optional", $this->optional);
-
     foreach($this->attributes as $attr){
       $smarty->assign($attr,$this->$attr);
     }
-
-    $smarty->assign("warnings" ,$this->check());
-    $smarty->assign("warnings_cnt" ,count($this->check()));
-
-    return($smarty -> fetch (get_template_path("../setup/setup_step6a.tpl")));
+    return($smarty -> fetch (get_template_path("../setup/setup_config3.tpl")));
   }
 
 
@@ -102,7 +100,7 @@ class setup_step_6a extends setup_step
         }
       }
       
-      foreach(array("noprimarygroup","enableCopyPaste","forceglobals","forcessl","warnssl","compile","debuglevel","session_lifetime","smbhash") as $name){
+      foreach(array("strict_units","noprimarygroup","forceglobals","forcessl","warnssl","compile","debuglevel","session_lifetime","smbhash") as $name){
         if(isset($_POST[$name])){
           $this->optional[$name] = stripslashes($_POST[$name]);
         }
@@ -135,6 +133,15 @@ class setup_step_6a extends setup_step
         $this->optional['mailQueueScriptPath_active'] = FALSE;
       }
 
+      if(isset($_POST['kioskpath_active'])){
+        $this->optional['kioskpath_active'] = TRUE;
+        if(isset($_POST['kioskpath'])){
+          $this->optional['kioskpath'] = $_POST['kioskpath'];
+        }
+      }else{
+        $this->optional['kioskpath_active'] = FALSE;
+      }
+
       if(isset($_POST['auto_network_hook_active'])){
         $this->optional['auto_network_hook_active'] = TRUE;
         if(isset($_POST['auto_network_hook'])){