summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ccd631a)
raw | patch | inline | side by side (parent: ccd631a)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 Oct 2006 06:27:29 +0000 (06:27 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 Oct 2006 06:27:29 +0000 (06:27 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4902 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/posix/class_posixAccount.inc | patch | blob | history |
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index b7b03c299a65a772f7f2c3392e98517d3a2b433e..ef67b86cd623c59d84bf189fa3163d75032888b9 100644 (file)
}
/* Convert to seconds */
- if ($this->shadowExpire != 0){
- $this->shadowExpire*= 60 * 60 * 24;
- } else {
- $date= getdate();
- $this->shadowExpire= floor($date[0] / (60*60*24)) * 60 * 60 * 24;
- }
+ $this->shadowExpire= $this->convertToSeconds($this->shadowExpire);
/* Generate shell list from /etc/gosa/shells */
if (file_exists('/etc/gosa/shells')){
$this->$oval= "1";
}
}
+
+ $this->shadowExpire= $this->convertToSeconds($this->shadowExpire);
+ }
+
+
+ function convertToSeconds($val)
+ {
+ if ($val != 0){
+ $val*= 60 * 60 * 24;
+ } else {
+ $date= getdate();
+ $val= floor($date[0] / (60*60*24)) * 60 * 60 * 24;
+ }
}
+
function get_next_id($attrib)
{
$ids= array();