Git commits in Moodle 1.5.x by martinlanghoff

commit 78f6c5d5c043935a4c827f264a175878a871878b
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 18 May 2006 08:49:36 +0800
Tag:    v1.5.4

login: Changing passwords now works when logged in as guest

commit d866cc69daca5a7e98953a01ef3b6acf44cc5747
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 21 Apr 2006 06:40:11 +0800
Tag:    v1.5.4

Backported from HEAD: Skodak's short tag fixes.

commit 77a08a9c439e2536d850399b17393879f0fc9161
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 21 Apr 2006 06:30:53 +0800
Tag:    v1.5.4

weblib:validate_email() - emails with trailing dot in the local-part (user.@host.com) are invalid as per rfc822

commit 17729fc82edbf507dee848cc63cab564bf66043b
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 16 Jan 2006 12:01:14 +0800
Tag:    v1.5.4

readfile_chunked() - do not timeout on slow (dial up) clients, and flush buffers explicitly to avoid hogging memory when ob is on

commit 6c533543a844901d53cbd753010f9fa3cb336362
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 04 Jan 2006 04:44:42 +0800
Tag:    v1.5.4

AdoDB tests cleanup after Secunia Advisory SA18267

commit ae3c8f147ec7a0bd84e1484758fa13b7819f977a
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 04 Jan 2006 04:40:58 +0800
Tag:    v1.5.4

Fix for Secunia Advisory SA18267, plus some logging of suspicious activity.

commit eed0f0b94d0e71130f52da3fbf49fd2b49980c5b
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 12 Dec 2005 12:57:23 +0800
Tag:    v1.5.4

auth/ldap: Fix support for AD -- thanks to Inaki, in more than one sense wink

commit d6c2c60294df403c955c52059977c712e89880ef
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 12 Dec 2005 11:21:11 +0800
Tag:    v1.5.4

auth/cas: fixed a syntax error casting -- credits to Nigel McNie

commit 61da36a863879a378b794fc449e575655e5b0927
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 15 Nov 2005 15:21:24 +0800
Tag:    v1.5.3

153 release notes done -- bonus commit with hidden roll-of-honour

commit ebb8f1b45cca452656838ec76ecaf12a45af153d
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 15 Nov 2005 15:19:05 +0800
Tag:    v1.5.3

work-in-progress 153 release notes -- added notes about the commits from the last 2~3 days

commit 580427eb7263242a9e77b7657f52394dae7cc695
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 15 Nov 2005 15:03:38 +0800
Tag:    v1.5.3

work-in-progress 153 release notes -- part 3

commit 952b4986c4972f95859fa620395ab2b1560fbef5
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 15 Nov 2005 14:22:04 +0800
Tag:    v1.5.3

work-in-progress 153 release notes -- part 2

commit 220dfe69ad29b264fae0787b57b27661d6ec3517
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 15 Nov 2005 13:47:46 +0800
Tag:    v1.5.3

work-in-progress 153 release notes

commit aa910f60b0dec21bda430119c5847ca4fe6c4e93
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 12 Nov 2005 13:30:23 +0800
Tag:    v1.5.3

Display warning when magic_quotes_gpc=off _and_ register_globals=on -- tidyup wordwrap and center it proper.

commit 2193242b487906872681499ca846cba76e8eaa74
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 12 Nov 2005 13:25:39 +0800
Tag:    v1.5.3

Display warning when magic_quotes_gpc=off _and_ register_globals=on

commit 186288dea5add014a71d11e5a69d2a1d73864aca
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 07 Nov 2005 08:44:21 +0800
Tag:    v1.5.3

user/edit: Better error handling when loading auth libs.

commit e7cfc5325f363d8b1405f954c18c75edc6146c20
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 07 Nov 2005 08:38:23 +0800
Tag:    v1.5.3

auth/ldap: Better warnings and handling of updaging multi-source LDAP fields

commit 985cd79efa8382012479e215518056b45083275c
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 01 Nov 2005 06:43:44 +0800
Tag:    v1.5.3

Updated the definition of 'member' for AD - thanks to Iaki for the tip!

commit 1ff64b7f604635a7423f255574afab52ead3e005
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 18 Oct 2005 11:28:20 +0800
Tag:    v1.5.3

If wwwroot is unset, log something before dying

commit 2cf2079188866c818d3c91d33aea175afd254502
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 06 Oct 2005 10:23:40 +0800
Tag:    v1.5.3

