181 Commits

Author SHA1 Message Date
Sam Hemelryk
48b01a217c MDL-26061 Revised new string before integration. 2011-01-24 11:37:29 +08:00
David Mudrak
d47b972fa9 MDL-26061 Prevent fatal error in remote enrolment client when there are no roaming users 2011-01-19 19:39:19 +01:00
Petr Skoda
a477c0da6e Merge branch 'MDL-25980-mnet_remote_enrolment' of git://github.com/mudrd8mz/moodle 2011-01-17 19:01:02 +01:00
David Mudrak
538dcf896c NOMDL MNet remote enrolment client: display a button to go back to the course selection
Without this button, the user has to go through the admin menu again,
selecting the same host. This improves the usability when enrolling
local users to multiple remote courses.
2011-01-14 12:53:01 +01:00
David Mudrak
34685a5992 MDL-25980 MNet: missing remotecourseid parameter in SQL clearing stale cache records
Because the remotecourseid parameter was missing in SQL, all cache
records for other courses from that host were cleared.
2011-01-14 11:31:57 +01:00
David Mudrak
4841fda1bc NOMDL MNet: Fixed incorrect remote course ID passed
The param is deprecated anyway, it had to be blindly copied from a
legacy code.
2011-01-14 11:31:26 +01:00
Petr Skoda
8a7703ce53 MDL-25973 add missing charset 2011-01-14 09:32:17 +01:00
David Mudrak
4b457a71cc MDL-25369 mnet: do not show deleted peers in the remote enrolment client 2010-12-01 10:00:18 +00:00
David Mudrak
82c3f5d848 Do not record encrypted XML-RPC responses in error_log
Such an information is not readable anyway and it make debugging
actually harder. If somebody needs it, they can uncomment the line.
2010-11-26 09:20:28 +00:00
David Mudrak
35d76df31d MDL-25367 user images are sent a received over MNet during SSO again 2010-11-26 09:19:55 +00:00
David Mudrak
13b78fda00 Profile fields to be synced via MNet now respect the 'use defaults' option 2010-11-26 09:19:44 +00:00
David Mudrak
d82d272037 NOMDL MNet: fixed incorrect usage of get_record() in permission_to_call()
When $CFG->mnet_all_hosts_id was set, the get_record() returned multiply
records and produced warnings. Also, get_record_sql() == true was just
ugly.
2010-11-09 15:38:50 +00:00
Sam Hemelryk
367a75fae4 themes lib MDL-24895 Multiple fixes to better handle overflow.
Major tasks undertaken in this patch:
* New format_text argument, overflowdiv.
* New page layout Report.
* Review of all format_text calls.
* Added support for the report layout to all themes.
* Changed forum post display from tables to divs.
2010-11-05 02:53:47 +00:00
David Mudrak
841ec10375 MDL-24607 mnet: fixed filelib inclusion before it is used 2010-10-11 12:19:04 +00:00
Petr Skoda
81322e6483 fixed integer casting syntax error 2010-09-17 19:42:31 +00:00
Petr Skoda
a9637e7df4 MDL-14679 fixed a lot more old style uses of insert_record() 2010-09-03 17:47:41 +00:00
Petr Skoda
b3df176457 MDL-23927 do not use = 'guest' because we have CFG->siteguest AND it matches any other username with accents and different case in MySQL 2010-08-25 08:56:07 +00:00
David Mudrak
4378e6a2ff MDL-23600 MNet: do not rely on existing user record with ID 1 2010-08-08 10:58:38 +00:00
David Mudrak
23125e3fe2 MDL-22787 Fixed incorrect CSS selectors, I forgot about the plugin scope needed 2010-07-19 12:39:17 +00:00
David Mudrak
053c49d1c9 MDL-22787 Bumping versions of MNet enrol related plugins to force xml-rpc methods re-registration 2010-07-17 22:36:21 +00:00
David Mudrak
c24cf44291 MDL-22787 MNet: Finished client side of remote enrolment service 2010-07-17 22:35:18 +00:00
David Mudrak
54f6978168 MDL-22787 MNet: Fixed remaining usage of dropped mnet_enrol_assignments table 2010-07-17 22:34:35 +00:00
David Mudrak
ef75ea6c1c MDL-22787 MNet: displays our users enrolled by other plugin, too, XML-RPC fetching improved
AMOS BEGIN
 MOV [otherenrolledusers,core_mnet],[otherenrolledusers,mnetservice_enrol]
AMOS END
2010-07-17 22:32:55 +00:00
David Mudrak
26f194d264 MDL-22787 MNet: WIP prototype of the remote enrolment page based on user selectors 2010-07-17 22:32:35 +00:00
David Mudrak
a722e4912e MDL-22787 MNet improved page url handling in Remote enrolments client 2010-07-17 22:32:15 +00:00
David Mudrak
3ce65bfd70 MDL-22787 MNet: fetch the information about remote enrolments of our users (work in progress) 2010-07-17 22:31:32 +00:00
David Mudrak
de5a205c5f MDL-22787 Various fixes of MNet remote enrolment service client 2010-07-17 22:30:44 +00:00
David Mudrak
481f0e154b MDL-22787 The screen with available courses on a remote host in Remote enrolment client
This commit introduces two new tables that replace legacy mnet_enrol_*
ones. These two tables are used for caching of XML-RPC responses.
2010-07-17 22:18:55 +00:00
David Mudrak
53d15f925b NOMDL MNet improved debugging - do not not call get_string() for non-localized error messages 2010-07-17 22:18:20 +00:00
David Mudrak
fe73e93545 MDL-22787 MDL-21993 New mnetservice plugin type
This commit introduces new plugin type called mnetservice. Once the MNet
framework is redesigned, this plugin will define the service itself, the
strings for it and the the client tools for administrator. The server
side is implemented mainly in enrol_mnet plugin which publishes xml-rpc
methods.

