mnet: check for openssl extension

This commit is contained in:
martinlanghoff 2007-01-04 06:19:56 +00:00
parent b763d139b4
commit 1734e61a41
5 changed files with 18 additions and 0 deletions

View File

@ -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);

View File

@ -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

View File

@ -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:

View File

@ -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');

View File

@ -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';