mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
remove require once lib base in some more files
This commit is contained in:
parent
45de7ad221
commit
b44bc9f4b2
15 changed files with 14 additions and 18 deletions
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
|
||||
// Init owncloud
|
||||
require_once('../lib/base.php');
|
||||
|
||||
|
||||
OC_Util::checkAdminUser();
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
*/
|
||||
|
||||
// Init owncloud
|
||||
require_once('../lib/base.php');
|
||||
|
||||
|
||||
// Check if we are a user
|
||||
OC_Util::checkLoggedIn();
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@
|
|||
*
|
||||
*/
|
||||
|
||||
|
||||
// Init owncloud
|
||||
require_once('../lib/base.php');
|
||||
|
||||
// Check if we are a user
|
||||
OC_Util::checkLoggedIn();
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
|
||||
// Init owncloud
|
||||
require_once('../lib/base.php');
|
||||
|
||||
|
||||
// Check if we are a user
|
||||
OC_Util::checkLoggedIn();
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ $RUNTIME_NOSETUPFS = true;
|
|||
// only need filesystem apps
|
||||
$RUNTIME_APPTYPES=array('filesystem','authentication');
|
||||
|
||||
require_once('../lib/base.php');
|
||||
|
||||
|
||||
// Backends
|
||||
$authBackend = new OC_Connector_Sabre_Auth();
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
require_once('../lib/base.php');
|
||||
|
||||
|
||||
$url='http://'.substr($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],0,-17).'ocs/v1.php/';
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
require_once('../lib/base.php');
|
||||
|
||||
@ob_clean();
|
||||
OC_OCS::handle();
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
|
||||
// Init owncloud
|
||||
require_once('../lib/base.php');
|
||||
|
||||
|
||||
// Check if we are a user
|
||||
OC_Util::checkLoggedIn();
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
require_once('../lib/base.php');
|
||||
|
||||
OC_Util::checkAdminUser();
|
||||
|
||||
OC_Util::addStyle( "settings", "settings" );
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
require_once('../lib/base.php');
|
||||
|
||||
OC_Util::checkAdminUser();
|
||||
|
||||
// Load the files we need
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
require_once('../lib/base.php');
|
||||
|
||||
OC_Util::checkLoggedIn();
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
require_once('../lib/base.php');
|
||||
|
||||
OC_Util::checkAdminUser();
|
||||
|
||||
// Load the files we need
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
require_once('../lib/base.php');
|
||||
|
||||
OC_Util::checkLoggedIn();
|
||||
|
||||
// Highlight navigation entry
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
require_once('../lib/base.php');
|
||||
|
||||
OC_Util::checkLoggedIn();
|
||||
|
||||
OC_Util::addStyle( 'settings', 'settings' );
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
* See the COPYING-README file.
|
||||
*/
|
||||
|
||||
require_once('../lib/base.php');
|
||||
|
||||
OC_Util::checkAdminUser();
|
||||
|
||||
// We have some javascript foo!
|
||||
|
|
|
|||
Loading…
Reference in a new issue