8792 Commits

Author SHA1 Message Date
martin
4606d9bb9f Fixed a tricky little bug with usergetmidnight() when no timezone was defined. 2002-08-08 17:28:30 +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
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
565f7a9504 Fixes to two database fields log_display(table -> mtable) and
user_teachers(authority from varchar -> int)
2002-08-04 02:08:43 +00:00
martin
dbcb136a69 print_continue() to print continue 2002-08-03 04:43:29 +00:00
martin
7ea53a1fb1 Removed fullname and search fields from modules table. Fullname is now
derived from the string 'modulename' in the lang files for each module.
2002-08-02 17:42:59 +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
0a786cab75 Removed version (replaced by /version.php 2002-07-30 10:45:36 +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
dafa318bab Dropping any pretense of Postgres support for the moment, and added a README 2002-07-27 12:38:06 +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
8553b7005a Changes related to internationalision strings and printing them 2002-07-11 05:30:57 +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
6df680ca6a Use lang if locale not defined 2002-07-04 07:56:19 +00:00
martin
fa0626c6f4 Language-related fixes 2002-07-04 07:52:06 +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
60dae40800 List of all 2-letter language codes (ISO 639) 2002-07-02 04:11:39 +00:00
martin
1180c6dc56 New languages system - get_string() in moodlelib. 2002-06-27 08:47:27 +00:00
martin
e3f0a6a737 Minor changes 2002-06-25 12:08:38 +00:00
martin
9ccbad71e3 Whoops forgot some more 'week's 2002-06-25 11:57:00 +00:00
martin
b5fe4c935d Major changes throughout to change "week" notation to "section" notation.
Sections covers "weeks", "topics" and anything else that may come along.
Note, again, some databases have changed esp course_weeks -> course_sections
and several fields called "week" are now "section.  Also course no longer
has an enddate, but instead has a numsections field.
2002-06-25 11:49:06 +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
2f21e988a6 Added course->marker 2002-06-19 05:37:59 +00:00
martin
b1a1b00aa6 Upgraded to ADOdb 2.12 2002-06-13 12:31:58 +00:00
martin
5af78ed2b2 New highlight function for searches etc 2002-06-11 07:01:51 +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
f13b00d318 Added course->timecreated 2002-06-10 11:34:31 +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
65adacc4ba Put backquotes around some field names to avoid errors 2002-06-08 02:13:17 +00:00
martin
1e411ffc98 Added Moodle version number 2002-06-07 03:57:38 +00:00