remove not needed includes

This commit is contained in:
Frank Karlitschek 2012-05-28 13:57:45 +02:00
parent b14f2d0388
commit c79a529edd
8 changed files with 3 additions and 16 deletions

View file

@ -1,5 +1,4 @@
<?php
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
OCP\JSON::checkAppEnabled('files_sharing');
OCP\JSON::checkLoggedIn();

View 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));
?>
?>

View file

@ -1,5 +1,4 @@
<?php
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
OCP\JSON::checkAppEnabled('files_sharing');
OCP\JSON::checkLoggedIn();

View file

@ -1,5 +1,4 @@
<?php
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
OCP\JSON::checkAppEnabled('files_sharing');
OCP\JSON::checkLoggedIn();

View file

@ -1,5 +1,4 @@
<?php
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
OCP\JSON::checkAppEnabled('files_sharing');
OCP\JSON::checkLoggedIn();

View 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;
}
}
?>
?>

View 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');

View 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);
}
}
}