summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f875a97)
raw | patch | inline | side by side (parent: f875a97)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 27 Jan 2006 12:23:45 +0000 (12:23 +0000) | ||
committer | hickert <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 | patch | blob | history | |
plugins/personal/environment/environment.tpl | patch | blob | history |
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index dcbe0bdb49b778f481cd4bb17e99922bd5c01517..069e87044cc78503c099f1ad832ac8579fe2b9b2 100644 (file)
$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;
}
}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;
}
}
/* 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")){
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'];
}
}
}
diff --git a/plugins/personal/environment/environment.tpl b/plugins/personal/environment/environment.tpl
index 5e9777ffbf1db25e02d62a5b568c63dae9b5aa72..0001a68c8e24b2b7bb957435148b51298ddca7dd 100644 (file)
<option disabled> </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>