250 Commits

Author SHA1 Message Date
moodler
e858f9da96 create_new_user() can now import other fields from an external source
if the function for it has been defined.  (Petri's code with additions by me)
2002-10-05 16:49:42 +00:00
moodler
7d95ed97c7 User's name in footer is now a link 2002-10-03 11:11:53 +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
moodler
4bfa92e714 Added new header to all pages to set the current charset, to help browsers 2002-10-02 10:33:05 +00:00
martin
91ac0405fa A little extra error checking. 2002-09-27 04:53:27 +00:00
martin
3ef909ca58 Removed encoding setting because i suspect it may be messing with SMTP mail 2002-09-27 01:35:25 +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
ab998e5d07 Check for USER->email in require_login. With external authentication
schemes it's possible that the email field could be empty, so this
will force users to update it (and the rest of their profile) any
time they log into a course.
2002-09-26 03:51:31 +00:00
martin
a28af1fe74 New set_config() and better use of $CFG->version 2002-09-23 15:40:16 +00:00
martin
1e22462d01 Fixed up default-sized tables again 2002-09-23 07:02:26 +00:00
martin
45aa6d563c Fixes to unenrolling students, and unenrol_student() and remove_teacher()
now remove forum_subscriptions correctly
2002-09-22 14:33:21 +00:00
martin
274f62e6d5 Fixes to table widths 2002-09-22 14:11:45 +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
01a086c3dd Support for new deleted field in user table 2002-09-22 03:11:05 +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
562bbe9074 Make mail format explicitly 8bit 2002-09-21 08:39:54 +00:00
martin
dccd16712a Slight additions to print_table 2002-09-21 05:43:46 +00:00
martin
74944b734d Most of the configuration variables have been moved out of the config.php
file and into a database, where they can be edited using a new admin form
called "Configure variables".
2002-09-19 12:01:55 +00:00
martin
a7b9e8bc9f Fixes to point directly to index.php wherever it was assumed. This wasn't
a problem on most servers, but was causing some problems on IIS servers
2002-09-15 06:06:32 +00:00
martin
1a72314d0f Can now specify current language on a per-user basis 2002-09-14 03:43:24 +00:00
martin
5b54db6ee4 Improved print_table() a bit (can now specify column widths) 2002-09-08 05:15:37 +00:00
martin
b4d7002e66 Changes to allow much better control over what "teachers" are called
in a course.  Firstly, the course settings page now allows the teachers
to specify the word they want to use in place of "teachers" and "students"
as well as "teacher" and "student".  Secondly, a new teacher admin tool
allows any teacher to modify the order and displayed role of teachers
in that course.  This affects the display on the course listings, the
participants page and so on.
2002-09-08 03:24:38 +00:00
martin
774ab66002 Improvements to the language checker. As well as checking for missing
strings, you can now see the current language compared side-by-side
with English.
2002-09-07 14:57:33 +00:00
martin
c646b70d66 Added a new $release variable that shows the user-friendly version number 2002-09-06 14:06:48 +00:00
martin
a3cbb7539d Using different logo file to avoid caching problems on changeover 2002-09-04 09:39:03 +00:00
martin
1903dd11d8 Tweaked the new icon 2002-09-04 06:32:50 +00:00
martin
5e391d346d New logo that should work on more themes 2002-09-03 16:58:49 +00:00
martin
31410e9a16 Added a new administration page that can check the current language
pack against the English language pack.  It prints any missing strings
or files.  This should help language pack developers.
2002-09-03 14:29:39 +00:00
martin
44e2d2bb42 Functions moved here from files/index.php (related to file handling) 2002-09-01 14:29:17 +00:00
martin
f06c1d62dc Added slash after login link ... some servers have problems without it 2002-08-28 15:28:30 +00:00
martin
c21c671d74 Security fix for:
Internet Explorer bug that allows sends cookies to different sites if
  they have the same ending.  eg moodle.com cookie is sent to smec.moodle.com!!

  Also fixes case where multiple moodle installations may be in different
  directories on the same server.  When you go from one to the other the
  first session will be destroyed now (you can't be logged in the two
  at the same time).  It's just a lot safer this way, for now.

Basically this works by storing the wwwroot variable in the session
and checking it for every page.
2002-08-28 15:07:46 +00:00
martin
ca4f8eb868 Moved uploaded assignment files into a subdirectory called moddata,
where data from other modules can also live later on.

Also added a README for that directory to warn teachers not to mess
with it, version code to perform the upgrade, tweaks to assignment/lib.php
and a tweak to reading module so that assignment files aren't listed
in the list of possible readings (could get messy).
2002-08-28 13:07:10 +00:00
martin
3f8247c2ea Changes to use a new configuration variable: CFG->slasharguments
If true, then display of user pictures or filenames will use the
method of providing arguments as "slash" arguments - this is much
better for caching, proxies, search engines etc.  Unfortunately
it doesn't seem to work on some PHP installations.

If false (the default), then a more compatible method is used
(ie usual way of passing parameters to scripts)
2002-08-26 09:48:00 +00:00
martin
19a55d6776 Changes to improve layout and formatting on old Netscape (eg version 4) 2002-08-23 03:55:49 +00:00
martin
b0cb5e2297 Check that PHP is a recent enough version (ie 4.1.0 or later) 2002-08-23 02:14:19 +00:00
martin
28b1e3ecec Just some comments about not removing the Moodle logo from the front page. 2002-08-21 14:08:40 +00:00
martin
ab24749566 Fixed dates when no-one is logged in (uses server time now, not GMT) 2002-08-21 13:55:49 +00:00
martin
7363ff911f Fixed up guest access PROPERLY - it's now more obvious and simple for teachers
to set it how they want.  Guest access now has THREE states (off, on, on with key).
2002-08-21 12:54:27 +00:00
martin
1e3e716f1d Changes related to new way of setting and recalling themes.
The CFG->theme variable is now obsolete in config.php - use the
admin page to set themes interactively.
2002-08-17 13:01:06 +00:00
martin
4efeb8c3e3 Changes to add login/logout button to the right-hand top corner of every page
... this is to help encourage people to log out after a session, especially
on shared or public terminals.
2002-08-17 07:02:35 +00:00
martin
d82c85456b Cleanups for footer on home page 2002-08-15 04:37:35 +00:00
martin
909f539dad Minor tweaking and cleaning up 2002-08-12 13:45:41 +00:00
martin
ae350059b3 Language changes for main library 2002-08-12 07:37:47 +00:00
martin
6ee4579665 Moved the help files into their own directory in lang/en/help 2002-08-11 14:12:15 +00:00
martin
3ce2f1e08a Moved code from footer.html into print_footer()
Don't update user on login check if it isn't a real user.
2002-08-11 05:07:15 +00:00
martin
2c0411e2ed Tweaks and tidy-ups for course home pages (weekly and topics) 2002-08-10 13:42:12 +00:00
martin
b0ccbd923b Further little fixes to user image displaying 2002-08-09 09:25:17 +00:00
martin
2447921f18 Changes to make uploaded user pictures work properly on Windows :-( 2002-08-09 09:09:36 +00:00
martin
53bfe78cd4 New functions get_list_of_modules() and moodle_needs_upgrading().
Used on the home page when admin is logged in, to check for any
upgrading of the databases that might need to be done.
2002-08-09 02:45:15 +00:00
martin
4606d9bb9f Fixed a tricky little bug with usergetmidnight() when no timezone was defined. 2002-08-08 17:28:30 +00:00