AMOS BEGIN
 MOV [remoteenrolhosts_desc,core_mnet],[clientname_help,mnetservice_enrol]
AMOS END
2010-07-17 22:18:07 +00:00
Dan Marsden
2c0b7ba20e MNET MDL-23001 bad use of get_config causing mnet SSO fail. 2010-06-30 02:08:35 +00:00
Penny Leach
d234faf3a4 mnet MDL-22267 updated mnet_server_faultand mnet_server_exception string handling
This is so that mnet_server_fault doesn't have to call get_string (in
case of coding exception)
2010-05-01 15:53:45 +00:00
Petr Skoda
29218f369e MDL-22060 fixed $a in string to match new rules
AMOS START
 REM fixed $a[] in [deleteuserrecord,core_mnet]
 REM fixed $a[] in [enrollingincourse,core_mnet]
 REM fixed $a[] in [noipmatch,core_mnet]
 REM fixed $a[] in [nonmatchingcert,core_mnet]
 REM fixed $a[] in [ssl_acl_allow,core_mnet]
 REM fixed $a[] in [ssl_acl_deny,core_mnet]
AMOS END
2010-04-11 17:08:08 +00:00
Petr Skoda
ae58632885 MDL-22053 removing relative paths from get_plugin|component_directory() because we can be only sure that the absolute paths exists such as in case of $CFG->themedir outside of dirroot; commeting out some simpletes_ stuff which does not seem to be used any more 2010-04-10 23:21:18 +00:00
Penny Leach
8fb18ca939 mnet MDL-21692 print an error when we can't contact the host when adding a new peer 2010-02-23 10:09:32 +00:00
Penny Leach
fd1972490e mnet MDL-14117 truncate values in $dn to the RFC 3280 lengths when making new mnet keys
merged from MOODLE_19_STABLE
2010-02-18 03:11:51 +00:00
Penny Leach
f867d2aa77 mnet NOBUG added some phpdocs 2010-02-17 01:37:55 +00:00
Penny Leach
fc363065cb mnet MDL-21582 fixing notices 2010-02-16 02:37:42 +00:00
Penny Leach
61506902f3 mnet MDL-20660 allow admins to configure fields to be sent over mnet 2010-02-16 02:05:30 +00:00
jerome mouneyrac
c044e281b5 mnet MDL-21582 fix empty mnet debug variable that display a notice on the peer services page 2010-02-11 08:20:27 +00:00
Penny Leach
d36fa8159b mnet MDL-21256 reworked some more of admin/mnet to use forms and new output stuff 2010-02-11 02:50:28 +00:00
Penny Leach
96bd292127 mnet MDL-21256 & the start of a proper fix for MDL-20660
Unfortunately these are tangled up together a bit
2010-02-11 02:49:11 +00:00
Penny Leach
71f61c41f3 mnet MDL-15505 added new mnet_debug function and started migrating to it 2010-02-05 03:56:45 +00:00
Penny Leach
48fb39411f mnet MDL-21098 small fixes - ss out issue and edge case simultaneous keyswap loop 2010-02-05 03:56:22 +00:00
Penny Leach
287efec6f6 mnet MDL-21276 get rid of all the $MNET* globals 2010-02-02 03:13:40 +00:00
Penny Leach
cd8f1cf656 mnet MDL-16858 verify the signature in the xmlrpc response 2010-02-02 02:13:25 +00:00
Penny Leach
5f27814116 mnet MDL-21473 xmlrpc client should check in the remote_ rpc tables 2010-01-29 02:59:27 +00:00
Penny Leach
8586dbe2a5 mnet MDL-21473 make new tables for remote functions that don't exist locally
I also fixed up two columns in the existing table that had underscores in them
2010-01-28 22:46:34 +00:00
Penny Leach
d2ac37c1ab mnet MDL-21261 mnet overhaul - adding and removing files I missed in the last big commit 2010-01-28 20:17:12 +00:00
Penny Leach
de260e0f7b mnet MDL-21261 large overhaul. This commit changes:
- The way that mnet rpc functions are registered.  Plugins must now
  create db/mnet.php which is an array, similar to services.php.  This
  *replaces* the old mnet_publishes() functions.  version.php must be
  bumped to trigger this.

- More information about each rpc-available function is stored in the
  database, including the class it belongs to, the file it is found in,
  and whether or not it is static.  Methods that are not static must be
  in a class with a constructor that takes no arguments (this can easily
  be achieved with a small wrapper if necessary)

- The xmlrpc dispatcher has been rewritten to remove all the
  dependencies on hardcoded information about auth,mnet,portfolio and
  repository, and just use the information in the database.

- The old hardcoded hidden mnet/testclient.php has been moved to the
  Admin menu under "Development" and rewritten.

- The xmlrpc introspection method profiling is now using php and zend
  reflection - which is a lot nicer than the old way, which was using a
  php-based php parser.  This fixes some inconsistent handling of
  methods without arguments that were advertising their return value as
  the only method parameter.  While this is a *fix*, it breaks BC
  slightly - the old 1.9 broken mnet/testclient.php will now not work
  properly with 2.0

- Dangerous mode is still supported, but old mod/*/rpclib.php is
  now unsupported, due to the fact that any plugin can export mnet
  functions with db/mnet.php.  This is a slight BC break.

Still TODO:

- TEST TEST TEST
- Document the two small BC breaks in release notes
- Document the contract for db/mnet.php
2010-01-28 05:25:50 +00:00