Code

Added new constant named CONFIG_FILE.
[gosa.git] / setup / class_setup.inc
index 987fa0f21dabcd0947abe4aa18553e07e222ad3b..83311ed2f9dec5e12d61ae8a6a58242b77112090 100644 (file)
@@ -41,6 +41,13 @@ class setup
     $this->o_steps[8] = new setup_step_7();
     $this->o_steps[9] = new setup_step_8();
 
+    /* Ensure that setup is not reachable if gosa.conf (CONFIG_FILE) */
+    if(file_exists(CONFIG_DIR."/".CONFIG_FILE)){
+      session_destroy();
+      header("Location: index.php")    ;
+      exit();
+    }
+    
     foreach($this->o_steps as $key => $step){
       $this->o_steps[$key]->parent = $this;
     }
@@ -150,6 +157,8 @@ class setup
     $str = "";
     foreach($this->o_steps as $key => $step){
 
+      $step -> update_strings();
+
       $s_title    = $step -> get_title();
       $s_info     = $step -> get_small_info();
       $b_active   = $step -> is_active();