Skip to content
Snippets Groups Projects
Commit 7eb74923 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

some fixes for sharing

parent 72c0d696
No related branches found
No related tags found
No related merge requests found
<?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']);
......
<?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'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment