summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6b9392f)
raw | patch | inline | side by side (parent: 6b9392f)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 13 Dec 2007 11:07:06 +0000 (11:07 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 13 Dec 2007 11:07:06 +0000 (11:07 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8119 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/personal/posix/class_posixAccount.inc | patch | blob | history |
diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc
index bbcebfdcd94a7e38c8da64d05280199cbab694e9..77ddc33faabd49cce06bf2d831baf9208d5364ec 100644 (file)
if(in_array("mustchangepassword",$this->multi_boxes)){
$ret['mustchangepassword'] = $this->mustchangepassword;
}
- print_a($this->multi_boxes);
- print_a($ret);
return($ret);
}
function multiple_save_object()
{
if(isset($_POST['posix_mulitple_edit'])){
+
+ $expire_tmp = $this->shadowExpire;
+
plugin::multiple_save_object();
foreach(array("primaryGroup","trustmode","mustchangepassword","activate_shadowWarning","activate_shadowInactive","activate_shadowMin", "activate_shadowMax","activate_shadowExpire") as $val){
if(isset($_POST["use_".$val])){
foreach(array("shadowMin","shadowMax","shadowExpire","shadowInactive","shadowWarning") as $var) {
if($this->acl_is_writeable($var)){
$activate_var = "activate_".$var;
- if(isset($_POST['activate_'.$var])){
- $this->$activate_var = true;
- $this->$var = $_POST[$var];
- }else{
- $this->$activate_var = false;
- $this->$var = 0;
+ if(in_array($activate_var, $this->multi_boxes)){
+ if(isset($_POST['activate_'.$var])){
+ $this->$activate_var = true;
+ $this->$var = $_POST[$var];
+ }else{
+ $this->$activate_var = false;
+ $this->$var = 0;
+ }
}
}
}
+ if(!in_array("activate_shadowExpire",$this->multi_boxes)){
+ $this->shadowExpire = $expire_tmp;
+ }
+
/* Force change password ? */
if(isset($_POST['mustchangepassword'])){
$this->mustchangepassword = TRUE;
$this->accessTo[$tmp]= $tmp;
}
}
+
+ /* Adjust shadow checkboxes */
+ foreach (array("shadowMin", "shadowMax", "shadowWarning", "shadowInactive",
+ "shadowExpire") as $val){
+
+ if ($this->$val != 0){
+ $oval= "activate_".$val;
+ $this->$oval= "1";
+ }
+ }
+
+ /* Convert to seconds */
+ $this->shadowExpire= $this->convertToSeconds($this->shadowExpire);
}