2011-06-12 00:14:24 +04:00
|
|
|
<?php
|
|
|
|
|
2011-08-01 18:58:15 +04:00
|
|
|
require_once('apps/files_sharing/sharedstorage.php');
|
2011-07-19 00:36:34 +04:00
|
|
|
|
2011-08-22 20:37:44 +04:00
|
|
|
OC::$CLASSPATH['OC_Share'] = "apps/files_sharing/lib_share.php";
|
2012-04-25 19:51:18 +04:00
|
|
|
OC_APP::registerAdmin('files_sharing', 'settings');
|
2011-08-22 20:37:44 +04:00
|
|
|
OC_Hook::connect("OC_Filesystem", "post_delete", "OC_Share", "deleteItem");
|
|
|
|
OC_Hook::connect("OC_Filesystem", "post_rename", "OC_Share", "renameItem");
|
2012-01-17 05:16:32 +04:00
|
|
|
OC_Hook::connect("OC_Filesystem", "post_write", "OC_Share", "updateItem");
|
2012-04-25 19:51:18 +04:00
|
|
|
$dir = isset($_GET['dir']) ? $_GET['dir'] : '/';
|
|
|
|
if ($dir != '/Shared' || OC_Appconfig::getValue('files_sharing', 'resharing', 'yes') == 'yes') {
|
|
|
|
OC_Util::addScript("files_sharing", "share");
|
|
|
|
}
|
2011-08-09 18:34:00 +04:00
|
|
|
OC_Util::addScript("3rdparty", "chosen/chosen.jquery.min");
|
2011-08-02 21:30:18 +04:00
|
|
|
OC_Util::addStyle( 'files_sharing', 'sharing' );
|
2011-08-09 18:34:00 +04:00
|
|
|
OC_Util::addStyle("3rdparty", "chosen/chosen");
|
2011-06-12 00:14:24 +04:00
|
|
|
|
2011-08-18 01:44:10 +04:00
|
|
|
?>
|