250 Commits

Author SHA1 Message Date
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
e5a57e853a Fixed tiny buglet on insert_record which made it ignore NULL values 2002-08-08 12:41:21 +00:00
martin
989bfa9d7b get_real_size() for translating text to byte sizes (eg 2M) 2002-08-07 08:26:48 +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
6b1746806c Misc small changes while I was working on assignments 2002-08-04 16:20:30 +00:00
martin
e84ef82411 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
2002-08-04 02:39:54 +00:00
martin
dbcb136a69 print_continue() to print continue 2002-08-03 04:43:29 +00:00
martin
5750729092 get_course_users was buggy when teachers or students was empty.
The SQL looked good to me, but I had to do it another way to make
it work.
2002-08-02 17:41:14 +00:00
martin
058eec1868 Language files have been moved to keep them altogether under /lang
This should make it easier on translators.
2002-08-02 09:24:50 +00:00
martin
9132e8666f DOn't add to logs when teacher is "logged in as" a student 2002-08-01 07:05:01 +00:00
martin
1ea8303c1f Slowly implementing courseid type variables where i see them 2002-07-31 17:13:17 +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
2c309dc22a 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
2002-07-29 15:45:46 +00:00
martin
3c720ccee1 Moved some functions around - no functonal difference 2002-07-29 15:11:23 +00:00
martin
4c550bc013 changed function get_course_participants --> get_course_users (naming consistency) 2002-07-29 07:00:32 +00:00
martin
8a9e3fd753 New functions for getting lists of people in a course, and some cleanups 2002-07-29 06:52:48 +00:00
martin
39917a09c4 New functions for printing date selector forms and reconstructing dates
afterwards.  Also a new function for counting words in a text
2002-07-29 06:21:37 +00:00
martin
1afd014ea2 Better error checking in update_record 2002-07-27 06:10:37 +00:00
martin
65cf9fc390 Improvements to the help system 2002-07-21 08:34:25 +00:00
martin
37b155148d Slight formatting tweaks (forum index) 2002-07-20 18:20:19 +00:00
martin
a83fded1a9 Consistent use of get_site() instead of checking course->category directly 2002-07-11 05:30:10 +00:00
martin
6d9d8344b4 Typo in userdate 2002-07-04 08:01:26 +00:00
martin
bcc83c41f2 Added missing parameter to update_module_icon (courseid) 2002-07-04 07:49:38 +00:00
martin
7a302afc5f Slight changes to userdate() function. It now uses gmstrftime() instead of
gmdate to format times, thus allowing it to take advantage of locale, if set,
to print dates in the appropriate language.  Several userdate invocations
had to be changed, though, to use the different formatting specs.
2002-07-02 07:02:28 +00:00
martin
1180c6dc56 New languages system - get_string() in moodlelib. 2002-06-27 08:47:27 +00:00
martin
9ccbad71e3 Whoops forgot some more 'week's 2002-06-25 11:57:00 +00:00
martin
e07635f4d0 Changes related to new forum type: eachuser and some general forum-related tweaking 2002-06-25 06:47:34 +00:00
martin
f93f848ab3 Mass change related to separating forum from discuss and making it a
separate module (again).  This frees up forums for some interesting
developments.  Note that database tables have moved around.
2002-06-20 15:15:22 +00:00
martin
d2d6171f7c Fixes to usergetdate() ... looks OK now. 2002-06-11 04:04:45 +00:00
martin
edf7fe8c19 New usergetmidnight function and use in finding today's logs 2002-06-10 14:01:30 +00:00
martin
d552ead0e7 Fixes to functions relating to user timezones 2002-06-10 09:43:40 +00:00
martin
da5c172a07 Changes to support guest user across any course (guest/guest) 2002-06-09 14:14:07 +00:00
martin
c7e3ac2ac2 Changes so that an icon can be displayed in the header 2002-06-08 06:47:33 +00:00
martin
1e411ffc98 Added Moodle version number 2002-06-07 03:57:38 +00:00
martin
7868189942 More tweaking of the mail formatting 2002-06-07 03:54:39 +00:00
martin
7f86ce17ba If $CFG->smtphosts is empty, then mailer uses PHP mail() == sendmail. 2002-06-06 15:21:30 +00:00
martin
5fa51a394b Fixes to convert mail to individual mailing ...
so that we can use the new preferences for mail (plain or html).
2002-06-05 14:05:59 +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
be0d1cd55a course/login.php is now course/enrol.php ... 2002-06-04 06:32:12 +00:00
martin
5c0bef5d46 Fixed buglets in get_records_sql and insert_record 2002-06-01 09:05:08 +00:00
martin
4216daa695 Various small changes. Main one was new version of add_to_log to suit
the new logging format.
2002-05-31 09:20:39 +00:00
martin
59c16528cd Changed email_to_users to be a lot more straightforward. I don't think
there's really need for all the BCC hocus-pocus.  Everyone can find
everyone's address anyway, the email bloat is minimal, and perhaps
distributing email addresses will spark private emails.
2002-05-28 13:59:45 +00:00
martin
136dabd855 Changes to mailing system, now supports HTML, attachments. Simplified functions. 2002-05-24 06:38:37 +00:00
martin
d115a57f12 Add check for admin to isteacher() rather than doing checks everywhere else 2002-04-03 06:30:09 +00:00
martin
c9e5eb1a2e Strip tags from emailed text versions of postings 2002-03-26 14:45:06 +00:00
martin
34c8915d82 Added helpbutton function for popup help, see also /help.php 2002-03-11 03:21:10 +00:00
martin
a2eaeb91cd Changed navigation bar so it uses Site name instead of "Home" 2001-12-04 16:00:14 +00:00
martin
2a46a71bf3 made Print_Heading more general 2001-11-29 03:11:16 +00:00
martin
21ddaf605c Several changes related to the front page, so that it now works OK. 2001-11-25 15:48:24 +00:00
martin
f9903ed0a4 Initial revision 2001-11-22 06:23:56 +00:00