Fix for bug 3141 - Can't update external data with LDAP authentication

commit 67149b4d2c5746fd530ba19405cbf21c2170f798
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 06 Oct 2005 10:18:16 +0800
Tag:    v1.5.3

Fix for bug 3992 - LDAP password including a quote does not work - credits go to Kita

commit a6349a6d1f2876285c4db41864bf87177d268dd4
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 22 Sep 2005 11:12:14 +0800
Tag:    v1.5.3

courses/sortorder: syntax fix to cope with bad sortorder values

commit 085366cfa06170be508ed15daeb1069fca0ab11d
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 17 Sep 2005 07:29:26 +0800
Tag:    v1.5.3

auth/ldap fix typo - thanks to Skodak for spotting it!

commit 59b5352b51561c4560c4aa229f06c1ba8c5195ab
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 09 Sep 2005 08:25:50 +0800
Tag:    v1.5.3

auth/ldap: fixed typo in auth_user_activate() - bug #3594 - thanks to ze @ nbox.org

commit 68dfdae36eb11f2fa14b2dbbee3f97f1ad905bb4
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 08 Sep 2005 07:23:08 +0800
Tag:    v1.5.3

Fix for bug 4031 -- fix typo

commit fce45181d7136a4fcdd2c3927990323f92d6f0f9
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 08 Sep 2005 06:48:48 +0800
Tag:    v1.5.3

Fix for bug 4031 -- stupid mistake of using get_record_select() when I mean get_record() - see the bug entry for more details

commit dc2a68b4d73f2c7778291227d692ef0f7f86eced
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 07 Sep 2005 14:36:32 +0800
Tag:    v1.5.3

enrol/db - bug 3912 - Re-add the enrolment to $user->student[] - should fix things for good.

commit 0aff0bf622484ab1fb341fa4d2f50c78a0079eaf
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 07 Sep 2005 14:03:53 +0800
Tag:    v1.5.3

Fix for bug 4011 -- a MySQL specific workaround did not work with database names with hyphens, and broke the whole plugin for other databases. This patch fixes both issues.

commit 6cd6568f84367673c54a67269424aa77dcc7e213
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 07 Sep 2005 06:24:31 +0800
Tag:    v1.5.3

make_categories_list(): initialize variables correctly to cover up for broken call convention. Passing unset variables by ref to be populated is a BAD idea. Do The Right Thing and Return your function output or there'll be no dessert for you.

commit a705afc7da59b73158179bb88d1da9b69f373281
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 02 Sep 2005 14:55:28 +0800
Tag:    v1.5.3

auth/ldap - sync_users script bugfix x2: it was deleting fields that were not supposed to be synched to ldap and it was failing to set auth_forcepasswordchange

commit f159f93bc753cebdf217514c5d0a46324ad36a0d
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 02 Sep 2005 14:50:11 +0800
Tag:    v1.5.3

enrol/ldap - fix course auto-creation to work with the new blocks infrastructure. doh! (thanks penny!)

commit 8ade954b604a4c2ddeb2e873cfc27dff500c24e2
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 02 Sep 2005 14:42:33 +0800
Tag:    v1.5.3

auth - bugfixes: update_userinfo() did not truncate values, and did not have proper errorhandling; user creatiwas passing an id to set_user_preference when we wanted an object

commit e1a3a68059737b19552af9ba04768a362e27ff0d
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 02 Sep 2005 14:36:39 +0800
Tag:    v1.5.3

forums/trackreads: Small optimizations to forum_tp_can_track_forums()

commit 63b8c597f69936dcc7d6576b108e0f5bc9b395e5
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 02 Sep 2005 14:30:24 +0800
Tag:    v1.5.3

forums/trackreads: Postgres-optimized query - from many minutes to a few milliseconds

commit d5e554444885c91b064b67aead84d4ceeff1d5ca
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 31 Aug 2005 13:59:31 +0800
Tag:    v1.5.3

auth/db: Better support for utf-8 user data.

commit 8e0b42fb88512c471eb5df4b5b1abc868de6574d
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 26 Aug 2005 14:07:42 +0800
Tag:    v1.5.3

enrolment fixes: We now have better handling of the enrol field when dealing with student enrolments. This fixes bugs 3912 and 3974. NOTE that enrol_student() now defaults to manual - this is to support the different pages that call enrol_student() to still work correctly when external enrolments are in use, by recording the enrolments as manual. Enrolment plugins are expected to know better and pass the correct parameter.

