mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
mnet: check for openssl extension
This commit is contained in:
parent
b763d139b4
commit
1734e61a41
@ -14,6 +14,11 @@ $action = trim(strtolower(optional_param('action', '', PARAM_ALPHA)));
|
||||
|
||||
require_login();
|
||||
$adminroot = admin_get_root();
|
||||
|
||||
if (!extension_loaded('openssl')) {
|
||||
error(get_string('requiresopenssl', 'mnet'));
|
||||
}
|
||||
|
||||
admin_externalpage_setup('ssoaccesscontrol', $adminroot);
|
||||
admin_externalpage_print_header($adminroot);
|
||||
|
||||
|
@ -22,6 +22,10 @@
|
||||
error('PHP Curl library is not installed');
|
||||
}
|
||||
|
||||
if (!extension_loaded('openssl')) {
|
||||
error(get_string('requiresopenssl', 'mnet'));
|
||||
}
|
||||
|
||||
if (!isset($CFG->mnet_dispatcher_mode)) set_config('mnet_dispatcher_mode', 'off');
|
||||
|
||||
/// If data submitted, process and store
|
||||
|
@ -22,6 +22,10 @@ if (!function_exists('curl_init') ) {
|
||||
error('PHP Curl library is not installed');
|
||||
}
|
||||
|
||||
if (!extension_loaded('openssl')) {
|
||||
error(get_string('requiresopenssl', 'mnet'));
|
||||
}
|
||||
|
||||
/// Initialize variables.
|
||||
|
||||
// Step must be one of:
|
||||
|
@ -17,6 +17,10 @@
|
||||
error('Site isn\'t defined!');
|
||||
}
|
||||
|
||||
if (!extension_loaded('openssl')) {
|
||||
error(get_string('requiresopenssl', 'mnet'));
|
||||
}
|
||||
|
||||
$trusted_hosts = '';//array();
|
||||
$old_trusted_hosts = get_config('mnet', 'mnet_trusted_hosts');
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
$string['description'] = 'Description';
|
||||
$string['mnet'] = 'Moodle Networking';
|
||||
$string['net'] = 'Networking';
|
||||
$string['requiresopenssl'] = 'Networking requires the OpenSSL extension';
|
||||
$string['yourhost'] = 'Your Host';
|
||||
$string['yourpeers'] = 'Your Peers';
|
||||
$string['settings'] = 'Settings';
|
||||
|
Loading…
x
Reference in New Issue
Block a user