summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2624ef4)
raw | patch | inline | side by side (parent: 2624ef4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Dec 2007 13:32:23 +0000 (13:32 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 7 Dec 2007 13:32:23 +0000 (13:32 +0000) |
- We are now able to change the password and user image for multiple user
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8059 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8059 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_multi_plug.inc | patch | blob | history | |
plugins/personal/generic/class_user.inc | patch | blob | history | |
plugins/personal/generic/generic.tpl | patch | blob | history |
index 066d830286b211f9c45dd72af60d69d56e7d3b22..e1bd7ce8ff698f2fe27a421564064bbc4fcf83b7 100644 (file)
foreach($values as $a_name => $a_value){
foreach($this->a_handles as $i_id => $o_handle){
$this->a_handles[$i_id]->by_object[$name]->$a_name = $a_value;
- echo $name."->".$a_name." = ".$a_value."<br>";
}
}
}
index 30178739f141ba72d599f6d102034e154e68cae9..d25bf8101d8eca6491a56d7d38a1e62790d5a2a0 100644 (file)
/* Assign sex */
$sex= array(0 => " ", "F" => _("female"), "M" => _("male"));
$smarty->assign("gender_list", $sex);
-
- $language= array_merge(array(0 => " ") ,get_languages(TRUE));
+
+ if($this->multiple_support_active){
+ $language= array_merge(array(0 => " ","{default}"=>"{default}") ,get_languages(TRUE));
+ }else{
+ $language= array_merge(array(0 => " ") ,get_languages(TRUE));
+ }
$smarty->assign("preferredLanguage_list", $language);
/* Get random number for pictures */
$temp= passwordMethod::get_available_methods();
$is_configurable= FALSE;
$hashes = $temp['name'];
- $hashes["{default}"] = "{default}";
+ if($this->multiple_support_active){
+ $hashes["{default}"] = "{default}";
+ }
if(isset($temp[$this->pw_storage])){
$test= new $temp[$this->pw_storage]($this->config);
$is_configurable= $test->is_configurable();
- }else{
+ }elseif($this->pw_storage != "{default}"){
new msg_dialog(_("Password method"),_("The selected password method is no longer available."),WARNING_DIALOG);
}
if (!function_exists("imagick_blob2image")){
/* Get temporary file name for conversation */
$fname = tempnam ("/tmp", "GOsa");
-
+
/* Open file and write out photoData */
$fp = fopen ($fname, "w");
fwrite ($fp, $this->photoData);
$query= "convert -size 147x200 $fname -resize 147x200 +profile \"*\" -";
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$query, "Execute");
-
+
/* Read data written by convert */
$output= "";
$sh= popen($query, 'r');
if($this->pw_storage != "{default}"){
$ret['pw_storage'] = $this->pw_storage;
}
+ if($this->jpegPhoto != "{default}"){
+ $ret['jpegPhoto'] = $this->jpegPhoto;
+ $ret['photoData'] = $this->photoData;
+ $ret['old_jpegPhoto'] = $this->old_jpegPhoto;
+ $ret['old_photoData'] = $this->old_photoData;
+ }
+ $ret['is_modified'] = $this->is_modified;
return($ret);
}
index d5e1fcbedd3e4abcfdd1b434923150b441ab247b..be60d8921813b4a427f24d59c8e4b9d07f7c46a9 100644 (file)
{/render}
</td>
</tr>
+{if !$multiple_support}
<tr>
<td>
<div style="height:10px;"></div>
{/render}
</td>
</tr>
+{/if}
+{if !$multiple_support}
<tr>
<td>
<label for="gender">{t}Sex{/t}</label>
{/render}
</td>
</tr>
+{/if}
<tr>
<td>
<label for="preferredLanguage">{t}Preferred langage{/t}</label>