2012-03-30 16:10:16 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2012 Robin Appelman <icewind@owncloud.com>
|
2014-03-21 14:22:48 +00:00
|
|
|
* Copyright (c) 2014 Robin McCorkell <rmccorkell@karoshi.org.uk>
|
2012-03-30 16:10:16 +00:00
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
|
|
|
|
2013-03-02 11:12:33 +00:00
|
|
|
OC::$CLASSPATH['OC\Files\Storage\StreamWrapper'] = 'files_external/lib/streamwrapper.php';
|
|
|
|
OC::$CLASSPATH['OC\Files\Storage\FTP'] = 'files_external/lib/ftp.php';
|
|
|
|
OC::$CLASSPATH['OC\Files\Storage\DAV'] = 'files_external/lib/webdav.php';
|
2013-10-09 14:54:36 +00:00
|
|
|
OC::$CLASSPATH['OC\Files\Storage\OwnCloud'] = 'files_external/lib/owncloud.php';
|
2013-03-02 11:12:33 +00:00
|
|
|
OC::$CLASSPATH['OC\Files\Storage\Google'] = 'files_external/lib/google.php';
|
2013-10-22 12:22:03 +00:00
|
|
|
OC::$CLASSPATH['OC\Files\Storage\Swift'] = 'files_external/lib/swift.php';
|
2013-03-02 11:12:33 +00:00
|
|
|
OC::$CLASSPATH['OC\Files\Storage\SMB'] = 'files_external/lib/smb.php';
|
2014-03-25 13:54:54 +00:00
|
|
|
OC::$CLASSPATH['OC\Files\Storage\SMB_OC'] = 'files_external/lib/smb_oc.php';
|
2013-03-02 11:12:33 +00:00
|
|
|
OC::$CLASSPATH['OC\Files\Storage\AmazonS3'] = 'files_external/lib/amazons3.php';
|
|
|
|
OC::$CLASSPATH['OC\Files\Storage\Dropbox'] = 'files_external/lib/dropbox.php';
|
|
|
|
OC::$CLASSPATH['OC\Files\Storage\SFTP'] = 'files_external/lib/sftp.php';
|
2013-04-12 13:51:58 +00:00
|
|
|
OC::$CLASSPATH['OC\Files\Storage\iRODS'] = 'files_external/lib/irods.php';
|
2013-03-02 11:12:33 +00:00
|
|
|
OC::$CLASSPATH['OC_Mount_Config'] = 'files_external/lib/config.php';
|
2012-05-24 16:22:33 +00:00
|
|
|
|
2012-05-24 15:06:03 +00:00
|
|
|
OCP\App::registerAdmin('files_external', 'settings');
|
2012-06-08 15:42:00 +00:00
|
|
|
if (OCP\Config::getAppValue('files_external', 'allow_user_mounting', 'yes') == 'yes') {
|
|
|
|
OCP\App::registerPersonal('files_external', 'personal');
|
|
|
|
}
|
2013-04-18 20:12:53 +00:00
|
|
|
|
|
|
|
// connecting hooks
|
2014-03-19 11:20:48 +00:00
|
|
|
OCP\Util::connectHook('OC_Filesystem', 'post_initMountPoints', '\OC_Mount_Config', 'initMountPointsHook');
|
|
|
|
OCP\Util::connectHook('OC_User', 'post_login', 'OC\Files\Storage\iRODS', 'login');
|
2014-03-25 13:54:54 +00:00
|
|
|
OCP\Util::connectHook('OC_User', 'post_login', 'OC\Files\Storage\SMB_OC', 'login');
|
2013-04-18 20:12:53 +00:00
|
|
|
|