commit 9595bf588aa01bb5287fc3f5140bc1482d912480
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 26 Aug 2005 12:09:41 +0800
Tag:    v1.5.3

enrol/ldap - fixed default objectclass, and we can now bind non-anonymously

commit 8a9e5ac3274b01881e765b479c453b0448639d7c
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 26 Aug 2005 11:57:30 +0800
Tag:    v1.5.3

Long-pending rollback_sql()

commit 2a069aa1f2d11bb5d4a9dc899ac8f48f5bf93bc6
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 25 Aug 2005 12:56:13 +0800
Tag:    v1.5.3

auth/ldap: Fixed handling of multi-source field mapping. Now fields with non-empty values have precedence over empty fields, regardless of order. Fields will be set to empty only if all ldap source fields are empty.

commit e2d7747f101062dd54fc651c7564062e79eb34a8
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 18 Aug 2005 08:01:39 +0800
Tag:    v1.5.3

Blocks upgrade - reduce memory consumption by a few GB and (postgres only) halve database traffic.

commit c53889ff42fd8237838260099bb1b798e033db3a
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 18 Aug 2005 06:35:45 +0800
Tag:    v1.5.3

LDAP servers being down or unavailable should not prevent login - we now fail with a notice() rather than with an error()

commit 42fd23bc3a69c31017ed81cd00d25b2d44a320cc
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 16 Aug 2005 11:19:38 +0800
Tag:    v1.5.3

Unset the changepassword flag for the _right_ user, even if we are masquerading an account

commit 29ad8bfe68572f9751ea362c1b31303fdc8687d3
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 16 Aug 2005 08:42:42 +0800
Tag:    v1.5.3

Tell insert record we don't care about inserted id

commit 8b7291eff56e1684e91295d297e59eb8fa5f422f
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 16 Aug 2005 07:21:40 +0800
Tag:    v1.5.3

Fixed DOS newlines.

commit 0b7c88413267303711d66362a922d3ef41657381
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 16 Aug 2005 06:27:47 +0800
Tag:    v1.5.3

Enable reset password functinoality for LDAP and other external auth mechanisms as promised in the auth config page

commit 812fe4c5fc6aa74627980eea710aadf49d76a536
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 12 Aug 2005 10:30:30 +0800
Tag:    v1.5.3

Temp table now matches idnumber length with username - thanks to Yves Roy for pointing this out.

commit fe1acc35e7a693ccc761e9ed4764f283076d0fb5
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 12 Aug 2005 09:47:56 +0800
Tag:    v1.5.3

Fix calls to enrol_student() and add_teacher() where nulls were being passed erroneously - credits to jeff graham

commit 4fd1373c7e04d254b477052ed67e98a189fb6763
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 12 Aug 2005 07:01:12 +0800
Tag:    v1.5.3

Fix for small syntax error that was hiding debug info from an error msg. #3527 - Credits to cangussu@gmail.com

commit 44944d84664fd14c7653522bed02d42a2ca461f3
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 12 Aug 2005 06:42:46 +0800
Tag:    v1.5.3

Fix for using dn as idnumber - thanks fo Jeff Graham - http://moodle.org/mod/forum/discuss.php?d=28840

commit d3af23581db103bc21057c04dac4c1a6d90cb0fc
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 10 Aug 2005 13:34:08 +0800
Tag:    v1.5.3

Added the missing $userold, now detecting updates (and pushing them out to LDAP) should work.

commit 6f095c04a96f949ec0a4e0fe92ed5d2f5505a411
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 01 Jul 2005 10:51:15 +0800
Tag:    v1.5.1

enrol/ldap: (merge from HEAD) bugfixes suggested by Jeff Graham here http://moodle.org/mod/forum/post.php?reply=124170 -- fixes course creation not pulling summaries, form errors in ldap_search_sub, calls to deprecated blocks_get_default_blocks() and DB errors when inserting new enrolments. With these fixes, it may even work.

commit 9fd70b1ac32cb8d28424c299cecd04754a14b856
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 08 Jun 2005 07:43:04 +0800
Tag:    v1.5.1

Merged in readfile_chunked() patch -- much lower memory footprint, same CPU usage, works around PHP5 bug in readfile()

commit 6eabcba1373052f0b99d21ba81b11ecebe65f90d
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 08 Jun 2005 07:19:45 +0800
Tag:    v1.5.1

Auth fields were not being re-fetched on every login as expected. Fixed.

