From: hickert Date: Thu, 9 Nov 2006 04:48:02 +0000 (+0000) Subject: Posix account expiration date was set to 1970 for new created accounts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31bf04abb00b1c5138274fbe72c64114291cc78e;p=gosa.git Posix account expiration date was set to 1970 for new created accounts - is now set to current date Fixed w3c warnings in "mail add local" template. Fixed malformed usage of class var ($this-var) in samba class. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5048 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/mail/mail_locals.tpl b/plugins/personal/mail/mail_locals.tpl index 3af89089d..d277ceb45 100644 --- a/plugins/personal/mail/mail_locals.tpl +++ b/plugins/personal/mail/mail_locals.tpl @@ -1,40 +1,74 @@ - - - - + + + +
-
-

- {$hint}
-

-
-
-

- -

-
-
-
-

[F] - {t}Filters{/t}

-
-
- - {$alphabet} -
-
-
-
- -
{t}Display
- {$apply} -
-
+
+

+ + + {$hint} + +
+

+
+
+

+ +

+
+
+
+

+ [F] + {t}Filters{/t} +

+
+
+ + {$alphabet} +
+ + + + +
+ +   + +
+ + + + + + +
+ + + +
+ + + + + + +
+ {t}Display addresses of user{/t} + + +
+ {$apply} +
+

@@ -42,3 +76,6 @@  

+ diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc index 7ae5503f2..1cebfa35b 100644 --- a/plugins/personal/posix/class_posixAccount.inc +++ b/plugins/personal/posix/class_posixAccount.inc @@ -459,7 +459,15 @@ class posixAccount extends plugin } /* Fill calendar */ - $date= getdate($this->shadowExpire); + + /* If this $this->shadowExpire is empty + use current date as base for calculating selectbox values. + (This attribute is empty if this is a new user )*/ + if(empty($this->shadowExpire)){ + $date= getdate(time()); + }else{ + $date= getdate($this->shadowExpire); + } $days= array(); for($d= 1; $d<32; $d++){ diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc index 8a7f5ab88..c6de16a51 100644 --- a/plugins/personal/samba/class_sambaAccount.inc +++ b/plugins/personal/samba/class_sambaAccount.inc @@ -986,7 +986,7 @@ class sambaAccount extends plugin $this->handle_post_events("modify",array("uid" => $this->uid)); } } else { - $this->handle_post_events("add",array("uid" => $this>uid)); + $this->handle_post_events("add",array("uid" => $this->uid)); } }