server/apps/files_sharing/appinfo/app.php

22 lines
1 KiB
PHP
Raw Normal View History

2011-06-11 20:14:24 +00:00
<?php
require_once('apps/files_sharing/sharedstorage.php');
OC::$CLASSPATH['OC_Share'] = "apps/files_sharing/lib_share.php";
2012-05-01 22:50:26 +00:00
OCP\App::registerAdmin('files_sharing', 'settings');
OCP\Util::connectHook("OC_Filesystem", "post_delete", "OC_Share", "deleteItem");
OCP\Util::connectHook("OC_Filesystem", "post_rename", "OC_Share", "renameItem");
OCP\Util::connectHook("OC_Filesystem", "post_write", "OC_Share", "updateItem");
OCP\Util::connectHook('OC_User', 'post_deleteUser', 'OC_Share', 'removeUser');
OCP\Util::connectHook('OC_User', 'post_addToGroup', 'OC_Share', 'addToGroupShare');
OCP\Util::connectHook('OC_User', 'post_removeFromGroup', 'OC_Share', 'removeFromGroupShare');
$dir = isset($_GET['dir']) ? $_GET['dir'] : '/';
2012-05-02 12:11:29 +00:00
if ($dir != '/Shared' || OCP\Config::getAppValue('files_sharing', 'resharing', 'yes') == 'yes') {
2012-05-01 18:03:41 +00:00
OCP\Util::addscript("files_sharing", "share");
}
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
?>