107 Commits

Author SHA1 Message Date
moodler
2c104c0152 Fixed redirection when user not completed yet in some instances when
using external authentication
2003-01-14 14:54:45 +00:00
moodler
6ed3da1da4 Cleaned up file argument processing a bit 2003-01-12 06:53:25 +00:00
moodler
ce78926df0 Small robustness fixes 2003-01-06 13:55:37 +00:00
moodler
b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +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
36b4f9852e buggy_referer is dead! Long live buggy_referer!
Should be fixed now.  As a bonus, I've removed all the uses of
HTTP_POST_VARS from all scripts.

All forms should use the new data_submitted() function to collect
form data (it does the match_referer thing internally now).

Much nicer.
2003-01-02 14:49:23 +00:00
moodler
61e96406df Robustness fixes 2003-01-02 10:35:11 +00:00
moodler
7f7f2cca29 Robustness 2003-01-01 07:18:43 +00:00
moodler
86d6449306 Allow "." and "-" in usernames. 2002-12-30 15:38:10 +00:00
moodler
47f1da80d0 More little fixups for robustness 2002-12-30 05:13:43 +00:00
moodler
9c9f7d7790 Various little fixes to remove warnings (usually about empty variables)
when error_reporting is turned up to 15 or so ... more of these to come ...
2002-12-29 17:32:32 +00:00
moodler
ebc3bd2b24 Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00
moodler
778c28671a Added new configuration setting "country" to set a default country
for the site.  If this is set then user menus are pre-selected.
eg when signing up or filling out profile after external authentication.
2002-12-14 08:18:18 +00:00
moodler
a8b7b66158 Use language string for "changes saved" 2002-12-08 17:21:10 +00:00
moodler
3086f3f6cf With external authentication, the change password button on the user
page now does the same thing as the one on the login page.  It takes you
to the specified URL is it exists, and just doesn't appear if there is no URL
2002-11-28 12:31:46 +00:00
moodler
9ae472a374 New message about users being automatically unenrolled 2002-11-22 17:28:55 +00:00
moodler
bcd6e7184f Hide password and unenrolment buttons from guest users 2002-11-22 09:59:31 +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
780db23080 Slight improvements to file security (scan for more bad characters) 2002-11-21 02:51:50 +00:00
moodler
15e4b2ecd9 User pictures no longer are links on main view page 2002-11-20 14:58:24 +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
0431bd7c73 Extend the range of allowable timezones up to 13 hours ... (NZ Daylight savings) 2002-11-15 02:46:48 +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
369622db97 Default language for users is now the same as the site language. 2002-10-18 08:46:12 +00:00
moodler
e1ac42728d Added a 'change password' button 2002-10-17 12:25:25 +00:00
moodler
df2898fe3b Don't show htmleditor preference if it's disabled by admin 2002-10-16 04:52:57 +00:00
moodler
da061bb457 Added option to choose HTML editor 2002-10-10 07:29:09 +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
dfb6e4ac3e Tweaks to page titles to make them more consistent 2002-09-27 14:26:02 +00:00
martin
faebaf0f40 First implementation of new authentication system, which can now use
pluggable modules in the 'auth' directory.

Everything is done through authentication_user_login in lib/moodlelib.php

As well as the old default "email" confirmation, I added a new type of
confirmation "none", which basically does no confirmation at all.
2002-09-26 07:03:22 +00:00
martin
49f5bb0527 Fix for ICQ display (they've changed their URLs) 2002-09-24 12:45:06 +00:00
martin
affb83a226 Saner format for editing profile 2002-09-22 16:24:38 +00:00
martin
1fdaab8d76 Bolder title 2002-09-22 16:19:45 +00:00
martin
a58977a2a0 Forgot country display change 2002-09-22 16:17:11 +00:00
martin
adcb3ac53d Better country sorting on user index in a course 2002-09-22 16:16:13 +00:00
martin
274f62e6d5 Fixes to table widths 2002-09-22 14:11:45 +00:00
martin
b4ead712f2 Arrghh ... foget to remove the debugging thing 2002-09-22 14:07:15 +00:00
martin
d578afc883 Major cleanup of user administration and display, including sortable listings,
confirmation on deletions, removing deleted user from all student lists,
teacher lists and subscription lists and freeing up their username and
email to be used again.
2002-09-22 14:06:38 +00:00
martin
bb09fb1157 Changes to enable DELETION of user accounts. Accounts aren't actually
deleted, they are just marked with a deleteion flag that prevents them
from logging in, or from being listed anywhere.
2002-09-22 03:01:17 +00:00
martin
c69ce08b49 Don't print pictures at all for very large lists 2002-09-21 06:39:28 +00:00
martin
25fa226dac Make more room in list 2002-09-21 06:30:32 +00:00
martin
32b4b9746a more refinements to sorting display 2002-09-21 06:27:00 +00:00
martin
3f63219688 Fixed typo from testing 2002-09-21 06:13:42 +00:00
martin
e6b9ee042d Much better look for user index 2002-09-21 06:12:54 +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
4d0dde9159 Some consistency in headers on editing forms 2002-09-19 13:55:40 +00:00
martin
1a72314d0f Can now specify current language on a per-user basis 2002-09-14 03:43:24 +00:00