2999 Commits

Author SHA1 Message Date
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
martin
bda8d43a78 Changes to user settings, now it matches the stored data better 2002-06-05 05:37:55 +00:00
martin
9f11a65e56 Old new.php system is replaced by print_recent_activity() in course/lib.php 2002-06-05 03:22:12 +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
ed29328aff Formatting of teacher links 2002-06-04 06:54:26 +00:00
martin
8a3b358be9 Added a message if the student is not a member of the current course 2002-06-04 06:49:52 +00:00
martin
18798c6f55 Whoops ... don't put unenrol button unless the user is the current user! 2002-06-04 06:35:36 +00:00
martin
c888501c02 Added button to unenrol a user (course/unenrol.php) 2002-06-04 06:29:36 +00:00
martin
3760280438 Now uses $course->student as title of list 2002-06-02 08:23:09 +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
bc8924842c Added help button 2002-03-15 10:19:21 +00:00
martin
88906ff098 Added location on the user overview 2002-03-07 06:18:52 +00:00
martin
0b6050d199 Replaced shadowhead with something a bit more positive (smiley face cake) 2002-03-02 03:26:31 +00:00
martin
f9903ed0a4 Initial revision 2001-11-22 06:23:56 +00:00