39 Commits

Author SHA1 Message Date
peterbulmer
d3080510e4 MDL19219 mnet, mitigate arrkey loss in transit
When usernames are numeric, they are lost in mnet transit when used as
keys in the array result of course_enrolments(). As the username is not
sent with the enrolment details, it was not previously recoverable.
This patch adds the information to the enrolment details,
(enrol/mnet/enrol.php), and adds support for recovering the username if
it was numeric (and hence lost) (admin/mnet/enr_course_enrol.php)
2009-05-18 02:38:02 +00:00
peterbulmer
a67a5531c6 MDL-18414 change sql query syntax
Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-04-06 06:15:58 +00:00
peterbulmer
11b9852e4e MDL-18413 limit coursedata strings before db
Conflicts:

	enrol/mnet/enrol.php


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-04-06 06:15:00 +00:00
scyrma
b7f2b8e644 MDL-15403: Patch sent by Peter Bulmer, said to have been written by Donal McMullan. Prevents a remotely-triggered mass-unenrolments of users in a
(mnet-enabled) course. (merge from 1.9)
2008-07-09 09:10:09 +00:00
skodak
50c5bef452 MDL-14679 towards enrol conversion 2008-06-02 21:02:52 +00:00
dongsheng
f945d59b8f "MDL-14129, fix print_error calls" 2008-05-07 06:19:59 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
donal72
254f0c073a Initialize the $message variable properly this time. 2007-11-01 21:30:37 +00:00
donal72
970dc3660d Revert: Initialize the $message variable 2007-11-01 21:28:08 +00:00
donal72
d576d0402c Initialize the $message variable 2007-11-01 05:06:26 +00:00
donal72
22f9befe82 MDL-11329: fixed text: "Local courses for external users:" 2007-10-16 09:15:02 +00:00
skodak
128f098418 MDL-11640
* improved handling of dirty contexts in general - caching, switching in cron, marking, loading, etc.
* role_assing() and role_unassign() now marks dirty contexts because we use has_capability() in this function - we can not do it later outside to speedup bulk operations
* fixed some inline docs
* fixed notice from rs closing
* removed cached $CONTEXT from has_capability() - $context is now required parameter; this was hiding serious bugs when context did not exist or ppl passed false as parameter
* removed some ===, we can not use these on function parameters - we must support ints, strings, '', nulls, etc. - this could be a source of really dangerous bugs in future
* some other improvements and fixes - documented inline
2007-10-09 12:49:54 +00:00
martinlanghoff
f055618837 enrol/mnet: mark context as dirty after unenrol
So the unenrolment is effective immediately.
2007-09-19 07:12:10 +00:00
skodak
1ae083e424 MDL-9647 simplify dealing with headers/footers in admin sections 2007-04-30 17:08:34 +00:00
moodler
6ba65fa08d Merged Nicolas' changes from MDL-8582 into HEAD. 2007-02-28 06:25:22 +00:00
toyomoyo
537ea84763 MDL-8290, fix for broken plugins 2007-02-09 07:47:14 +00:00
donal72
e6976ae1f6 MNet: More error tracking updates 2007-02-07 14:11:22 +00:00
donal72
d452439a08 MNet: Standardise format of the mnet_client->error array 2007-02-07 12:43:08 +00:00
martinlanghoff
ccb60df832 enrol/mnet: list_remote_servers() should only list servers we use enrolment for 2007-01-19 04:26:09 +00:00
martinlanghoff
e395caaa84 enrol/mnet: fixes around fetch_remote_courses() and available_courses
- ensure addslashes() affects data that goes to the database, not HTML
 - ensure we return defaultrolename from avaiable_courses
 - clear some leftover debug statements
2007-01-19 02:43:11 +00:00
donal72
0855c4cab3 Mnet: More enrolment data in the back channel - stash in mnet_enrol_assignments table 2007-01-19 00:23:55 +00:00
martinlanghoff
a298f31145 mnet: clear out debug msg 2007-01-18 04:39:41 +00:00
martinlanghoff
7580ce94ef mnet: check for the _right_ varname before warning about mnet being off 2007-01-18 03:16:55 +00:00
martinlanghoff
79b84c93fb enrol/mnet: list_remote_servers() must always return an array 2007-01-18 03:16:09 +00:00
martinlanghoff
47c0407b97 mnet: moving remote enrolment config to admin/mnet 2007-01-17 23:49:04 +00:00
martinlanghoff
9b0633ac3d enrol/mnet: fix a warning, do not list the sitecourse 2007-01-17 23:12:15 +00:00
donal72
68ea70b45f Mnet: enrol/mnet: Return enrol plugin type with list of enrolled users 2007-01-17 23:03:18 +00:00
martinlanghoff
92e46c0305 mnet: better descriptions and warnings in admin pages 2007-01-17 22:23:56 +00:00
donal72
5291907c45 Mnet: Show non-mnet enrolments in the mnet/enrolment page 2007-01-17 12:12:11 +00:00
donal72
1f4ca9aff5 mnet: Replace a hardcoded string: MDL-8069 2007-01-10 00:32:42 +00:00
donal72
9274112148 mnet: XHTML strict fixes: MDL-7861 2007-01-10 00:31:43 +00:00
donal72
9dfe778f6c mnet: enrol/mnet/allowed_courses: Stylefix - if( to if ( 2007-01-09 04:24:18 +00:00
donal72
0d098fbb65 mnet: enrol/mnet/allowed_courses: Removed PHP5.1+ functions 2007-01-09 03:55:40 +00:00
donal72
d25942e7ce mnet: enrol/mnet/remote_courses.php XHTML strict fix: MDL-7861 2007-01-09 02:31:22 +00:00
donal72
9feaec8f79 mnet: enrol/mnet/allowed_courses: XHTML strict fixes: MDL-7861 2007-01-09 01:51:12 +00:00
donal72
9953ee10d6 mnet: enrol/mnet/config.html XHTML strict fixes: MDL-7861 2007-01-09 01:32:31 +00:00
skodak
7150226896 MDL-7861 xhtml strict fixes - fixed all <br> in our code 2007-01-04 23:38:17 +00:00
skodak
b7dc225654 MDL-8062 1.3 Remove name attribute from <form> and fix focus everywhere - more changes ahead 2007-01-04 21:32:36 +00:00
martinlanghoff
bf1a3d2010 mnet: new enrolment plugin 2007-01-04 03:05:48 +00:00