42 Commits

Author SHA1 Message Date
martin
d506a6976c Obsolete 2002-08-13 15:31:08 +00:00
martin
1d4bc6ed76 In user list, name goes to full page instead of editing (because there
is an edit link at the end of the row, as well as on the ful page)
2002-08-11 04:30:25 +00:00
martin
2447921f18 Changes to make uploaded user pictures work properly on Windows :-( 2002-08-09 09:09:36 +00:00
martin
53bfe78cd4 New functions get_list_of_modules() and moodle_needs_upgrading().
Used on the home page when admin is logged in, to check for any
upgrading of the databases that might need to be done.
2002-08-09 02:45:15 +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
df8fa8f1ee Damn .. this bug was stopping the admin user being created properly.
(Checking for uploaded file)
2002-08-08 07:20: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
ce15d1784c Close wide-open hacking hole! This script wasn't checking for admin
user in the case where the site has been defined already.  Oops. Fixed now.
2002-08-06 12:17:40 +00:00
martin
d0daec361a Needed to delete forum_subscriptions as well. 2002-08-05 08:57:37 +00:00
martin
3d7a585834 More efficiency when deleting enrolments 2002-08-05 08:43:53 +00:00
martin
f282e6314c Cron tidy-ups 2002-08-05 08:40:00 +00:00
martin
6cb86b391d Code to unenrol old students and delete unconfirmed users 2002-08-05 07:59:11 +00:00
martin
94361e021e Lots of work on site display, over many files. Improved front page
and display of site modules.
2002-08-03 08:16:31 +00:00
martin
3f63fdfbfb More admin cleanups - improved user listing 2002-08-03 04:57:45 +00:00
martin
a15278543a Cleaned up the admin pages (and moved some files) and added ability to completely delete courses 2002-08-03 04:44:35 +00:00
martin
d4dec01c69 No change (just a comment) 2002-08-02 17:41:54 +00:00
martin
fc5c407eef Rmove guest from list of possible teachers 2002-08-02 09:20:39 +00:00
martin
ef58b82265 Misc changes to improve performance on a brand-new installation 2002-08-01 15:48: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
a8876884dc Now adds the config table automatically if there isn't one yet. 2002-07-29 15:09:16 +00:00
martin
cbd1170e91 Moodle can now upgrade itself, just like the modules do 2002-07-27 13:09:08 +00:00
martin
673de29291 Much better cron function method - instead of using a code fragment in
mod/cron.php, it now uses a function in mod/lib.php ... more contained
2002-07-27 06:09:54 +00:00
martin
2c4483e5fb New upgrading procedure, uses module functions to handle all version changes 2002-07-27 06:08:29 +00:00
martin
a83fded1a9 Consistent use of get_site() instead of checking course->category directly 2002-07-11 05:30:10 +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
d887b5a7bd Changes to allow choice of format on home page of site 2002-06-10 05:19:03 +00:00
martin
a9b07c5288 Moved creation of guest user to login page - this means it can be
trashed any time and it will recreate itself as necessary.
2002-06-10 04:24:50 +00:00
martin
da5c172a07 Changes to support guest user across any course (guest/guest) 2002-06-09 14:14:07 +00:00
martin
5710022c65 Removed password ... it's not necessary any more. 2002-06-06 15:19:23 +00:00
martin
6c19f34bf8 Removed some logging 2002-05-31 13:20:21 +00:00
martin
a634339f4e Now looks for module SQL files in mod/db/dbtype.sql 2002-05-31 13:20:01 +00:00
martin
65c687a5dc Changes to support various types of databases (using SQL code in lib/db) 2002-05-27 13:02:48 +00:00
martin
db23f0caf9 All moved to lib/db 2002-05-27 06:19:44 +00:00
martin
3eff8fde3a Now uses $CFG->cronpassword from config.php 2002-05-27 06:18:39 +00:00
martin
c88f014ac6 Improvements to the process of setting up Moodle the first time, also better interface for adding/removing teachers 2001-12-04 14:02:36 +00:00
martin
f3b9479b3e Fixed serious bug that allowed any existing user to use this page. Doh! 2001-11-30 15:21:25 +00:00
martin
beef8d0bbf Corrected a type used "=" instead of "==" 2001-11-29 12:28:29 +00:00
martin
7ea4679b24 Turned on link to teacher.php 2001-11-29 05:47:43 +00:00
martin
dbb24f689d Basic script to add/delete teachers of courses 2001-11-29 05:46:15 +00:00
martin
0d1a6b9226 Make it ignore CVS directories 2001-11-28 14:44:53 +00:00
martin
f9903ed0a4 Initial revision 2001-11-22 06:23:56 +00:00