From: hickert Date: Mon, 1 Sep 2008 09:04:27 +0000 (+0000) Subject: Renamed gosaLastSystemLogin to gotoLastSystemLogin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=11e0877af17009aeaf8f2a46d7d5ff8c561f1ec7;p=gosa.git Renamed gosaLastSystemLogin to gotoLastSystemLogin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12319 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index 008390c28..577744197 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -37,11 +37,11 @@ class user extends plugin var $plHeadline= "Generic"; var $plDescription= "Edit organizational user settings"; - /* 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= ""; @@ -146,11 +146,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->orig_dn = $this->dn; @@ -264,7 +264,7 @@ class user extends plugin } $smarty= get_smarty(); - $smarty->assign("gosaLastSystemLogin",$this->gosaLastSystemLogin); + $smarty->assign("gotoLastSystemLogin",$this->gotoLastSystemLogin); /* Fill calendar */ if ($this->dateOfBirth == "0"){ diff --git a/gosa-core/plugins/personal/generic/generic.tpl b/gosa-core/plugins/personal/generic/generic.tpl index a1e95f071..e0b138ff2 100644 --- a/gosa-core/plugins/personal/generic/generic.tpl +++ b/gosa-core/plugins/personal/generic/generic.tpl @@ -246,10 +246,10 @@ {/if} - {if $gosaLastSystemLogin} + {if $gotoLastSystemLogin} {t}Last logon{/t} - {$gosaLastSystemLogin} + {$gotoLastSystemLogin} {/if}