}
$testurl = $datarooturl.'/diag/public.txt';
-
- if (extension_loaded('curl') and ($ch = @curl_init($testurl)) !== false) {
+ if (extension_loaded('curl') and
+ !(stripos(ini_get('disable_functions'), 'curl_init') !== FALSE) and
+ !(stripos(ini_get('disable_functions'), 'curl_setop') !== FALSE) and
+ ($ch = @curl_init($testurl)) !== false) {
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
$data = curl_exec($ch);
}
$output .= print_table($table, true);
$instancehtml = '<div><h3>';
- $addable = 0;
$instancehtml .= get_string('addplugin', 'repository');
$instancehtml .= '</h3><ul>';
$addable = 0;