64 Commits

Author SHA1 Message Date
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
martin
40a1d986f9 Changes to improve display of teachers 2002-09-08 03:34:12 +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
d21fef3a02 Don't try and print the last access date if it doesn't exist 2002-09-06 15:10:36 +00:00
martin
09ba0c8a32 Fixed bug in password checking for new admin user ... 2002-09-05 17:31:08 +00:00
martin
55b8ac3107 Better error message when invalid arguments are supplied. 2002-09-05 11:56:20 +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
5be2f47cf4 Added Content-disposition header to help some browsers suggest the right
filename when saving pictures and files.
2002-09-02 09:06:43 +00:00
martin
6621349c31 Moved valid_uploaded_file out to lib/moodlelib.php 2002-09-01 14:31:49 +00:00
martin
088a2b71fb Documentation on file sizes 2002-09-01 14:31:14 +00:00
martin
f144c3054a DOn't print teachers with no authority 2002-09-01 14:30:39 +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
0bfa3ba286 No point in being able to login as yourself 2002-08-15 05:43:38 +00:00
martin
7cbb4c96db Tidied up headers of user/edit.php 2002-08-14 01:51:58 +00:00
martin
9235667890 Fixes to visibility of unenrol button 2002-08-10 15:16:00 +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
2447921f18 Changes to make uploaded user pictures work properly on Windows :-( 2002-08-09 09:09:36 +00:00
martin
243c518b98 Better control of buttons for admin and in site view 2002-08-08 17:30:50 +00:00
martin
a2ab3b0511 More tidy ups in displays 2002-08-08 16:22:44 +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
cd052f8ccc Performance enhancement for user listing (caching of language strings) 2002-08-06 09:21:14 +00:00
martin
ae642af6c5 Slight rearrangement 2002-08-01 06:15:43 +00:00
martin
11b0c46971 A big clean up of all the forum functions (including renaming them all
to start with forum_ ) and all the follow-on effects that caused
Some miscellaneous bug fixes and code clean-ups along the way
2002-08-01 03:50:27 +00:00
martin
501cdbd8bb OK, some massive changes with many files removed or changed.
Basically the changes are:

 - I've merged the 'discuss' module into the forum module
   which makes the interface MUCH clearer for everyone
 - I've added a new 'single' forum type that replicates
   what the old discuss course modules used to look like.
 - I've got rid of the "discussion" forum type - it will
   still exist in upgraded courses but as a normal forum.
 - the 'discuss' module is completely deleted - gone.
 - the 'chat' module is completely deleted - gone.
 - The upgrading system has been improved, and all code
   is stored in version.php.
 - I've put in upgrading commands to do the best I can
   (right now) to upgrade courses that used the discuss
   module.  It should mostly work, just leaving some
   "orphan" coursemodules on you course front page.  You
   can easily delete these using the little 'x'.
   I may have forgotten something  - I've only tested on
   my testing server and I'm about to test on my production
   server to see how it goes.
 - Forums have a lot of little new features and fixes.  The
   main one is the subscription process.  Teachers can 'force'
   subscriptions on any forum.  This disallows everyone from
   choosing their own mail subscription - it's just on.
 - The assignment module is half-finished and not working yet

I've still some massive changes to do, mostly involving making
all the lib.php function names more standardised, so consider
this is an interim checkin to do some tests.
2002-07-31 14:19:35 +00:00
martin
4b232245df Changed to use the new functions for lists of students, teachers etc 2002-07-29 06:53:09 +00:00
martin
803b2c7606 Altered buttons from index and view pages 2002-07-27 10:23:45 +00:00
martin
bbfe835ba3 Improvements to activity reports 2002-07-23 16:48:47 +00:00
martin
65cf9fc390 Improvements to the help system 2002-07-21 08:34:25 +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
51feb9d56c Changes to display user discussions 2002-06-25 16:42:00 +00:00
martin
7dc1ea300a Modifications to unenrol. Now a teacher can unenrol students from the course. 2002-06-19 15:42:49 +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
edf7fe8c19 New usergetmidnight function and use in finding today's logs 2002-06-10 14:01:30 +00:00
martin
603d4c7226 Better handling of guest user 2002-06-10 04:33:46 +00:00
martin
b51e99130f All users are viewable in the "site" course. 2002-06-10 03:49:28 +00:00
martin
253ae7db0d Typo on add_to_log URL 2002-06-05 06:10:45 +00:00
martin
619431ba3f Doesn't display teachers or students if there aren't any 2002-06-05 05:54:47 +00:00