27 Commits

Author SHA1 Message Date
moodler
5833a6c8eb The list of countries has finally been moved into the language packs
so it can be translated.

There is now a new function get_list_of_countries() which will return a
sorted array of countries in the best current language.

get_string("AU", "countries")   will also work if needed
2003-09-26 08:04:48 +00:00
moodler
dc0dc7d5dd Tidying up the way pix images are used.
It's now also possible to override the standard pix with a set of new ones
in a theme.
2003-04-28 04:32:55 +00:00
moodler
17654e3845 Use $CFG->directorypermissions for new directories 2003-01-20 14:04:33 +00:00
moodler
5a99c0de4d Fixes to make it work on safe mode servers, but also better control of
directory/file permissions.
2003-01-20 13:40:02 +00:00
moodler
6ed3da1da4 Cleaned up file argument processing a bit 2003-01-12 06:53:25 +00:00
moodler
607809b3ba OK a number of small changes here.
Firstly, I'm replacing all use of old-style global variables like
$HTTY_REFERER with their new-style equivalent $_SERVER["HTTP_REFERER"]
Also using $_POST instead $HTTP_POST_VARS  etc

Secondly, if gdversion == 0 (ie GD is not installed) then:

 - users are not even allowed to upload new images
 - graphs now just print a message instead of failing.

this allows Moodle to still be used even if GD is not present
2003-01-05 06:45:20 +00:00
moodler
7f7f2cca29 Robustness 2003-01-01 07:18:43 +00:00
moodler
f10ed36d8d Error checking on image writes 2002-11-21 10:23:10 +00:00
moodler
b913b369e8 Small bugfix with uploading new user images 2002-11-21 10:17:08 +00:00
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