Code

Added version info
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 11 Apr 2007 13:09:25 +0000 (13:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 11 Apr 2007 13:09:25 +0000 (13:09 +0000)
Udpated some texts

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6012 594d385d-05f5-0310-b6e9-bd551577e9d8

html/setup.php
setup/class_setupStep1.inc
setup/class_setupStep3.inc
setup/setup_frame.tpl
setup/setup_step1.tpl

index 8d2ef2e957e9ed840be4a982a8384867b01c011d..b11642a6cd80a470752e70849268f9388f0eae45 100644 (file)
@@ -122,6 +122,8 @@ if (isset($_SESSION['errors'])){
   $smarty->assign("errors"    , "");
 }
 
+$smarty->assign("version",get_gosa_version());
+
 echo $header.$smarty->fetch("../setup/setup_frame.tpl");
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>
index 5d6fdbd34a1dde0e7729b8d65ca7b6e767fe7409..0b0466c740832088e132cde7e0371e6159b02b20 100644 (file)
@@ -41,7 +41,7 @@ class setup_step_1 extends setup_step
   {
     $this->s_title      = _("Language selection");
     $this->s_title_long = _("Please choose a language");
-    $this->s_info       = _("This step is allows you to define your prefered language.");
+    $this->s_info       = _("This step is allows you to select your prefered language.");
   }
   
   function execute()
index 0912abcc458eb3c234c81aac9d5de7f14e8f2bcf..db861f868bc12e51995b1927f2d93571ca7e4e45 100644 (file)
@@ -28,9 +28,14 @@ class setup_step_3 extends setup_step
   function setup_step_3()
   {
     $this->update_strings();
+  }
 
+  
+  function load_license()
+  {
     if(!file_exists("../setup/license.txt")){
       $this->License = "<font color='red'>License not found. Setup stops here.</font>";
+      $this->license_found = false;
     }else{
       $fp = fopen("../setup/license.txt","r");
       $this->License = "";
@@ -52,13 +57,24 @@ class setup_step_3 extends setup_step
  
   function execute()
   {
+    $this->load_license();
+
     $smarty = get_smarty();
     $smarty -> assign("License",nl2br($this->License));
     $smarty -> assign("license_found",$this->license_found);
-    $this->is_completed = true;
+
     return($smarty -> fetch (get_template_path("../setup/setup_step3.tpl")));
   }
 
+  
+  function save_object()
+  {
+    if($this->license_found){
+      $this->is_completed = true;
+    }else{
+      $this->is_completed = false;
+    }
+  }
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index b5866db653f3391d7ceae6da88cd90e47d6c18c0..e067df5d5d4b01b16e61736ad9c28c661b2c5eaa 100644 (file)
@@ -29,7 +29,7 @@
                </div>
 
                <div class='setup_bottom'>
-                       Bottom  
+                       {$version}      
                </div>
        </div>
 </div>
index a2c23394e22f3132ad8d20726544e8d2deb7e81e..e6df1b2ee71367dd8f68bc34c861fee6323e0ca3 100644 (file)
@@ -1,6 +1,6 @@
 <div>
        <div class='default'>
-               <b>{t}Please select prefered language{/t}</b>
+               <b>{t}Please select your prefered language{/t}</b>
        </div>
        <br>
        <div  class='default' style='float:left;width:160px;'>