167 Commits

Author SHA1 Message Date
martin
8538258121 Better handling of country sorting 2002-09-22 15:57:23 +00:00
martin
66c95f3224 Don't delete a user if already deleted (reloading page, say) 2002-09-22 14:42:32 +00:00
martin
45aa6d563c Fixes to unenrolling students, and unenrol_student() and remove_teacher()
now remove forum_subscriptions correctly
2002-09-22 14:33:21 +00:00
martin
274f62e6d5 Fixes to table widths 2002-09-22 14:11:45 +00:00
martin
d578afc883 Major cleanup of user administration and display, including sortable listings,
confirmation on deletions, removing deleted user from all student lists,
teacher lists and subscription lists and freeing up their username and
email to be used again.
2002-09-22 14:06:38 +00:00
martin
bb09fb1157 Changes to enable DELETION of user accounts. Accounts aren't actually
deleted, they are just marked with a deleteion flag that prevents them
from logging in, or from being listed anywhere.
2002-09-22 03:01:17 +00:00
martin
20aa2257dc Allow 1-minute delay (mostly good for testing) 2002-09-21 08:44:08 +00:00
martin
b92ea9450c More options for longtimenosee 2002-09-21 06:45:26 +00:00
martin
1e4d8ed1d2 Put sitename on debugging info (helpful when comparing two sites) 2002-09-19 14:59:47 +00:00
martin
ae7aafeb53 Got rid of errorlevel configuration - more trouble than it's worth!
Hardcoded it into setup.php now - people who are that keen can change
it there.
2002-09-19 14:07:24 +00:00
martin
74944b734d Most of the configuration variables have been moved out of the config.php
file and into a database, where they can be edited using a new admin form
called "Configure variables".
2002-09-19 12:01:55 +00:00
martin
ba2e5d7347 Categories upgrade. Admin can now create/edit/delete categories, and
these are diesplayed wherever courses are listed
2002-09-09 11:48:11 +00:00
martin
774ab66002 Improvements to the language checker. As well as checking for missing
strings, you can now see the current language compared side-by-side
with English.
2002-09-07 14:57:33 +00:00
martin
7fb8331432 Add a link if a "manage database" directory exists 2002-09-07 14:56:19 +00:00
martin
c646b70d66 Added a new $release variable that shows the user-friendly version number 2002-09-06 14:06:48 +00:00
martin
403bb50d7b BUG FIX: In the last version I introduced a new security feature
(keeping the site URL stored in the USER session object) but forgot
to add this to the brand new admin user - causing it to fail.

Fixed.
2002-09-05 02:04:00 +00:00
martin
31410e9a16 Added a new administration page that can check the current language
pack against the English language pack.  It prints any missing strings
or files.  This should help language pack developers.
2002-09-03 14:29:39 +00:00
martin
cf38360f58 Language fixes, added english strings etc 2002-09-03 13:11:40 +00:00
martin
6f5db3b457 More direct link to index.php just in case they don't have index.php
set as a default page
2002-08-26 02:49:34 +00:00
martin
793f20b885 Tweaks to creation of user account while searching for the login
problem some people are having ...
2002-08-22 06:41:30 +00:00
martin
ee23de06c1 Bugfix for unenrolling old users 2002-08-20 09:39:23 +00:00
martin
1e3e716f1d Changes related to new way of setting and recalling themes.
The CFG->theme variable is now obsolete in config.php - use the
admin page to set themes interactively.
2002-08-17 13:01:06 +00:00
martin
b1887065b5 Added a GPL license agreement as the very first step. 2002-08-17 08:38:43 +00:00
martin
169d3404a3 Fixes to languages for admin (setting up and upgrading databases) 2002-08-15 05:44:37 +00:00
martin
3be1715715 Language fixes and cleanups for admin/site.* 2002-08-13 15:40:07 +00:00
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