Code

Added user to gotoShare attribute
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Jan 2006 12:23:45 +0000 (12:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 Jan 2006 12:23:45 +0000 (12:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2594 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc
plugins/personal/environment/environment.tpl

index dcbe0bdb49b778f481cd4bb17e99922bd5c01517..069e87044cc78503c099f1ad832ac8579fe2b9b2 100644 (file)
@@ -146,9 +146,9 @@ class environment extends plugin
         $tmp2['name']        =$tmp[1];
         $tmp2['mountPoint']  =$tmp[2];
         if(isset($tmp[3])){
-          $tmp2['OtherStuff']  =$tmp[3];
+          $tmp2['Username']  =$tmp[3];
         }else{
-          $tmp2['OtherStuff']  ="";
+          $tmp2['Username']  ="";
         }
         $this->gotoShares[$tmp[1]."|".$tmp[0]]=$tmp2;
       }
@@ -506,9 +506,10 @@ class environment extends plugin
       }else{
         $a_share = $this->gotoAvailableShares[$_POST['gotoShareSelection']];
         $s_mount = $_POST['gotoShareMountPoint'];
+        $s_user  = $_POST['ShareUser'];
         /* Preparing the new assignment */ 
         $this->gotoShares[$a_share['name']]=$a_share;
-        $this->gotoShares[$a_share['name']]['OtherStuff']="";
+        $this->gotoShares[$a_share['name']]['Username']=$s_user;
         $this->gotoShares[$a_share['name']]['mountPoint']=$s_mount;
       }
     }  
@@ -948,7 +949,7 @@ class environment extends plugin
     /* Prepare Shares */
     $this->attrs['gotoShare']=array();
     foreach($this->gotoShares as $name => $share){
-      $this->attrs['gotoShare'][] =$share['server']."|".$share['name']."|".$share['mountPoint']."|".$share['OtherStuff'];
+      $this->attrs['gotoShare'][] =$share['server']."|".$share['name']."|".$share['mountPoint']."|".$share['Username'];
     }
 
     if((!empty($this->gotoKioskProfile))&&($this->gotoKioskProfile != "none")){
@@ -1019,7 +1020,7 @@ class environment extends plugin
     if(is_array($this->gotoShares)){
       foreach($this->gotoShares as $share){
         if (!preg_match('/^!/', $share['server'])){
-          $a_return[$share['name']."|".$share['server']]= $share['server']."://".$share['name']." on ".$share['mountPoint'];
+          $a_return[$share['name']."|".$share['server']]= $share['server']."://".$share['name']." on ".$share['mountPoint']." as ".$share['Username'];
         }
       }
     }
index 5e9777ffbf1db25e02d62a5b568c63dae9b5aa72..0001a68c8e24b2b7bb957435148b51298ddca7dd 100644 (file)
        <option disabled>&nbsp;</option>
                                </select>
                                <input type="text" size=15 {$gotoShareACL} name="gotoShareMountPoint" value="{t}Mountpoint{/t}">
+                               <input type="text" size=15 {$gotoShareACL} name="ShareUser" value="ShareUser">
                                <input type="submit" {$gotoShareACL} name="gotoShareAdd" value="{t}Add{/t}"> 
                                <input type="submit" {$gotoShareACL} name="gotoShareDel" value="{t}Remove{/t}"> 
                        </td>