1
0
mirror of https://github.com/moodle/moodle.git synced 2025-03-08 17:59:55 +01:00

1628 Commits

Author SHA1 Message Date
defacer
86f092d25e New "Calendar" section in Admin -> Configuration.
Includes preliminary support for DST!
Includes "admin sees all events or only own?" setting (bug 1972)

WARNING: Modified moodlelib.php to explicitly specify NOT-DST when
calling mktime() and gmmktime(). This is essential since we don't want
PHP to second-guess us for the DST matters, but... it may affect existing
code?
2004-12-15 07:14:41 +00:00
moodler
4ed533dfaf Added a function to add a user to a group 2004-12-14 08:05:49 +00:00
moodler
1a5bc0467f Field added to groups table to allow group specific enrolment keys 2004-12-14 06:41:18 +00:00
moodler
f9f4d999fe Merged recent fixes to FULLME in stable 2004-12-12 06:49:26 +00:00
moodler
6b94a807d2 Merged new MOODLE_INTERNAL constant from stable, used to prevent
direct access to some scripts
2004-12-12 04:33:13 +00:00
moodler
1372b482df Fixed the include to use PluginDir 2004-12-10 12:22:39 +00:00
moodler
5debee2de4 Added latest knowledge on caching techniques to HEAD 2004-12-10 06:20:54 +00:00
defacer
070e261647 Fixed set_user_preference to make changes immediately available ($user was lowercased)
Updated all user preferences functions to behave well even if $USER or $USER->id is not defined
2004-12-01 21:47:02 +00:00
skodak
690f358b62 merged from MOODLE_14_STABLE;
Preparation for new file.php, new function get_file_argument() SC#5
2004-11-30 19:44:08 +00:00
stronk7
87290b788d Updated to 2.4RC1. This should terminate
some know incompatibilities.
Bug 2234
(http://moodle.org/bugs/bug.php?op=show&bugid=2234)

Merged from MOODLE_14_STABLE
2004-11-30 17:57:42 +00:00
moodler
3af01b513d Sesskey fixes 2004-11-29 06:35:49 +00:00
moodler
957b51989c After agreeing to site policy, you get redirected back to where you
were going.

Also, guests get asked to agree for EVERY SESSION.
2004-11-29 06:22:12 +00:00
moodler
027a160469 New feature: Site Policy Agreements.
If the admin specifies a Policy Agreement (via URL in the config variables)
then each user is required to see and agree to that document once before
continuing.

To get everyone to see it again (on an update, say) one just needs to issue:

   UPDATE user SET policyagreed = 0
2004-11-29 05:30:36 +00:00
dhawes
5809683fba fixed a comment whose details had been left behind in the recent api change 2004-11-29 04:38:07 +00:00
defacer
9b12850043 Fix for bug 2241:
I hope this time I got everything changed to the new Page interface! I 'm
really sorry for messing up and breaking new installations... :(

Also moved the only two functions of the API outside the page_base class.
2004-11-29 04:19:05 +00:00
mjollnir_
a2ddd957f2 Merged from MOODLE_14_STABLE: In get logs don't join on the user table for just counting the records 2004-11-25 21:56:32 +00:00
defacer
99110470ba Somehow I forgot to commit these and the whole page setup wasn't working
after renaming MoodlePage => page_base.
2004-11-25 17:23:57 +00:00
martinlanghoff
71dcd6c014 Merged form MOODLE_14_STABLE
Fixed an issue with postgres database upgrade code -- drop either index or constraint if they exist


Merge of patchset arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-430
2004-11-25 00:02:58 +00:00
martinlanghoff
b692d2be05 Merge from MOODLE_14_STABLE
Additional fixes for indexes in postgres. A few unique indexes may have been created non-unique. Still deferring the version bump -- please review the patch!

Merge of patchsets
 arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-423
 arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-425
2004-11-24 22:48:58 +00:00
mjollnir_
f3c9e7f9c3 Merged from MOODLE_14_STABLE: Fixing typo in mysql.sql for unique key for user_teachers on course userid 2004-11-24 19:00:24 +00:00
gustav_delius
ab0e4dd42f If a block is unknown then ignore it rather than throwing fatal error. In future one might want to have a dummy block that is displayed in this case to alert the user to the fact that some block code is missing. 2004-11-24 09:16:39 +00:00
martinlanghoff
9530c61dbf Merge from MOODLE_14_STABLE
raise_memory() now uses get_real_size(), duplicate function return_bytes() removed.

Issue discussed in 2202 (http://moodle.org/bugs/bug.php?op=show&bugid=2202).
Also seen as arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-424
2004-11-24 03:56:39 +00:00
martinlanghoff
b110348b71 Merge from MOODLE_14_STABLE.
Student and teacher enrolments now unique + version bump

Made student and teacher enrolments unique, enforced at the database level. This patch also removes a cleanup job in moodle's cron that removed duplicate enrolments.

Merge of patchset  arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-422
2004-11-24 02:25:36 +00:00
mjollnir_
6b7f8df2ec Merged from MOODLE_14_STABLE: Fixing use of UCASE and LCASE in glossary which are not postgres friendly - two new functions in datalib, db_uppercase and db_lowercase which return the database-correct functions to use. Some were already fixed in HEAD - those have been left as they were 2004-11-23 23:05:06 +00:00
defacer
e89d741af3 New naming conventions for class names to bring them in line with the
rest of Moodle. The convention for blocks is now:

class block_something extends block_base { ... }

HOWTO updated accordingly, plus some more minor polishing. More to come.
2004-11-23 18:53:34 +00:00
mjollnir_
f1f2c12527 Merged from MOODLE_14_STABLE: Update log_display to use postgres friendly concat functions for firstname lastname 2004-11-23 03:53:41 +00:00
mjollnir_
1604a0fc2b Merged from MOODLE_14_STABLE: More small sql tweaks to avoid invalid postgres sql 2004-11-23 02:05:47 +00:00
julmis
361855e6e7 Adding support for Mac OS X Camino browsers see bug 2004-11-22 18:38:33 +00:00
martinlanghoff
b36a8fc4f5 Auth/LDAP
Bugfix - value truncation to fit Moodle database
- Added truncate_userinfo() to cleanup data coming from external auth
- Fixed auth_user_create() to truncate user info as appropriate

Auth_ldap_user_sync
- created external script that calls the function
- much faster update strategy on postgres and mysql: auth_sync_users now to uses bulk inserts into a temp table, and then use LEFT JOINs and plain old SELECTs to determine what users it has to insert.
- we now loop over smaller sets of data -- we are still memory-bound, but (a) it'll be easy to use LIMIT to manage that and (b) memory use is much lower now in all cases.
- postgres: phased commits in auth_user_sync() for the batch user upload phase
- Several feature and performance enhancements:
  - if a value is removed from ldap, it will be cleared from moodle
  - no-op updates (where the data does not change) are skipped
  - if a user disappears and then reappears in LDAP in two separate calls to auth_user_sync(),the account will be marked deleted and then be revived. before, the account would have been deleted and created anew.

Multi-source ldap values:

The LDAP auth module now accepts a comma separated set of LDAP field names. When creating or updating a user record, auth/ldap will retrieve all the relevant fields. The right-most values overwrites all the others.

This is particularly useful when updating the user's email address from an LDAP source, which may contain the email address in one of several fields (traditionally: mail, mailForwardingAddress, mailAlternateAddress).

If a value is updated and is set to update external auth and this field is using this multi-source ldap configuration, the auth/ldap module will retrieve the old value, find which field it was sourced from, and update that field in LDAP. If it fails to find the original source of the value, it will log it in error_log.


Log of patchsets applied:
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-131
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-137
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-139
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-172
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-173
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-189
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-190
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-208
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-212
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-216
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-279
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-282
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-287
	arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-294
2004-11-22 07:46:10 +00:00
mjollnir_
ed040b1f2d Merged from MOODLE_14_STABLE: Recent course/scale optimisations 2004-11-22 05:22:20 +00:00
mjollnir_
b565bbdfe2 Merged from MOODLE_14_STABLE: Fixes in datalib and backuplib for postgres invalid sql 2004-11-22 04:24:30 +00:00
mjollnir_
a967637614 Merged from MOODLE_14_STABLE: modify_database function change - if no ; in single line sql strings, add it 2004-11-22 04:11:07 +00:00
martinlanghoff
911378628f Fixed typo in index name 2004-11-22 02:58:23 +00:00
martinlanghoff
6e8ca9837e Enrol/LDAP - enrol_student() and add_teacher() now populate the 'enrol' field. 2004-11-22 02:38:31 +00:00
martinlanghoff
5cd796869e Enrol/LDAP - DB Patches + version bump
These patches add an 'enrol' column to the user_students and user_teachers tables for the enrolment plugins to be able to keep track of source of the enrolments. Follows similar conventions to the user table with its 'auth' field.

This is a merge of the following patches:
 arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-187
 arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-192
2004-11-22 02:36:14 +00:00
moodler
72b9f333b9 Merged fix for hiding unneeded sections in course navmenu 2004-11-21 06:28:17 +00:00
defacer
0fa6d31143 Removed a useless space :) 2004-11-20 19:44:28 +00:00
martinlanghoff
c95aa089a8 Merged from MOODLE_14_STABLE: Fixing handling of empty memory_limit for PHP without memory_limit (mostly Windows binaries) 2004-11-20 10:38:43 +00:00
skodak
d52d5a8e85 merged from MOODLE_14_STABLE; updated parameter cleaning, preparation for new file.php SC#5 2004-11-19 21:28:29 +00:00
moodler
75169b06c4 FIxed the call to forum_add_user that was breaking student enrollment 2004-11-18 06:40:11 +00:00
moodler
1734f08ea4 In execute_sql, if feedback is not required then don't even show the
ADOdb feedback.  Makes those careful DROPs look less frightening!  :-)
2004-11-18 03:36:52 +00:00
mjollnir_
275c630a4a Replaced prefix_ with CFG->prefix for DROP of indexes before creation because of being inside execute_sql rather than modify_database - main tables 2004-11-18 02:55:33 +00:00
martinlanghoff
bce7197321 Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-335 Now memory_limit can be overriden by higher config settings from php.ini, commandline, httpd.conf, .htaccess 2004-11-18 02:55:06 +00:00
martinlanghoff
2b49ae96a6 Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-305 - Postgres SQL bugfix for instance_is_visible() 2004-11-18 02:37:52 +00:00
martinlanghoff
6315b1c8b6 Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-222 - SQL improvements\n Better SQL performance for get_courses() and get_courses_page() calls, specially from the categories page. This gives much better performance when browsing existing courses 2004-11-18 02:31:53 +00:00
mjollnir_
ffa5f71b4b Merged from MOODLE_14_STABLE:
Add a unique key to guarantee that course,sortorder is unique. Allows fix_course_sortorder and ordering operations to be much faster. (martinlanghoff)

Plus more indexes for user table (mjollnir_)

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-231
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-236
2004-11-17 07:47:03 +00:00
mjollnir_
17f3e7d05b Merge from MOODLE_14_STABLE: Indexes on faux foreign keys and often used fields, one more set and version bump to come. 2004-11-17 07:09:08 +00:00
mjollnir_
ba87a4daf5 Merged from MOODLE_14_STABLE:
Fixes to fix_course_sortorder() and course/category.php pages. (martinlanghoff)

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-160
  Minor fix: moodle would crash on high number of courses when doing course creation -- should be more scalable now

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-164
Fix a bug I have introduced in fix_course_sortorder() - v2

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-210
  Fixed nested transaction in fix_course_sortorder()

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-215
  Performance and memory usage fixes for re-sort courses function

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-268
  Major performance and correctness improvements in the functions that move courses up and down, reorder by name, and in fix_course_sortorder(). All now assume course-sortorder is unique (this is enforced at the DB)

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-332
  fix_coursesortorder() bugfixes and logic simplification

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-333
  courses listing enhancements: bugfix on re-ordering, keep the right page on actions
2004-11-17 06:57:28 +00:00
mjollnir_
1ed5abc877 Merge from MOODLE_14_STABLE: moodle--eduforge--1.3.3--patch-207(partial) + moodle--eduforge--1.3.3--patch-408 - added begin_sql() and commit_sql() (martinlanghoff) 2004-11-17 05:31:21 +00:00
moodler
bb043e3843 Fixing up any references to obsolete language pack ma_nt 2004-11-15 09:34:04 +00:00