commit 472b3805225971312de2f439875307048994a0d9
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 07 Jun 2005 13:04:35 +0800
Tag:    v1.5.1

Added missing auth strings for field locks

commit 094f41207b2bb76c53a1ab8f9ff1c4a75365c33f
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 07 Jun 2005 11:40:20 +0800
Tag:    v1.5.1

Fixes db upgrade for config_plugins failure on unquoted data - discussed at http://moodle.org/mod/forum/discuss.php?d=25122

commit a0b22b3218f87c97716b001de9000057adf7b401
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 03 Jun 2005 11:41:16 +0800
Tag:    v1.5.0

auth/ldap : minor html fix

commit 6406bef13e25251ca91ca5ed40d991b9ab13aaaf
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 02 Jun 2005 17:55:06 +0800
Tag:    v1.5.0

Fixed typo in configuration of ldap_memberattribute for RFC2307-style LDAP servers. Should fix handling of iscreator group. Thanks to Teemu Haapoja for the diagnosis and fix.

commit 5a2cfa7efbb319d11693bf918bc971d7a093dbb8
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 02 Jun 2005 12:25:36 +0800
Tag:    v1.5.0

Version bump triggers config_plugin migration for locks and field mapping.

commit d08c400d310242b9a1bc6cb8d642bf0dd5c6ced6
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 01 Jun 2005 16:05:28 +0800
Tag:    v1.5.0

auth fieldlocks: smarter handling of UI strings for user fields

commit 770764f3922995dea48426b569a4b470ad36c409
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 01 Jun 2005 15:47:49 +0800
Tag:    v1.5.0

config_plugins settings migration -- this is a DB upgrade block

commit 4f6af1254b72ed1d88289f774dd52850c702bcf5
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 01 Jun 2005 14:57:09 +0800
Tag:    v1.5.0

get_config() now preserves CFG if DB fails or is empty

commit e3cd7f35b97ec410d3e0fa3982efc789730b2198
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 01 Jun 2005 14:23:44 +0800
Tag:    v1.5.0

config_plugin with auth/shibboleth

commit 2ba609cc8c45fdf290f90195b2bd7c5a7076235d
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 01 Jun 2005 14:01:29 +0800
Tag:    v1.5.0

config_plugin work

commit b50eee807b1149b4f35be528d5bf3752aa8c6236
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 01 Jun 2005 12:44:17 +0800
Tag:    v1.5.0

Almost there with config_plugins work!

commit 6b64601101f358ec3ff0c452e4cc9b3a21db4820
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 01 Jun 2005 10:28:33 +0800
Tag:    v1.5.0

Bumping the revision for the config_plugins table.

commit cdbba24134253b23f1f27c53892dbd87d5e384dd
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 31 May 2005 13:36:41 +0800
Tag:    v1.5.0

First cut of field locks support. functional but missing strings and support for LDAP/DB modules.

commit 8bfac5b93db63b0b47694b8cde68734d215a67a3
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 31 May 2005 06:30:50 +0800
Tag:    v1.5.0

Fixed field lenght in config_plugins

commit fc0ee03121f346f3cf93b8dbdd25963a1860fefd
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 30 May 2005 13:24:19 +0800
Tag:    v1.5.0

Capture the outcome of the config_plugins table creation.

commit 987d846223f46105704cd9de05bc3f141b449442
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 30 May 2005 13:10:22 +0800
Tag:    v1.5.0

Created config_plugins table to manage configuration entries on a per-module/plugin. This breaks the rules a little bit, but it has been discussed with MD.

commit e7c83f42ef8658fe8a9a1a08233bc85612928296
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 30 May 2005 11:51:07 +0800
Tag:    v1.5.0

enrol/ldap offers enrol_allowinternal config option as it should.

commit 66552670bae4375f2c507d6062da5ab84a0cac08
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 06 Apr 2005 15:36:10 +0800
Tag:    v1.5.0

Improved performance info reporting and logging. Removed duplicate calls.

commit c2fd9e955a86cfb47766bd72f0850fc5e0b249c0
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 06 Apr 2005 15:34:05 +0800
Tag:    v1.5.0

Improved performance info reporting and logging. Needs some work on the configuration front still.

commit 232eafed03d1a38e003999ef4a1e23480deafdde
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 06 Apr 2005 15:16:43 +0800
Tag:    v1.5.0

Fixed notation for (mega|giga|kilo)bytes

