summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c4f3485)
raw | patch | inline | side by side (parent: c4f3485)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 18 Aug 2008 11:47:56 +0000 (11:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 18 Aug 2008 11:47:56 +0000 (11:47 +0000) |
-Added attribute to user class and template.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12237 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12237 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/generic/class_user.inc | patch | blob | history | |
plugins/personal/generic/generic.tpl | patch | blob | history |
index 8993f4e40dcf4dc2cb416a42dd02878492be7859..12e96ec915bc8ce5e1147222b2a7c168403437ae 100644 (file)
var $plHeadline= "Generic";
var $plDescription= "This does something";
+ /* The attribute gosaLastSystemLogin 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 = "";
+
/* Plugin specific values */
var $base= "";
var $orig_base= "";
/* Load base attributes */
plugin::plugin ($config, $dn);
+ /* If gosaLastSystemLogin 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]);
+ }
+
$this->new_dn = $dn;
if ($this->config->current['GOVERNMENTMODE']){
plugin::execute();
$smarty= get_smarty();
+ $smarty->assign("gosaLastSystemLogin",$this->gosaLastSystemLogin);
/* Fill calendar */
if ($this->dateOfBirth == "0"){
index f14794f167d220035c8c9b4504f846f5d09f9112..786fdcadfeb63e6e18ce34762dd1bbb400d0a208 100644 (file)
</tr>
{/if}
+ {if $gosaLastSystemLogin}
+ <tr>
+ <td>{t}Last logon{/t}</td>
+ <td>{$gosaLastSystemLogin}</td>
+ </tr>
+ {/if}
</table>
</td>
</tr>