martin [Tue, 6 Aug 2002 17:23:45 +0000 (17:23 +0000)]
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
martin [Tue, 6 Aug 2002 06:09:44 +0000 (06:09 +0000)]
forum_print_discussion now checks to see whether there are any
ratings that haven't been done yet on a discussion. If not, then
it won't print the ratings form. This avoids a slight confusion
about the interface that existed previously.
martin [Sun, 4 Aug 2002 02:39:54 +0000 (02:39 +0000)]
In email_to_user, change AddBCC back to AddAddress ... this was a hangover
from the old bulk-email method, but now we just send one email at a time,
so it makes sense for the address to be visible again
martin [Fri, 2 Aug 2002 17:38:18 +0000 (17:38 +0000)]
Lots of changes related to module info used in course listings and
activity reports. Module names are now from lang files, not from
the modules table. Cleanups.
martin [Thu, 1 Aug 2002 07:09:39 +0000 (07:09 +0000)]
Make sure we still log the fact that the teacher logged in as someone though.
Also, make the "realuser" the teacher's id, in case we want to use it later
martin [Thu, 1 Aug 2002 03:50:27 +0000 (03:50 +0000)]
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
martin [Wed, 31 Jul 2002 14:19:35 +0000 (14:19 +0000)]
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.
martin [Mon, 29 Jul 2002 15:45:46 +0000 (15:45 +0000)]
Definition and use of new isediting() function for checking whether a user
is not only in editing mode, but ALLOWED to be editing the current course.
Used to show editing buttons etc