From ff88fc805eb2455b20fb6d2f9fef799f1b0787fd Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 1 Sep 2008 09:27:01 +0000 Subject: [PATCH] Updated gosaLastSystemLogin to gotoLastSystemLogin git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12321 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/generic/class_user.inc | 12 ++++++------ plugins/personal/generic/generic.tpl | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) 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} -- 2.30.2