Code

Updated gosa.conf ACL tag for systems
[gosa.git] / gosa-core / setup / class_setupStep_Welcome.inc
index f030f3121191817e1c4ca690e880c4f9d8fd1163..082f22c3a53ef96d905c44b1b2932b4263a773a1 100644 (file)
@@ -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]);
     }