'root' => '&Root',
'secure' => '!Secure ftps://'));
- $backends['\OC\Files\Storage\Google']=array(
+ if(OC_Mount_Config::checkcurl()) $backends['\OC\Files\Storage\Google']=array(
'backend' => 'Google Drive',
'configuration' => array(
'configured' => '#configured',
'share' => 'Share',
'root' => '&Root'));
- $backends['\OC\Files\Storage\DAV']=array(
+ if(OC_Mount_Config::checkcurl()) $backends['\OC\Files\Storage\DAV']=array(
'backend' => 'ownCloud / WebDAV',
'configuration' => array(
'host' => 'URL',
}
}
+ /**
+ * check if curl is installed
+ */
+ public static function checkcurl() {
+ return (function_exists('curl_init'));
+ }
+
/**
* check dependencies
*/
if(!OC_Mount_Config::checkphpftp()) {
$txt.=$l->t('<b>Warning:</b> The FTP support in PHP is not enabled or installed. Mounting of FTP shares is not possible. Please ask your system administrator to install it.').'<br />';
}
+ if(!OC_Mount_Config::checkcurl()) {
+ $txt.=$l->t('<b>Warning:</b> The Curl support in PHP is not enabled or installed. Mounting of ownCloud / WebDAV or GoogleDrive is not possible. Please ask your system administrator to install it.').'<br />';
+ }
return($txt);
}