some fixes for sharing

This commit is contained in:
Georg Ehrke 2012-04-27 23:12:11 +02:00
parent 72c0d6968e
commit 7eb7492360
6 changed files with 4 additions and 9 deletions

View File

@ -1,7 +1,4 @@
<?php
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('files_sharing');
$user = OC_User::getUser();

View File

@ -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'];

View File

@ -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'];

View File

@ -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']);

View File

@ -1,7 +1,5 @@
<?php
require_once('../../../lib/base.php');
OC_JSON::checkAppEnabled('files_sharing');
OC_JSON::checkAdminUser();
if ($_POST['resharing'] == true) {

View File

@ -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'];