214 Commits

Author SHA1 Message Date
Paul Holden
0c69ff1dd1
MDL-77193 mnet: correct sorting of access control table. 2023-06-07 09:53:01 +08:00
Meirza
e95540d9ff MDL-77341 mnet: Added missing class properties
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-20 21:37:01 +07:00
Meirza
883c1becc5 MDL-76116 mnet: styling the delete key confirmation window properly 2022-12-07 11:14:05 +07:00
Jun Pataleta
da21308a7b Merge branch 'MDL-63037-master' of https://github.com/snake/moodle 2022-11-11 10:42:27 +08:00
Eloy Lafuente (stronk7)
621d75dbce MDL-76053 admin: Remove various warnings related to MNet
This partially reverts MDL-73270, where some useful environmental
checks and notifications in the admin UI were added to inform
about different parts of Moodle relying on the "unsupported"
php-xmlrpc extension.

Since then, some changes have happened in core, only available
for Moodle 4.1 and up (see the MDL-70889 mini-epic). Namely:

  - MNet (SSO, roaming, auth, enrol and Mahara portfolio) are not
    using the php-xmlrpc extension anymore, but a pure php library.
  - The xmlrpc webservices protocol, has been move from core to
    the plugins directory, although it continues using the php-xmlrpc
    extension.

Because of that here we are removing all the checks and notifications
related with MNet (not using the extension anymore), but keeping the
webservice plugin ones (still using the extension). Surely if some day the
protocol stops using the extension, we'll be able to remove the
corresponding checks too. But that's future.

Note the associated lang strings have been also removed (not deprecated)
because they were highly specific and hardly reusable:
  - xmlrpcmaharaenabled
  - xmlrpcmnetauthenticationenabled
  - xmlrpcmnetenabled

And very same applies, because MNet doesn't contain anything deprecated
or not supported anymore, hence, straight deletion, to the function:
  - mnet_get_deprecation_notice()

Also, related tests using any of the removed stuff above have been deleted.

In the other side, the "check_xmlrpc_usage" continues existing and
being used both by environment checks and admin notifications but,
as commented above, now it only looks for the xmlrpc webservice
protocol now.
2022-11-08 16:49:18 +01:00
Jake Dallimore
d2dd970b19 MDL-63037 mnet: fix hostexists string usage 2022-11-08 17:01:40 +08:00
Eloy Lafuente (stronk7)
73bc677346 MDL-76055 mnet: Switch the keyswap to use the library
This service is different from the rest because it
doesn't run encrypted, but plain xmlrpc. Hence, we
cannot use the normal mnet_xmlrpc_client (that provides
on-the-fly encryption and signing).

So, instead, let's instantiate a custom client here
and use it for this pure xmlrpc request and response.

PS: It's curious that this exact sevice has support
for proxies but the mnet_xmlrpc_client one has not. I'm not
going to modify that here, but have left a comment
in the code about that.

PS: Some small style changes have been applied around
the modified code (spacing, &&, comments...)
2022-11-02 15:56:38 +01:00
Sujith Haridasan
73d604369d MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
Huong Nguyen
683375af8b MDL-73270 admin: Warn about xmlrpc webservice protocol enabled
Co-authored-by: Andrew Lyons <andrew@nicols.co.uk>
2022-01-28 09:32:08 +07:00
Bas Brands
579ca95f1d MDL-66999 theme_boost: @extend replace .alert
use bs4 .alert .alert-type classes instead of extending .alert
2019-12-09 10:49:39 +01:00
Brendan Heywood
1fc0c4bd4e MDL-58439 admin: Ignore guest logins for all admin pages 2019-06-11 13:44:58 +10:00
Charles YVANES
458453cee0 MDL-29895 core: removed require_login() when not needed 2018-09-10 11:22:50 +02:00
Damyon Wiese
663640f5b3 MDL-40759 icons: convert uses of pix_url to pix_icon
Also change filepicker to use scaled svgs instead of sets of custom pngs. The svgs are taken from font-awesome.
2017-03-17 15:52:17 +08:00
Adam Olley
4bd8e65273 MDL-53945 mnet: Use moodle_url to provide string with url
Using moodle_url where possible is preferable to hardcoding uri's as
moodle_url is able to take care of alot of the formatting for us.

In this instance, it handles the $CFG->admin url path for us.
2016-11-04 09:10:31 +10:30
Adam Olley
20ec56504f MDL-53945 mnet: replace hardcoded admin dir with cfg
Several places in admin/mnet pull in required files using a hardcoded
admin dir string, as this is configurable it needs to use $CFG->admin
instead.