commit 558f7cd09edbbd636af6e69967908c981fe50a8c
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 06 Apr 2005 06:33:41 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Fixed 'Can't save changes in editor configuration' form bug reported in http://moodle.org/mod/forum/discuss.php?d=21359

commit 51e565d1ad31e4d43e4d9938a721be575fd01ebf
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 02 Apr 2005 21:31:38 +0800
Tag:    v1.5.0

Capture some key stats for performance detail output.

commit 798065253eb88f75e325485044e2b8ecb254d30f
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 02 Apr 2005 14:28:02 +0800
Tag:    v1.5.0

Two minor fixes to Olson file parsing. olson_parse_at() now deals correctly with 'unsigned' AT entries. olson_simple_rule_parser() avoid a potential bug in minute-only SAVE entries.

commit 455c36654fdaa53a4425fc550014a2365c0951de
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 01 Apr 2005 14:01:23 +0800
Tag:    v1.5.0

Backed out unrelated block from last commit

commit a9a9bdba55422730a0c5ac52f7f1e88b98e348ee
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 01 Apr 2005 13:55:10 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - insert_record() - major efficiency improvements for Postgres databases on insert. Also fixed many calls to insert_record() which discard the returned record id to not ask for the record id.

commit f78b3c34056723c1c62dd866c44a0243c6f9dbbe
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 23 Mar 2005 15:07:47 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - add_to_log() - fixed a postgres support bug when  is set to '', and clarified the logic that decides whether to update the user_students/user_teacher records.

commit 0362d553eb113faa724dd553ca9f398f8cbfcf29
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 21 Mar 2005 07:13:18 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - More efficient SQL UPDATE in forum_mark_old_posts_as_mailed() -- improves performance under PostgreSQL.

commit b350cb9d938cb2e695632d94cc31860446538178
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 21 Mar 2005 05:37:05 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Pedantic HTTP correctness; now we return an appropriate 503 HTTP status code when the database is unreachable and assumed overloaded. This is for the benefit of monitoring and load testing scripts.

commit 989fa91059ce27773ff279a2098ea81108682eab
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 16 Mar 2005 18:23:16 +0800
Tag:    v1.5.0

Now CAS-supplied tokens can override LDAP auth - fixed

commit 1f568ab426e7e729ebd1728cbd0bb5d4ba6c62db
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 16 Mar 2005 17:17:00 +0800
Tag:    v1.5.0

Generalized more references to LDAP so as to be reusable by the CAS module

commit dd49e6f657f8cbf6f852dccd819fe13742f5f483
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 16 Mar 2005 17:13:15 +0800
Tag:    v1.5.0

Now CAS-supplied tokens can override LDAP auth

commit 56cfbcd5c95a3aa0967217368cd241e82f38c097
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 16 Mar 2005 04:52:34 +0800
Tag:    v1.5.0

Allow LDAP logic to be reused by other modules

commit fc44d2121f89ed9915c444f876b7b62487b8bd00
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 15 Mar 2005 03:34:21 +0800
Tag:    v1.5.0

Fixed a misnamed/renamed variable probably due to a recent merge from stable that used the old var name.

commit 64169fe6a0e43ddc151a18f4d0d2ddecd2672f38
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Mar 2005 10:07:52 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Fixed memory limit overrun in backup config page. Why SELECT * FROM mdl_course when all we need is id? smile

commit de6fa62a5665539f065ef57dbf02bbc6db502ec3
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 10 Mar 2005 10:36:51 +0800
Tag:    v1.5.0

Fixes from Dan Marsden to getremoteaddr() and address_in_subnet() -- getenv() isn't supported under ISAPI (IIS) so we use _SERVER instead. address_in_subnet() had a loop control error.

commit eb4e67a27f3b47e050b09ee6e4ea05f1d7aac044
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 07 Mar 2005 15:39:27 +0800
Tag:    v1.5.0

The olson parser is feature complete and ready for people to start playing with it. The entry point is the olson_todst($filename) function.

commit e739b19a7e6b889ac919b60d0cefc00d83abac19
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 07 Mar 2005 10:01:25 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Fixed bug 2319 DB auth not fetching user data fields correctly -- credits go to andres.marquez@accenture.com and doug nutsch

commit b87a5a23a5d6c693ea06a1f52bfff72ba84fe337
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 05 Mar 2005 10:43:07 +0800
Tag:    v1.5.0

Reorganized the rules and fixed a couple of bugs in the olson zone parser

