26 Commits

Author SHA1 Message Date
moodler
908d7b30fb Seems to be working pretty good - removing old lines no longer needed 2003-06-20 06:58:42 +00:00
moodler
b22b0e61f0 An initial effort at making posts return to correct context 2003-06-20 06:35:09 +00:00
moodler
0a9f61b55f When posting a forum, users can unsubscribe/subscribe on the fly.
The flag has a memory, but it keeps pushing you to subscribe.  :-)
(so that by default it behaves like it did before)

Hopefully now subscription is a bit easier to understand.
2003-05-13 13:53:36 +00:00
moodler
3395f2d67e Forum posts are now not allowed to have blank subjects or messages,
if a message is entered with one of these blank then the user gets
an error message and a chance to re-edit the message.
2003-04-24 14:05:47 +00:00
moodler
3e7542449b Removed save_session() - no longer necessary 2003-02-27 02:49:18 +00:00
moodler
48d38fad63 Some robustness fixes 2003-01-23 02:50:38 +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
3b7c1de95e Changes to improve robustness of uploads, and make things compatible
with PHP 4.3.0.  Also some translation fixes with upload strings.
2003-01-05 04:20:32 +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
0ae5e5ea2d Fix default cursor 2002-12-30 03:38:59 +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
ebc3bd2b24 Changes throughout Moodle to remove any reserved words from the
Moodle tables.

ie user -> userid in many tables, plus in user_students
   start -> starttime and end -> endtime

I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.

Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00
moodler
1f48942e7d Further SQL cleanups 2002-12-23 07:01:06 +00:00
moodler
9fa49e22ab Many many changes lumped in here ... not finished yet either.
Basically all the Database functions are in lib/datalib.php
and the web functions are all in lib/weblib.php, so
moodlelib.php is much thinner than it was.

Data functions have been extended ... most old calls will
still work, but now many more SQL commands can be performed
using the datalib functions rather than using SQL.  I'm
currently moving through the whole tree replacing SQL
calls or at least concentrating them in one section of
mod/xxx/lib.php

Still working on forums, quizzes, surveys, resources.

The tree is currently not full working ... some things are
half-completed ... will resume tomorrow.
2002-12-20 14:44:14 +00:00
moodler
dfc9ba9bbe Added navmenu in more places 2002-11-10 08:43:44 +00:00
moodler
6c506ca744 Disallow people posting in forums where they arent allowed to post! 8-. 2002-10-25 07:22:59 +00:00
moodler
213e8cc67d Better default options, and hiding of moodle-text help when htmlediting is operational 2002-10-10 09:27:49 +00:00
moodler
73bb08357c Initial attempt at adding html text editor features to these forms. 2002-10-10 07:27:57 +00:00
martin
cf38360f58 Language fixes, added english strings etc 2002-09-03 13:11:40 +00:00
martin
8aed46c7eb *** empty log message *** 2002-09-02 06:25:27 +00:00
martin
7f6689e4e0 Attachments can now be added to postings.
They are stored in the course moddata area.
They appear as links within the message, including mailed-out messages.
They are deleted when the post is deleted.
2002-09-01 14:34:38 +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
64eacd6f76 A teacher can now delete any post (as long as it doesn't have replies). 2002-08-05 09:48:17 +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