]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove not needed includes
authorFrank Karlitschek <frank@owncloud.org>
Mon, 28 May 2012 11:57:45 +0000 (13:57 +0200)
committerFrank Karlitschek <frank@owncloud.org>
Mon, 28 May 2012 11:57:45 +0000 (13:57 +0200)
apps/files_sharing/ajax/getitem.php
apps/files_sharing/ajax/getstatuses.php
apps/files_sharing/ajax/setpermissions.php
apps/files_sharing/ajax/share.php
apps/files_sharing/ajax/unshare.php
apps/media/ajax/api.php
apps/media/index.php
apps/user_ldap/appinfo/update.php

index 36ac372cad44de36f695a702055b292889efe7ec..94f0890d70680373fbcc721f4fea09cf75f604b9 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
  
 OCP\JSON::checkAppEnabled('files_sharing');
 OCP\JSON::checkLoggedIn();
index 8edcb214758ae78412f0fdb8894b4c25a32b4895..488cab13bc9ec65f2bddadf3c896373569c714ec 100644 (file)
@@ -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
+?>
index 2f4c5da978858a4187a39fbd5d0125368ad9cfa9..4d19cd40f2d4fd5ee07d72f26eff2bf7816c8e6a 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
 
 OCP\JSON::checkAppEnabled('files_sharing');
 OCP\JSON::checkLoggedIn();
index ec3c25998af903b41d88c11d481a1313cbf36235..1ee8c3f791a6d214be1d358168f2cbb2ac003f97 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
 
 OCP\JSON::checkAppEnabled('files_sharing');
 OCP\JSON::checkLoggedIn();
index 9088bf4266349c05093715fb85d556bb30b8e403..d50e7963a0551eb143f7f9b2181cec94e71def06 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
 
 OCP\JSON::checkAppEnabled('files_sharing');
 OCP\JSON::checkLoggedIn();
index 37dc638019875a2d6358e603f8cff4fa46e5d14f..6e269f3bb78cd9711578c8d3371687cdd81b62da 100644 (file)
@@ -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
+?>
index 906d7bacb6e24ff6dfb7d3080443a67f1e3a6000..fb51aa0b17a1a07eaddc44fb1a206b24efcae363 100644 (file)
@@ -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');
index b3f7a397db960b6c43bb901e13608f387b8e5a6a..dc437ce21ce90f1b416889f98374b71611158bc7 100644 (file)
@@ -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
+}