summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c32a5ac)
raw | patch | inline | side by side (parent: c32a5ac)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 14 Sep 2009 10:00:15 +0000 (10:00 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 14 Sep 2009 10:00:15 +0000 (10:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14248 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/samba/personal/samba/class_sambaAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc
index 8cf6e687c9ea9794b7870a3ad00599b6f8e8bb13..58b94b965c6b6138b91393874b0c46657d879367 100644 (file)
}
}
$smarty->assign("additional_info_PwdMustChange",$additional_info_PwdMustChange);
+ $smarty->assign("no_expiry",$this->no_expiry);
/* Show main page */
$smarty->assign("multiple_support",$this->multiple_support_active);
"\n<tr><td>"._("Last password update").": </td><td>".$sambaPwdLastSet."</td></tr>".
"\n<tr><td>"._("Last logon").": </td><td>".$sambaLogonTime."</td></tr>".
"\n<tr><td>"._("Last logoff").": </td><td>".$sambaLogoffTime."</td></tr>".
- "\n<tr><td>"._("Automatic logoff").": </td><td>".$sambaKickoffTime."</td></tr>".
- "\n<tr><td>"._("Password expires").": </td><td>".$sambaPwdMustChange."</td></tr>".
- "\n<tr><td>"._("Password change available").": </td><td>".$sambaPwdCanChange."</td></tr>".
+ "\n<tr><td>"._("Automatic logoff").": </td><td>".$sambaKickoffTime."</td></tr>";
+
+ if($this->no_expiry){
+ $str .= "\n<tr><td>"._("Password expires").": </td><td>"._("No")."</td></tr>";
+ $str .= "\n<tr><td colspan='2'><font color='gray'>".
+ sprintf(_("The password would expire on %s, but the password expiry is disabled."),$sambaPwdMustChange).
+ "</font></td></tr>";
+ }else{
+ $str .= "\n<tr><td>"._("Password expires").": </td><td>".$sambaPwdMustChange."</td></tr>";
+ }
+
+ $str .= "\n<tr><td>"._("Password change available").": </td><td>".$sambaPwdCanChange."</td></tr>".
"\n</table>";
"\n</div>";
return($str);