commit af2309e3665817793dbd24bbacf64530597b505c
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 04 Mar 2005 20:05:26 +0800
Tag:    v1.5.0

We now postpone parsing of AT until we have the GMTOFFSET handy; some reorganization of the returned arrays, and starting to prepare the rationalized DST entries for Moodle DST table

commit 720e6293adb256e1e5e66b7145468a04c3fd77e3
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 04 Mar 2005 18:59:29 +0800
Tag:    v1.5.0

Olson parser now parses Zones and Rules

commit cecfc11d8128f2e901b960c59ffef299417344d2
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 01 Mar 2005 11:10:34 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Better handling of trailing semicolons and spaces in LDAP configs. Fixes a regression from 1.4.2, plus fixed typo: == should be =

commit e0003dfa08137c77f2ee95521f0cfdef89d80a76
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 01 Mar 2005 10:53:27 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - loglive now has a proper footer and the links in header & footer open in new windows

commit b935c832ec74aac07197a7144d12eac091985446
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 25 Feb 2005 05:22:06 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Provide an explicit sortorder for new courses in empty categories, and run fix_course_sortorder() after adding the course to make sure its in the appropriate range for the category. This mege adds fix specific to HEAD: it reverts an earlier bad fix.

commit 97cfb9352cbc067bc54357fc41b62aa89ccc8909
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 25 Feb 2005 05:14:32 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Backing out bad sortorder fix in restorelib -- actually we didn't need one.

commit 8b0660a3c5a2bc1cb5c0ea9bca276a9830fee325
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 23 Feb 2005 14:45:45 +0800
Tag:    v1.5.0

Initial implementation of a simple Olson database file format for DST rule parsing. Implements olson_simple_rule_parser().

commit 5875a2f3cac92d214366d1c735826fa20b00a85f
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 23 Feb 2005 12:49:15 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Fix problem when restoring courses to empty categories

commit ccb3585fdca25dd0650f92f349fb86a38613675b
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 23 Feb 2005 10:11:59 +0800
Tag:    v1.5.0

Merged from MOODLE_14_HEAD - Bug fix. Using external auth, the user account fails to be created on login if currently logged-in as guest. Credits go to Dan Marsden for the fix.

commit 814748c9ea23ed51222f02e84e73d5defbb3962c
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 23 Feb 2005 09:49:22 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Fixed a bug in get_categories() when called for category '0', and some extra fixes to fix_course_sortorder()

commit 008621712ffddb1a2cd99679b34149654d4292c6
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 22 Feb 2005 11:23:41 +0800
Tag:    v1.5.0

Fixes for null sortorder on empty categories.

commit e89ff6c6df18687c4c8009d6afd11bf84dc1bed9
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 16 Feb 2005 16:00:40 +0800
Tag:    v1.5.0

Fixed course.idnumber not being varchar(100) in installations post 2004/06

commit 1c66bf597d7877ac6e12152e854942e7b6166318
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 16 Feb 2005 07:12:57 +0800
Tag:    v1.5.0

Fixed bug 2553 - truncate_userinfo() was out-of-sync with prefix_user table definition. Added a reminder to the SQL files.

commit 07158c1ed0062131ecd489c485a8dc056bb8d568
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 15:40:46 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Cleanup of warnings in filter/activitynames

commit d0a8be734e74a5051f93380968c2db63f16774c7
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 15:23:02 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Cleared a warning

commit bf17309a02d9c3b44fde13245b2c483b7ad5d52f
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 14:07:59 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Stop DB inserts we know are going to fail, and clearer error message when file upload stops.

commit adfc03f90e2d5f75ee8aff1a4f0d50331b24dec8
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 09:30:57 +0800
Tag:    v1.5.0

merged from MOODLE_14_STABLE - trim() user data coming from external auth - now covers cases where we had a space on the truncation limit

commit ca4030dd1d47d491fc0f084d62f1474c145854c9
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 09:13:05 +0800
Tag:    v1.5.0

merged from MOODLE_14_STABLE - trim() user data coming from external auth - fixes problems with locked user data in auth/ldap in 1.5

commit f93426cf0732f4ab9e76501f8ae1101946830abe
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 14 Feb 2005 06:54:25 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Added option to respect php.ini session settings, else we reenable garbage collection for sessions. Fixes stale session problems with Debian systems, but still allows package maintainers to override.

