Code

Updated gosaLastSystemLogin to gotoLastSystemLogin
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Sep 2008 09:27:01 +0000 (09:27 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Sep 2008 09:27:01 +0000 (09:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@12321 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/generic/class_user.inc
plugins/personal/generic/generic.tpl

index 12e96ec915bc8ce5e1147222b2a7c168403437ae..624ef38de48309b1343a4cdb972e972632cf1b02 100644 (file)
@@ -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"){
index 786fdcadfeb63e6e18ce34762dd1bbb400d0a208..197f7a054ee396245d784f217ee61fa5c511088c 100644 (file)
     </tr>
     {/if}
 
-       {if $gosaLastSystemLogin}
+       {if $gotoLastSystemLogin}
                <tr>
                        <td>{t}Last logon{/t}</td>
-                       <td>{$gosaLastSystemLogin}</td>
+                       <td>{$gotoLastSystemLogin}</td>
                </tr>           
        {/if}
    </table>