Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-28 01:12:11 +0400
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-28 01:14:53 +0400
commit7eb74923609aed3d69f1cc8619c8daeeac95c20f (patch)
tree2dfd3861d44c9471e0ca452a9c40aea8d5786550 /apps/files_sharing
parent72c0d6968ebb474d731586417cdfeef2ef54f7d2 (diff)
some fixes for sharing
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/ajax/email.php3
-rw-r--r--apps/files_sharing/ajax/getitem.php2
-rw-r--r--apps/files_sharing/ajax/setpermissions.php2
-rw-r--r--apps/files_sharing/ajax/share.php2
-rw-r--r--apps/files_sharing/ajax/toggleresharing.php2
-rw-r--r--apps/files_sharing/ajax/unshare.php2
6 files changed, 4 insertions, 9 deletions
diff --git a/apps/files_sharing/ajax/email.php b/apps/files_sharing/ajax/email.php
index d6d53c49bff..145026bbcd1 100644
--- a/apps/files_sharing/ajax/email.php
+++ b/apps/files_sharing/ajax/email.php
@@ -1,7 +1,4 @@
<?php
-
-require_once('../../../lib/base.php');
-
OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('files_sharing');
$user = OC_User::getUser();
diff --git a/apps/files_sharing/ajax/getitem.php b/apps/files_sharing/ajax/getitem.php
index c838895efbe..6f8d5247580 100644
--- a/apps/files_sharing/ajax/getitem.php
+++ b/apps/files_sharing/ajax/getitem.php
@@ -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'];
diff --git a/apps/files_sharing/ajax/setpermissions.php b/apps/files_sharing/ajax/setpermissions.php
index d46f6f0c7b4..60302d034f7 100644
--- a/apps/files_sharing/ajax/setpermissions.php
+++ b/apps/files_sharing/ajax/setpermissions.php
@@ -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'];
diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php
index cd9166913cb..50c6d4c9d25 100644
--- a/apps/files_sharing/ajax/share.php
+++ b/apps/files_sharing/ajax/share.php
@@ -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']);
diff --git a/apps/files_sharing/ajax/toggleresharing.php b/apps/files_sharing/ajax/toggleresharing.php
index 72af1eedec1..bd4d23ff79f 100644
--- a/apps/files_sharing/ajax/toggleresharing.php
+++ b/apps/files_sharing/ajax/toggleresharing.php
@@ -1,7 +1,5 @@
<?php
-require_once('../../../lib/base.php');
-
OC_JSON::checkAppEnabled('files_sharing');
OC_JSON::checkAdminUser();
if ($_POST['resharing'] == true) {
diff --git a/apps/files_sharing/ajax/unshare.php b/apps/files_sharing/ajax/unshare.php
index 150d6504863..7e99b5fe374 100644
--- a/apps/files_sharing/ajax/unshare.php
+++ b/apps/files_sharing/ajax/unshare.php
@@ -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'];