nextcloud/apps/files_encryption/appinfo/app.php

33 lines
976 B
PHP
Raw Normal View History

2011-10-21 19:02:11 +04:00
<?php
\OCP\Util::addTranslations('files_encryption');
\OCP\Util::addscript('files_encryption', 'encryption');
\OCP\Util::addscript('files_encryption', 'detect-migration');
if (!OC_Config::getValue('maintenance', false)) {
OC_FileProxy::register(new OCA\Files_Encryption\Proxy());
2011-10-21 19:02:11 +04:00
// User related hooks
OCA\Files_Encryption\Helper::registerUserHooks();
2011-10-21 19:02:11 +04:00
// Sharing related hooks
OCA\Files_Encryption\Helper::registerShareHooks();
// Filesystem related hooks
OCA\Files_Encryption\Helper::registerFilesystemHooks();
2013-04-27 22:18:05 +04:00
// App manager related hooks
OCA\Files_Encryption\Helper::registerAppHooks();
if(!in_array('crypt', stream_get_wrappers())) {
stream_wrapper_register('crypt', 'OCA\Files_Encryption\Stream');
}
} else {
// logout user if we are in maintenance to force re-login
OCP\User::logout();
2013-05-15 16:32:50 +04:00
}
2013-02-09 21:01:38 +04:00
// Register settings scripts
2013-05-27 19:26:58 +04:00
OCP\App::registerAdmin('files_encryption', 'settings-admin');
OCP\App::registerPersonal('files_encryption', 'settings-personal');