server/apps/files_encryption/appinfo/app.php

33 lines
940 B
PHP
Raw Normal View History

2011-10-21 15:02:11 +00: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\Encryption\Proxy());
2011-10-21 15:02:11 +00:00
// User related hooks
OCA\Encryption\Helper::registerUserHooks();
2011-10-21 15:02:11 +00:00
// Sharing related hooks
OCA\Encryption\Helper::registerShareHooks();
// Filesystem related hooks
OCA\Encryption\Helper::registerFilesystemHooks();
2013-04-27 18:18:05 +00:00
// App manager related hooks
OCA\Encryption\Helper::registerAppHooks();
if(!in_array('crypt', stream_get_wrappers())) {
stream_wrapper_register('crypt', 'OCA\Encryption\Stream');
}
} else {
// logout user if we are in maintenance to force re-login
OCP\User::logout();
2013-05-15 12:32:50 +00:00
}
2013-02-09 17:01:38 +00:00
// Register settings scripts
2013-05-27 15:26:58 +00:00
OCP\App::registerAdmin('files_encryption', 'settings-admin');
OCP\App::registerPersonal('files_encryption', 'settings-personal');