commit d6a49dab9fe04e538550c909c2dd02ee27753d0d
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 08 Feb 2005 11:42:20 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - fix_course_sortorder() bug #2509 - Should fix overlaps when moving categories with large gaps -- affects only mysql. Prevent from landing even near the newly assigned range during the temporary shift.

commit 4c3911f934d230d617c33c5a2f94a6129b5bbcdb
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 01 Feb 2005 09:47:45 +0800
Tag:    v1.5.0

Merged from MOODLE_14_HEAD - Better behaviour of fix_course_sortorder() -- related to bug #2334 -- includes version bump to clear out recalcitrant sortorders

commit 94afadb36038e2c10e186f32821dac39bc2b2f7b
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 01 Feb 2005 09:37:14 +0800
Tag:    v1.5.0

Merged from MOODLE_14_HEAD - Better behaviour of fix_course_sortorder() -- related to bug #2334

commit af4e9e5fd4c31e3719d633d7903729107e13989d
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 27 Jan 2005 15:10:41 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Reverting validation in current_language() due to performance concerns.

commit b6c93894fbb3b34ede90dcaa0e3a66a061cf65a3
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 27 Jan 2005 11:51:33 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Stronger validation of form data in user/edit, and validation of lang in current_language() -- closes SC#67

commit 76560c31752ea02b93e3e994275c666b964005ce
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 14:21:39 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Tighter input validation fixes SC#54

commit c048e4f9331133f615b88938bd131106c07dc1a9
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 14:13:36 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE -- pending merges of shorttag fixes and SC#10

commit 7744ea12b0737d2b6db3852b9b1bf0a4563707a4
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 14:09:39 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - clean_param() now handles PARAM_URL

commit 371a2ed0e54805f9384f6846b4a2f5e9983a95f0
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 14:08:06 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - clean_param() now handles PARAM_HOST (old pending merge)

commit 3f1cdd2a31b316574a143901f8f5279167420796
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 14:05:21 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE Importing validateurlsyntax.php from http://www.canowhoopass.com/guides/regex/index.php as of 15/Dec/2004, provides  - validateUrlSyntax()  - validateEmailSyntax()  - validateFtpSyntax()

commit 5e9cd397ea179bbcdba54a1e5b2d4a30c27514f5
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 14:02:47 +0800
Tag:    v1.5.0

file validateurlsyntax.php was initially added on branch MOODLE_14_STABLE.

commit 758b9a4d8035a7584bf79e315d0db3738a487c42
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 13:27:41 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Fixing bug 2334 - where fix_coursesortorder() sometimes leaves overlapping sortorder values across categories

commit acba70d2dbef39ff610c54e3fce29a112d7e6b63
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 25 Jan 2005 13:03:43 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Ensuring correct sortorder at the beginning of the category when creating courses.

commit e069b3e2fe585c4b6185c7d0dc99b6ed61926163
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 22 Jan 2005 17:06:51 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Closing SC#66 - more

commit 1ad9d071c9df913ac635e6a52276155fc0c276b1
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 22 Jan 2005 17:00:42 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Closing SC#66

commit a10171eb3980e9c5ecf1c1d488f9c3f604d38961
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 19 Jan 2005 06:59:41 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE. Issue a warning when overriding $CFG settings.

commit 6ebaf0edcb358a1c2b7ea865cc36a7eca8a833fa
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 18 Jan 2005 05:07:00 +0800
Tag:    v1.5.0

Fixed bogus warnings about empty LDAP contexts.

commit 35de9e2487f33079015cfc3e34719cb5cf9a9e29
Author: martinlanghoff <martinlanghoff>
Date:   Tue, 18 Jan 2005 04:59:17 +0800
Tag:    v1.5.0

Ported from MOODLE_14_STABLE - Show a warning to admins if cron.php hasn't been run

commit d3e6cd798a7f7f4d040cd9b90d4804edf2a603b5
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 17 Jan 2005 13:42:27 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Added an early session_write_close() to loglive.php and log.php pages

commit 39f655953078601f973f368610c49b497fc6bb44
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 13 Jan 2005 10:34:45 +0800
Tag:    v1.5.0

Fix bug #2334 - New unique undes in course table causes course move to fail

commit 27a0c5f6082c16a1f907567d559717421b41c712
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 10 Jan 2005 05:54:48 +0800
Tag:    v1.5.0

Ported from MOODLE_14_STABLE. SC#62 - Prevent database values from overriding $CFG values defined in config.php -- Credits go to Petr Skoda.

