From: hickert Date: Mon, 1 Sep 2008 09:27:01 +0000 (+0000) Subject: Updated gosaLastSystemLogin to gotoLastSystemLogin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ff88fc805eb2455b20fb6d2f9fef799f1b0787fd;p=gosa.git Updated gosaLastSystemLogin to gotoLastSystemLogin git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12321 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index 12e96ec91..624ef38de 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -16,11 +16,11 @@ class user extends plugin var $plHeadline= "Generic"; var $plDescription= "This does something"; - /* The attribute gosaLastSystemLogin represents the timestamp of the last + /* The attribute gotoLastSystemLogin represents the timestamp of the last successfull login on the users workstation. Read the FAQ to get a hint about how to configure this. */ - var $gosaLastSystemLogin = ""; + var $gotoLastSystemLogin = ""; /* Plugin specific values */ var $base= ""; @@ -117,11 +117,11 @@ class user extends plugin /* Load base attributes */ plugin::plugin ($config, $dn); - /* If gosaLastSystemLogin is available read it from ldap and create a readable + /* If gotoLastSystemLogin is available read it from ldap and create a readable date time string. */ - if(isset($this->attrs['gosaLastSystemLogin'][0]) && preg_match("/^[0-9]*$/",$this->attrs['gosaLastSystemLogin'][0])){ - $this->gosaLastSystemLogin = date("d.m.Y H:i:s", $this->attrs['gosaLastSystemLogin'][0]); + if(isset($this->attrs['gotoLastSystemLogin'][0]) && preg_match("/^[0-9]*$/",$this->attrs['gotoLastSystemLogin'][0])){ + $this->gotoLastSystemLogin = date("d.m.Y H:i:s", $this->attrs['gotoLastSystemLogin'][0]); } $this->new_dn = $dn; @@ -226,7 +226,7 @@ class user extends plugin plugin::execute(); $smarty= get_smarty(); - $smarty->assign("gosaLastSystemLogin",$this->gosaLastSystemLogin); + $smarty->assign("gotoLastSystemLogin",$this->gotoLastSystemLogin); /* Fill calendar */ if ($this->dateOfBirth == "0"){ diff --git a/plugins/personal/generic/generic.tpl b/plugins/personal/generic/generic.tpl index 786fdcadf..197f7a054 100644 --- a/plugins/personal/generic/generic.tpl +++ b/plugins/personal/generic/generic.tpl @@ -186,10 +186,10 @@ {/if} - {if $gosaLastSystemLogin} + {if $gotoLastSystemLogin} {t}Last logon{/t} - {$gosaLastSystemLogin} + {$gotoLastSystemLogin} {/if}