18 Commits

Author SHA1 Message Date
moodler
a406cdec66 Made the user profile a little more robust.
Uploaded images are now saved even if the rest of the form
has errors.

If errors are found in the form then a message is printed up
the top to make it clearer that they need to fix something.
2002-11-20 14:52:32 +00:00
moodler
cbb0fee071 For very large classes don't even try to show all the participants 2002-11-12 03:02:51 +00:00
moodler
8dbed6be60 format_time() now supports language strings for day(s)/hour(s)/min(s)/sec(s)
String lookups are cached in user/index.php for efficiency
2002-10-03 04:04:59 +00:00
martin
c69ce08b49 Don't print pictures at all for very large lists 2002-09-21 06:39:28 +00:00
martin
32b4b9746a more refinements to sorting display 2002-09-21 06:27:00 +00:00
martin
6b281f1fec Better display of users in shortened form, for testing 2002-09-21 05:42:16 +00:00
martin
7a702c34ea Tweak 2002-09-20 15:42:16 +00:00
martin
6abee98964 First go at an abbreviated user listing 2002-09-20 15:40:20 +00:00
martin
40a1d986f9 Changes to improve display of teachers 2002-09-08 03:34:12 +00:00
martin
6621349c31 Moved valid_uploaded_file out to lib/moodlelib.php 2002-09-01 14:31:49 +00:00
martin
55e078c0fa Users can now choose to hide their email address. In this initial version
there are three options:

0) Hide the email address from everyone (except the teacher of their course)
1) Allow everyone to see the email address, all the time.
2) Allow only participants in the same course to see the email address

Note, new field maildisplay in 'user'
2002-08-21 13:29:25 +00:00
martin
726020a2ef Tweak to display on "unenrol" 2002-08-10 15:10:04 +00:00
martin
b0ccbd923b Further little fixes to user image displaying 2002-08-09 09:25:17 +00:00
martin
8223d27193 Widespread changes throughout Moodle to make sure it works on
servers that have register_globals turned off (this is the
default setting on newer version of PHP).

In fact it's partly a hack that globalises all GET, POST, FILES
AND COOKIE variables.  Unfortunately though the SESSION and
USER global session variables are only available as $_SESSION["USER"]
and $_SESSION["SESSION"], which is cumbersome to use.

So, for every request I now make a copy of these two session variables
into $USER and $SESSION.  Whenever I update them thoughout Moodle I
now have to call save_session("USER") which copies them back to the
session variable.  This seems to be working well now.

Because I'm using $_SESSION etc now this will raise
the required minimum version of PHP to 4.1.0
2002-08-06 17:23:45 +00:00
martin
cd052f8ccc Performance enhancement for user listing (caching of language strings) 2002-08-06 09:21:14 +00:00
martin
22f4320bdb Changes to support GD 1 and GD 2. Well, to be more accurate, we now
rely on the administrator to tell us which is installed because PHP
is not reliable  (eg GD 2.* functions are available in 4.0.6 and later
EVEN WHEN gd 2 is not present ... sigh).


So, new config variable  $CFG->gdversion
2002-06-13 11:18:52 +00:00
martin
873960de8c Changes related to timezone display. Datetime display now uses userdate()
which itself uses the USER variable timezone to alter the displayed time.
2002-06-05 03:15:30 +00:00
martin
f9903ed0a4 Initial revision 2001-11-22 06:23:56 +00:00