Code

Added config viewer plugin
[gosa.git] / gosa-core / setup / class_setupStep_Welcome.inc
index f030f3121191817e1c4ca690e880c4f9d8fd1163..f5104f1a02e1705b57803ad9ad6ae7de0a0e77b8 100644 (file)
@@ -24,7 +24,7 @@ class Step_Welcome  extends setup_step
 {
   var $languages      = array();
   var $attributes     = array();
-  var $header_image   = "images/welcome.png";
+  var $header_image   = "images/setup/welcome.png";
 
   function Step_Welcome()
   {
@@ -44,6 +44,8 @@ class Step_Welcome  extends setup_step
   {
     $smarty = get_smarty();
     $smarty->assign('auth_id', session_id());
+
+    $smarty->assign("path",'/tmp/gosa.auth');
     return($smarty->fetch(get_template_path("setup_welcome.tpl",TRUE,dirname(__FILE__))));
   }
 
@@ -52,8 +54,9 @@ class Step_Welcome  extends setup_step
     $id = "";
     
     /* Get auth ID from file */
-    if (file_exists('/tmp/gosa.auth') && is_readable('/tmp/gosa.auth')){
-      $contents= file('/tmp/gosa.auth');
+    $path = '/tmp/gosa.auth';
+    if (file_exists($path) && is_readable($path)){
+      $contents= file($path);
       $id= chop($contents[0]);
     }