Places where the url is passed through moodle_url don't need to be
updated as that already automatically translates the urls for us.
2016-11-03 11:12:32 +10:30
Russell Smith
1fcf0ca8a5 MDL-35628 performance: Remove dirname() where possible.
dirname() is a slow function compared with __DIR__ and using
'/../'.  Moodle has a large number of legacy files that are included
each time a page loads and is not able to use an autoloader as it is
functional code.  This allows those required includes to perform as
best as possible in this situation.
2016-06-10 08:06:49 +10:00
Frederic Massart
93539c44dc MDL-18183 mnet: Option to verify peer and host of MNet peer using HTTPS 2014-11-21 11:33:16 +08:00
Adrian Greeve
1899519c6b MDL-39888 mnet: Removed tab and links to the log report.
The link would include parameters which generates warnings
on the log report page.
2014-08-26 15:11:56 +08:00
Damyon Wiese
a084ac0db4 MDL-46045 Fix php tags (lowercase) everywhere 2014-06-19 11:05:16 +08:00
Eloy Lafuente (stronk7)
200fcba737 Merge branch 'MDL-43142_master' of https://github.com/markn86/moodle 2013-12-03 23:40:19 +01:00
Mark Nelson
67bfaaf0dd MDL-43140 mnet: display header after redirects to avoid warning 2013-11-29 14:25:45 -08:00
Mark Nelson
f9b4143a8e MDL-43142 mnet: fixed typo in variable passed to get_string 2013-11-29 14:15:07 -08:00
Petr Škoda
2f1e464a88 MDL-40438 migrate all collatorlib:: and textlib:: uses 2013-08-06 21:04:35 +02:00
Petr Škoda
bd3b3bba9f MDL-40220 use new core_component::get_plugin_list() 2013-07-16 22:36:11 +02:00
Rossiani Wijaya
c71d9297a6 MDL-39362 Admin: fixed setType() error for networking 2013-04-29 11:59:48 +08:00
Mary Evans
01e34f156a MDL-37591 admin/mnet: replaced generalbox class with generaltable 2013-01-20 21:52:09 +00:00
Rossiani Wijaya
aa414527a4 MDL-34552 accessibility compliance for admin: Add forform input text and select tag 2012-07-31 16:31:47 +08:00
Frederic Massart
bf006d2c15 MDL-34455 Libraries: Replaced deprecated get_context_instance() 2012-07-23 14:33:02 +08:00
Petr Škoda
f5bd1603e2 MDL-34175 one more hardcoded /admin/ in mnet 2012-07-11 08:47:26 +02:00
Andrew Robert Nicols
8219502369 MDL-32454 Fix issues highlighted by strict warnings in MNet code 2012-04-16 09:34:41 +01:00
Sam Hemelryk
3211569a6a Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag"
This reverts commit f9f281b8fee75c2416d71bae7583fd026b9ccabb.
2012-04-11 17:18:58 +12:00
Rossiani Wijaya
f9f281b8fe MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag 2012-03-30 16:26:58 +08:00
Petr Skoda
f20edd5208 MDL-32094 fix various E_STRICT compatibility problems 2012-03-18 18:37:24 +01:00
Petr Skoda
6f3451e540 MDL-31301 remove all uses of moodle_strtolower() and deprecated it 2012-03-03 11:46:26 +01:00
Sam Hemelryk
4460312d08 MDL-25299 mnet: Fixed validation when no public key is provided 2012-02-17 16:47:15 +13:00
David Mudrak
1322a56df3 MDL-30170 MNet peers administration - various usability improvements
While fixing MDL-30170, the following tiny usability details were
improved along the way:

* the maximum length of the peer site title and the hostname is now
  validated (this was actually a real bug as the default value is pre-loaded
  from the peer) so the admin gets a nice validation error instead of
  the database write exception when trying to register a host with a
  longer site title.
* hard-coded English string 'All Hosts' is now localized
* the hostname link in the list of MNet peers leads to the peer itself
2011-12-15 21:51:33 +01:00
David Mudrak
8a6f2291f2 MDL-30170 MNet peers administration - highlight the undelete widget
The patch highlights the undelete radio selector at the host edit form.
It moves it to the end of the form (near the submit button) and displays
an explanation above the radio selector.

Also, the list of deleted hosts is now displayed below the table of
active peers at the Manage peers page.

The data returned by mnet_get_hosts() function now contain the deleted
status, too. It is possible to obtain deleted hosts from that function
now.
2011-12-15 21:51:31 +01:00
Petr Skoda
ba50bd3d63 MDL-29030 fix remaining report linking hacks
Please note all plugin references from core should use callbacks, it is not ok to use capabilities or links to plugins because they may not be present in customised installs.
2011-11-06 12:22:50 +01:00
David Mudrak
800bd78548 MDL-25647 mnet: fixed checkbox handling at peer services form
We must use advcheckbox here so that unticked checkbox is considered as
0 and not as not-submitted in this case.
2010-12-20 16:58:25 +01:00
Petr Skoda
ca0e65cb6f removing forbidden attributes 2010-09-17 10:33:40 +00:00
Petr Skoda
f9b9913ebc removing center tag - not xhtml strict 2010-09-17 10:32:42 +00:00
Petr Skoda
d078f6d38e standardized PHPDocs package info 2010-09-06 11:29:21 +00:00
David Mudrak
30bee9ef40 MDL-23460 MNet Reverted recent removal of per-peer profile field setting 2010-07-23 08:10:23 +00:00
David Mudrak
eca44f56bd MDL-21695 Removing commented code 2010-07-19 17:28:48 +00:00
David Mudrak
f0ca285077 NOMDL MNet removing obsolete files, has been replaced by admin setting section mnetprofilefields 2010-07-19 17:01:07 +00:00
David Mudrak
ec2c36f872 NOMDL MNet language pack cleanup: getting rid of Moodle Networking (replaced with MNet) and Camel Case in titles 2010-07-19 14:49:12 +00:00
David Mudrak
8123245f7b NOMDL MNet fixed peer review form data processing 2010-07-17 22:34:56 +00:00
David Mudrak
152a2273be MDL-22787 MNet: Fixing regressions in auth_mnet caused by changes in enrol_mnet
This smells - IMHO auth_enrol should not do anything with the enrolment
related information. These two plugins seem to be tied too much...
2010-07-17 22:34:12 +00:00
David Mudrak
8ed6e35c7a MDL-22787 MNet enrolment: Removing legacy client side scripts and their strings 2010-07-17 22:33:31 +00:00
David Mudrak
94cf0a1e56 MDL-23245 Fixed plugin type of auth_mnet in config_plugins table 2010-07-13 11:14:29 +00:00