some fixes for sharing
This commit is contained in:
parent
72c0d6968e
commit
7eb7492360
|
@ -1,7 +1,4 @@
|
|||
<?php
|
||||
|
||||
require_once('../../../lib/base.php');
|
||||
|
||||
OC_JSON::checkLoggedIn();
|
||||
OC_JSON::checkAppEnabled('files_sharing');
|
||||
$user = OC_User::getUser();
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
|
||||
OC_JSON::checkAppEnabled('files_sharing');
|
||||
require_once('../lib_share.php');
|
||||
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
|
||||
|
||||
$userDirectory = "/".OC_User::getUser()."/files";
|
||||
$source = $userDirectory.$_GET['source'];
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
|
||||
OC_JSON::checkAppEnabled('files_sharing');
|
||||
require_once('../lib_share.php');
|
||||
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
|
||||
|
||||
$source = "/".OC_User::getUser()."/files".$_GET['source'];
|
||||
$uid_shared_with = $_GET['uid_shared_with'];
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
|
||||
OC_JSON::checkAppEnabled('files_sharing');
|
||||
require_once('../lib_share.php');
|
||||
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
|
||||
|
||||
$userDirectory = "/".OC_User::getUser()."/files";
|
||||
$sources = explode(";", $_POST['sources']);
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
|
||||
require_once('../../../lib/base.php');
|
||||
|
||||
OC_JSON::checkAppEnabled('files_sharing');
|
||||
OC_JSON::checkAdminUser();
|
||||
if ($_POST['resharing'] == true) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
|
||||
OC_JSON::checkAppEnabled('files_sharing');
|
||||
require_once('../lib_share.php');
|
||||
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
|
||||
|
||||
$source = "/".OC_User::getUser()."/files".$_GET['source'];
|
||||
$uid_shared_with = $_GET['uid_shared_with'];
|
||||
|
|
Loading…
Reference in New Issue