commit b3adf3de4ec986b2ed92481d190395ff6974b18b
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 06 Jan 2005 10:07:35 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE - Fixed warning in ipatlas, thanks to Jens Gammelgaard <jens.gammelgaard@optimon.dk>

commit 559027a76c8b62c05dc8bddddf30a342987be9e9
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 05 Jan 2005 06:52:29 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE

commit 301045e4722746cd2149a1f137e7c2f86e18d453
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 23 Dec 2004 06:47:28 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE

commit e35d275e1fc7a78920aa1ec7f9142254d51759db
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 13 Dec 2004 15:38:43 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE

commit a45de11f5b8495030a71c9a8fa3658eb3fcea060
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 13 Dec 2004 14:48:57 +0800
Tag:    v1.5.0

Merge from MOODLE_14_STABLE - Fixed SC#30 - credits go to skodak

commit 1da35f294213062fdf9f968944fdfced0a9c817f
Author: martinlanghoff <martinlanghoff>
Date:   Fri, 26 Nov 2004 08:57:58 +0800
Tag:    v1.5.0

Merge from MOODLE_14_STABLE Fix for bug 2227 "bug in pclzip.php causing scorm errors" http://moodle.org/bugs/bug.php?op=show&bugid=2227

commit 71dcd6c0147b8331324f08bb443b00f2094cf7ca
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 25 Nov 2004 08:02:58 +0800
Tag:    v1.5.0

Merged form MOODLE_14_STABLE Fixed an issue with postgres database upgrade code -- drop either index or constraint if they exist

commit b692d2be05ac5552a56cea1d21161bd53e48ea0e
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 25 Nov 2004 06:48:58 +0800
Tag:    v1.5.0

Merge from MOODLE_14_STABLE

commit 9530c61dbf652de9e934ffe4d85d5002b75a8648
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 24 Nov 2004 11:56:39 +0800
Tag:    v1.5.0

Merge from MOODLE_14_STABLE

commit b110348b711d09451dc83bee1bacda80d7304de6
Author: martinlanghoff <martinlanghoff>
Date:   Wed, 24 Nov 2004 10:25:36 +0800
Tag:    v1.5.0

Merge from MOODLE_14_STABLE.

commit b36a8fc4f5fe613eaba0f8dd670c9ce1bb52d79e
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 22 Nov 2004 15:46:10 +0800
Tag:    v1.5.0

Auth/LDAP

commit 911378628ffe31d5e29939d7120d1feca28fec6b
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 22 Nov 2004 10:58:23 +0800
Tag:    v1.5.0

Fixed typo in index name

commit 64031bbb0f353dec2c4051077dee520ecfb3c65d
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 22 Nov 2004 10:41:41 +0800
Tag:    v1.5.0

Enrol/LDAP - initial commit, a bit rough around the edges.

commit 6e8ca9837e41b9f4b6098f69625c5eec01622f4c
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 22 Nov 2004 10:38:31 +0800
Tag:    v1.5.0

Enrol/LDAP - enrol_student() and add_teacher() now populate the 'enrol' field.

commit 5cd796869e827aaa9f7f02a69a6e772ffeb2a7ae
Author: martinlanghoff <martinlanghoff>
Date:   Mon, 22 Nov 2004 10:36:14 +0800
Tag:    v1.5.0

Enrol/LDAP - DB Patches + version bump

commit c95aa089a846dcabe8b3c65802d101d5ca0733e6
Author: martinlanghoff <martinlanghoff>
Date:   Sat, 20 Nov 2004 18:38:43 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE: Fixing handling of empty memory_limit for PHP without memory_limit (mostly Windows binaries)

commit bce71973219edf3d3b940a64dbeb55b8ce7fd5ce
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 18 Nov 2004 10:55:06 +0800
Tag:    v1.5.0

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

commit 0c3e818cb1439314924b536cdeb671c0a44b24e2
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 18 Nov 2004 10:47:02 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-321  Fixed bug in user search: now we trim() the search string

commit 2b49ae96a6e4ef823c0fb3b58e15d7d774196b33
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 18 Nov 2004 10:37:52 +0800
Tag:    v1.5.0

Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-305 - Postgres SQL bugfix for instance_is_visible()

commit 6315b1c8b66d23539564fec456a30fa2c2cf2ab3
Author: martinlanghoff <martinlanghoff>
Date:   Thu, 18 Nov 2004 10:31:53 +0800
Tag:    v1.5.0

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