|
|
@ -39,10 +39,10 @@ class Hooks { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static function login($params) { |
|
|
|
public static function login($params) { |
|
|
|
$l = new \OC_L10N('files_encryption'); |
|
|
|
$l = new \OC_L10N('files_encryption'); |
|
|
|
//check if openssl is available |
|
|
|
//check if all requirements are met |
|
|
|
if(!extension_loaded("openssl") ) { |
|
|
|
if(!Helper::checkRequirements() ) { |
|
|
|
$error_msg = $l->t("PHP module OpenSSL is not installed."); |
|
|
|
$error_msg = $l->t("Missing requirements."); |
|
|
|
$hint = $l->t('Please ask your server administrator to install the module. For now the encryption app was disabled.'); |
|
|
|
$hint = $l->t('Please make sure that the OpenSSL module and PHP >0 5.3.3 is installed. For now the encryption app was disabled.'); |
|
|
|
\OC_App::disable('files_encryption'); |
|
|
|
\OC_App::disable('files_encryption'); |
|
|
|
\OCP\Util::writeLog('Encryption library', $error_msg . ' ' . $hint, \OCP\Util::ERROR); |
|
|
|
\OCP\Util::writeLog('Encryption library', $error_msg . ' ' . $hint, \OCP\Util::ERROR); |
|
|
|
\OCP\Template::printErrorPage($error_msg, $hint); |
|
|
|
\OCP\Template::printErrorPage($error_msg, $hint); |
|
|
|