Commit graph

94 commits

Author SHA1 Message Date
moodler
d2b6ba704e Another big checkin.
This includes some significant cleanups to the new course categories
system.  The basic idea is that the categories/course browser is now
unified under one system, and admin features related to that have
all been moved into the browser (as little icons).

I'm much happier with this as a foundation that can scale and be
built upon.

Still to go:

  - searching
  - paging
  - polishing

Also in here are a lot of little cleanups around the place, such as
the initial setup process.
2003-08-07 16:01:31 +00:00
moodler
dd85cc8189 Fixed missing slashes 2003-07-30 05:21:24 +00:00
moodler
1f33691c86 Cleaned up the initial setup process. It looks a bit smoother now.
Hopefully this is also the end of the occasional errors we keep
hearing about to do with never getting to setup the admin user.
(I think admin/site.php had a redirect that didn't always work).

The setup process is now much better at "trapping" you until it's all done.
2003-05-06 15:58:20 +00:00
moodler
f0eec3b641 Whoops ... left and old line in there during the last fix 2003-04-28 02:43:18 +00:00
moodler
dc2590e587 Don't process $usernew->username if it doesn't exist (prevents normal users from editing profile). 2003-04-27 14:50:03 +00:00
paca70
1e22bc9c04 Conver usernames to lowercase for internal use. This prevent duplicate users
when using external authentication and posgresql.
2003-04-24 20:06:40 +00:00
moodler
de38e2621d More robust use of $_FILES['imagefile'] 2003-04-15 02:08:27 +00:00
moodler
ffb410df03 Sorry, Petri, but we need to undo these changes, because:
- they could break accounts in existing installations
  - strtolower can corrupt strings in multibyte languages

Is it really a problem that usernames are case sensitive on PostgreSQL?
2003-04-01 02:14:16 +00:00
paca70
b398d5ee2a Use always only lowercase version of username.
When using authentication module (ldap, smb, pop etc...) and postgres-database multiple moodle
users were created for usernames like 'Username' 'username' 'userName'
2003-03-31 17:05:52 +00:00
moodler
78e72ed16b Didn't quite finish the last patch of user -> usernew 2003-03-15 09:15:44 +00:00
moodler
e6829515b0 Bug fix from Ray Le Couteur ... alphanumeric check was checking old
username but not the new username
2003-03-15 08:26:00 +00:00
moodler
55271c3047 Removed save_session() - no longer needed 2003-02-27 02:43:34 +00:00
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
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
86d6449306 Allow "." and "-" in usernames. 2002-12-30 15:38:10 +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
a8b7b66158 Use language string for "changes saved" 2002-12-08 17:21: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
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
4d0dde9159 Some consistency in headers on editing forms 2002-09-19 13:55:40 +00:00
martin
09ba0c8a32 Fixed bug in password checking for new admin user ... 2002-09-05 17:31:08 +00:00
martin
e98e09150e New error when the admin user is (still) set to the default "admin". 2002-09-05 02:17:33 +00:00
martin
ef9955b081 Better handling of user-entered URLs (add http:// if missing) 2002-09-04 05:07:17 +00:00
martin
088a2b71fb Documentation on file sizes 2002-09-01 14:31:14 +00:00
martin
7cbb4c96db Tidied up headers of user/edit.php 2002-08-14 01:51:58 +00:00
martin
0087d8a6d7 Tweaks to the headers 2002-08-08 16:02:39 +00:00
martin
2b25f2a09b Further excellent tidy-ups to the admin pages. They are actually starting
to look/work as slick as the rest of the site.  :-)
2002-08-08 15:51:23 +00:00
martin
a3447e1053 Cleanup of the admin interface - especially the user management
Bugs fixed, duplicate code removed, plus you can now add new users.

Aaah much better.  :-)
2002-08-08 14:17:55 +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
9c055aa5d2 Can now edit own firstname and lastname, and some tidying 2002-08-06 09:36:42 +00:00
martin
8553b7005a Changes related to internationalision strings and printing them 2002-07-11 05:30:57 +00:00
martin
fa0626c6f4 Language-related fixes 2002-07-04 07:52:06 +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
603d4c7226 Better handling of guest user 2002-06-10 04:33:46 +00:00
martin
253ae7db0d Typo on add_to_log URL 2002-06-05 06:10:45 +00:00
martin
bda8d43a78 Changes to user settings, now it matches the stored data better 2002-06-05 05:37:55 +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
da3a08d7ee Updated to use new logging format. 2002-05-31 09:15:36 +00:00
martin
54bdcdbecc Checks for bad permissions and defaults to default picture 2002-05-18 03:13:44 +00:00
martin
f9903ed0a4 Initial revision 2001-11-22 06:23:56 +00:00