2011-06-11 20:14:24 +00:00
|
|
|
<?php
|
|
|
|
|
2011-08-01 14:58:15 +00:00
|
|
|
require_once('apps/files_sharing/sharedstorage.php');
|
2011-07-18 20:36:34 +00:00
|
|
|
|
2011-08-22 16:37:44 +00:00
|
|
|
OC::$CLASSPATH['OC_Share'] = "apps/files_sharing/lib_share.php";
|
2012-04-25 15:51:18 +00:00
|
|
|
OC_APP::registerAdmin('files_sharing', 'settings');
|
2011-08-22 16:37:44 +00:00
|
|
|
OC_Hook::connect("OC_Filesystem", "post_delete", "OC_Share", "deleteItem");
|
|
|
|
OC_Hook::connect("OC_Filesystem", "post_rename", "OC_Share", "renameItem");
|
2012-01-17 01:16:32 +00:00
|
|
|
OC_Hook::connect("OC_Filesystem", "post_write", "OC_Share", "updateItem");
|
2012-04-25 22:18:19 +00:00
|
|
|
OC_Hook::connect('OC_User', 'post_deleteUser', 'OC_Share', 'removeUser');
|
|
|
|
OC_Hook::connect('OC_User', 'post_addToGroup', 'OC_Share', 'addToGroupShare');
|
|
|
|
OC_Hook::connect('OC_User', 'post_removeFromGroup', 'OC_Share', 'removeFromGroupShare');
|
2012-04-25 15:51:18 +00:00
|
|
|
$dir = isset($_GET['dir']) ? $_GET['dir'] : '/';
|
|
|
|
if ($dir != '/Shared' || OC_Appconfig::getValue('files_sharing', 'resharing', 'yes') == 'yes') {
|
2012-05-01 18:03:41 +00:00
|
|
|
OCP\Util::addscript("files_sharing", "share");
|
2012-04-25 15:51:18 +00:00
|
|
|
}
|
2012-05-01 18:03:41 +00:00
|
|
|
OCP\Util::addscript("3rdparty", "chosen/chosen.jquery.min");
|
2012-05-01 07:49:22 +00:00
|
|
|
OCP\Util::addStyle( 'files_sharing', 'sharing' );
|
|
|
|
OCP\Util::addStyle("3rdparty", "chosen/chosen");
|
2011-06-11 20:14:24 +00:00
|
|
|
|
2012-05-01 07:49:22 +00:00
|
|
|
?>
|