### Eclipse Workspace Patch 1.0
#P 19stable
Index: admin/settings/users.php
===================================================================
RCS file: /cvsroot/moodle/moodle/admin/settings/users.php,v
retrieving revision 1.26.2.13
diff -u -r1.26.2.13 users.php
--- admin/settings/users.php	12 Feb 2009 02:29:35 -0000	1.26.2.13
+++ admin/settings/users.php	26 Feb 2009 08:03:41 -0000
@@ -164,6 +164,7 @@
                              'yahooid' => get_string('yahooid'),
                              'aimid' => get_string('aimid'),
                              'msnid' => get_string('msnid'),
+                             'firstaccess' => get_string('firstaccess'),
                              'lastaccess' => get_string('lastaccess'),
                              'mycourses' => get_string('mycourses'))));
     }
Index: lang/en_utf8/moodle.php
===================================================================
RCS file: /cvsroot/moodle/moodle/lang/en_utf8/moodle.php,v
retrieving revision 1.141.2.58
diff -u -r1.141.2.58 moodle.php
--- lang/en_utf8/moodle.php	26 Feb 2009 02:31:42 -0000	1.141.2.58
+++ lang/en_utf8/moodle.php	26 Feb 2009 08:03:42 -0000
@@ -653,6 +653,7 @@
 $string['filesfolders'] = 'Files/folders';
 $string['filloutallfields'] = 'Please fill out all fields in this form';
 $string['findmorecourses'] = 'Find more courses...';
+$string['firstaccess'] = 'First access';
 $string['firstdayofweek'] = '0';
 $string['firstname'] = 'First name';
 $string['firsttime'] = 'Is this your first time here?';
Index: user/view.php
===================================================================
RCS file: /cvsroot/moodle/moodle/user/view.php,v
retrieving revision 1.168.2.24
diff -u -r1.168.2.24 view.php
--- user/view.php	1 Dec 2008 22:06:55 -0000	1.168.2.24
+++ user/view.php	26 Feb 2009 08:03:42 -0000
@@ -361,7 +361,14 @@
             print_row(get_string('courses').':', rtrim($courselisting,', '));
         }
     }
-
+    if (!isset($hiddenfields['firstaccess'])) {
+        if ($user->firstaccess) {
+            $datestring = userdate($user->firstaccess)."&nbsp; (".format_time(time() - $user->firstaccess).")";
+        } else {
+            $datestring = get_string("never");
+        }
+        print_row(get_string("firstaccess").":", $datestring);
+    }
     if (!isset($hiddenfields['lastaccess'])) {
         if ($user->lastaccess) {
             $datestring = userdate($user->lastaccess)."&nbsp; (".format_time(time() - $user->lastaccess).")";
