remove not needed includes
This commit is contained in:
parent
b14f2d0388
commit
c79a529edd
8 changed files with 3 additions and 16 deletions
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
|
|
||||||
|
|
||||||
OCP\JSON::checkAppEnabled('files_sharing');
|
OCP\JSON::checkAppEnabled('files_sharing');
|
||||||
OCP\JSON::checkLoggedIn();
|
OCP\JSON::checkLoggedIn();
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
|
|
||||||
|
|
||||||
OCP\JSON::checkAppEnabled('files_sharing');
|
OCP\JSON::checkAppEnabled('files_sharing');
|
||||||
OCP\JSON::checkLoggedIn();
|
OCP\JSON::checkLoggedIn();
|
||||||
|
@ -22,4 +21,4 @@ if ($rows = OC_Share::getMySharedItems()) {
|
||||||
|
|
||||||
OCP\JSON::success(array('data' => $items));
|
OCP\JSON::success(array('data' => $items));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
|
|
||||||
|
|
||||||
OCP\JSON::checkAppEnabled('files_sharing');
|
OCP\JSON::checkAppEnabled('files_sharing');
|
||||||
OCP\JSON::checkLoggedIn();
|
OCP\JSON::checkLoggedIn();
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
|
|
||||||
|
|
||||||
OCP\JSON::checkAppEnabled('files_sharing');
|
OCP\JSON::checkAppEnabled('files_sharing');
|
||||||
OCP\JSON::checkLoggedIn();
|
OCP\JSON::checkLoggedIn();
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
require_once(OC::$APPSROOT . '/apps/files_sharing/lib_share.php');
|
|
||||||
|
|
||||||
OCP\JSON::checkAppEnabled('files_sharing');
|
OCP\JSON::checkAppEnabled('files_sharing');
|
||||||
OCP\JSON::checkLoggedIn();
|
OCP\JSON::checkLoggedIn();
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
header('Content-type: text/html; charset=UTF-8') ;
|
header('Content-type: text/html; charset=UTF-8') ;
|
||||||
|
|
||||||
OCP\JSON::checkAppEnabled('media');
|
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
|
error_reporting(E_ALL); //no script error reporting because of getID3
|
||||||
|
|
||||||
|
@ -126,4 +124,4 @@ if($arguments['action']){
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -28,9 +28,6 @@
|
||||||
OCP\User::checkLoggedIn();
|
OCP\User::checkLoggedIn();
|
||||||
OCP\App::checkAppEnabled('media');
|
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','player');
|
||||||
OCP\Util::addscript('media','music');
|
OCP\Util::addscript('media','music');
|
||||||
OCP\Util::addscript('media','playlist');
|
OCP\Util::addscript('media','playlist');
|
||||||
|
|
|
@ -16,9 +16,6 @@ $state = OCP\Config::getSystemValue('ldapIgnoreNamingRules', 'doCheck');
|
||||||
if($state == 'doCheck'){
|
if($state == 'doCheck'){
|
||||||
$sqlCleanMap = 'DELETE FROM *PREFIX*ldap_user_mapping';
|
$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);
|
OCP\Config::setSystemValue('ldapIgnoreNamingRules', true);
|
||||||
$LDAP_USER = new OC_USER_LDAP();
|
$LDAP_USER = new OC_USER_LDAP();
|
||||||
$users_old = $LDAP_USER->getUsers();
|
$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'
|
//we don't need to check Groups, because they were not supported in 3'
|
||||||
OCP\Config::setSystemValue('ldapIgnoreNamingRules', true);
|
OCP\Config::setSystemValue('ldapIgnoreNamingRules', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue