summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-28 13:57:45 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-28 13:57:45 +0200
commitc79a529edda3992bffc9e7dd1c7949f42c3b8f57 (patch)
tree17da093d9549385d1e1e2453ad86eb516d0c255e
parentb14f2d0388601879b69a0d43a576b068ae412ea8 (diff)
downloadnextcloud-server-c79a529edda3992bffc9e7dd1c7949f42c3b8f57.tar.gz
nextcloud-server-c79a529edda3992bffc9e7dd1c7949f42c3b8f57.zip
remove not needed includes
-rw-r--r--apps/files_sharing/ajax/getitem.php1
-rw-r--r--apps/files_sharing/ajax/getstatuses.php3
-rw-r--r--apps/files_sharing/ajax/setpermissions.php1
-rw-r--r--apps/files_sharing/ajax/share.php1
-rw-r--r--apps/files_sharing/ajax/unshare.php1
-rw-r--r--apps/media/ajax/api.php4
-rw-r--r--apps/media/index.php3
-rw-r--r--apps/user_ldap/appinfo/update.php5
8 files changed, 3 insertions, 16 deletions
diff --git a/apps/files_sharing/ajax/getitem.php b/apps/files_sharing/ajax/getitem.php
index 36ac372cad4..94f0890d706 100644
--- a/apps/files_sharing/ajax/getitem.php
+++ b/apps/files_sharing/ajax/getitem.php
@@ -1,5 +1,4 @@
<?php
-require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
OCP\JSON::checkAppEnabled('files_sharing');
OCP\JSON::checkLoggedIn();
diff --git a/apps/files_sharing/ajax/getstatuses.php b/apps/files_sharing/ajax/getstatuses.php
index 8edcb214758..488cab13bc9 100644
--- a/apps/files_sharing/ajax/getstatuses.php
+++ b/apps/files_sharing/ajax/getstatuses.php
@@ -1,5 +1,4 @@
<?php
-require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
OCP\JSON::checkAppEnabled('files_sharing');
OCP\JSON::checkLoggedIn();
@@ -22,4 +21,4 @@ if ($rows = OC_Share::getMySharedItems()) {
OCP\JSON::success(array('data' => $items));
-?> \ No newline at end of file
+?>
diff --git a/apps/files_sharing/ajax/setpermissions.php b/apps/files_sharing/ajax/setpermissions.php
index 2f4c5da9788..4d19cd40f2d 100644
--- a/apps/files_sharing/ajax/setpermissions.php
+++ b/apps/files_sharing/ajax/setpermissions.php
@@ -1,5 +1,4 @@
<?php
-require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
OCP\JSON::checkAppEnabled('files_sharing');
OCP\JSON::checkLoggedIn();
diff --git a/apps/files_sharing/ajax/share.php b/apps/files_sharing/ajax/share.php
index ec3c25998af..1ee8c3f791a 100644
--- a/apps/files_sharing/ajax/share.php
+++ b/apps/files_sharing/ajax/share.php
@@ -1,5 +1,4 @@
<?php
-require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
OCP\JSON::checkAppEnabled('files_sharing');
OCP\JSON::checkLoggedIn();
diff --git a/apps/files_sharing/ajax/unshare.php b/apps/files_sharing/ajax/unshare.php
index 9088bf42663..d50e7963a05 100644
--- a/apps/files_sharing/ajax/unshare.php
+++ b/apps/files_sharing/ajax/unshare.php
@@ -1,5 +1,4 @@
<?php
-require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
OCP\JSON::checkAppEnabled('files_sharing');
OCP\JSON::checkLoggedIn();
diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php
index 37dc6380198..6e269f3bb78 100644
--- a/apps/media/ajax/api.php
+++ b/apps/media/ajax/api.php
@@ -24,8 +24,6 @@
header('Content-type: text/html; charset=UTF-8') ;
OCP\JSON::checkAppEnabled('media');
-require_once(OC::$APPSROOT . '/apps/media/lib_collection.php');
-require_once(OC::$APPSROOT . '/apps/media/lib_scanner.php');
error_reporting(E_ALL); //no script error reporting because of getID3
@@ -126,4 +124,4 @@ if($arguments['action']){
exit;
}
}
-?> \ No newline at end of file
+?>
diff --git a/apps/media/index.php b/apps/media/index.php
index 906d7bacb6e..fb51aa0b17a 100644
--- a/apps/media/index.php
+++ b/apps/media/index.php
@@ -28,9 +28,6 @@
OCP\User::checkLoggedIn();
OCP\App::checkAppEnabled('media');
-require_once(OC::$APPSROOT . '/apps/media/lib_collection.php');
-require_once(OC::$APPSROOT . '/apps/media/lib_scanner.php');
-
OCP\Util::addscript('media','player');
OCP\Util::addscript('media','music');
OCP\Util::addscript('media','playlist');
diff --git a/apps/user_ldap/appinfo/update.php b/apps/user_ldap/appinfo/update.php
index b3f7a397db9..dc437ce21ce 100644
--- a/apps/user_ldap/appinfo/update.php
+++ b/apps/user_ldap/appinfo/update.php
@@ -16,9 +16,6 @@ $state = OCP\Config::getSystemValue('ldapIgnoreNamingRules', 'doCheck');
if($state == 'doCheck'){
$sqlCleanMap = 'DELETE FROM *PREFIX*ldap_user_mapping';
- require_once(OC::$APPSROOT.'/apps/user_ldap/lib_ldap.php');
- require_once(OC::$APPSROOT.'/apps/user_ldap/user_ldap.php');
-
OCP\Config::setSystemValue('ldapIgnoreNamingRules', true);
$LDAP_USER = new OC_USER_LDAP();
$users_old = $LDAP_USER->getUsers();
@@ -33,4 +30,4 @@ if($state == 'doCheck'){
//we don't need to check Groups, because they were not supported in 3'
OCP\Config::setSystemValue('ldapIgnoreNamingRules', true);
}
-} \ No newline at end of file
+}