summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-17 19:31:29 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-17 19:31:29 +0200
commit69ee0efc0b355c33ec566cffb36c4b0dc429c338 (patch)
tree50f96da78b34007f47d6de10bdf47f35704d96a8 /files
parent12818093007d5bdce5519b5015e2a0748c98e24d (diff)
downloadnextcloud-server-69ee0efc0b355c33ec566cffb36c4b0dc429c338.tar.gz
nextcloud-server-69ee0efc0b355c33ec566cffb36c4b0dc429c338.zip
remove the require_once lib base from all (or nearly all) files
Diffstat (limited to 'files')
-rw-r--r--files/ajax/autocomplete.php2
-rw-r--r--files/ajax/delete.php2
-rw-r--r--files/ajax/download.php2
-rw-r--r--files/ajax/list.php2
-rw-r--r--files/ajax/mimeicon.php2
-rw-r--r--files/ajax/move.php2
-rw-r--r--files/ajax/newfile.php2
-rw-r--r--files/ajax/newfolder.php2
-rw-r--r--files/ajax/rawlist.php2
-rw-r--r--files/ajax/rename.php2
-rw-r--r--files/ajax/upload.php2
11 files changed, 11 insertions, 11 deletions
diff --git a/files/ajax/autocomplete.php b/files/ajax/autocomplete.php
index 8d7a5b482bd..8cdb6188a02 100644
--- a/files/ajax/autocomplete.php
+++ b/files/ajax/autocomplete.php
@@ -3,7 +3,7 @@
// Init owncloud
-require_once('../../lib/base.php');
+
OC_JSON::checkLoggedIn();
diff --git a/files/ajax/delete.php b/files/ajax/delete.php
index 1725201fdd9..d8a01d7acf1 100644
--- a/files/ajax/delete.php
+++ b/files/ajax/delete.php
@@ -1,7 +1,7 @@
<?php
// Init owncloud
-require_once('../../lib/base.php');
+
OC_JSON::checkLoggedIn();
diff --git a/files/ajax/download.php b/files/ajax/download.php
index 39852613ab9..65c04c36faf 100644
--- a/files/ajax/download.php
+++ b/files/ajax/download.php
@@ -25,7 +25,7 @@
$RUNTIME_APPTYPES=array('filesystem');
// Init owncloud
-require_once('../../lib/base.php');
+
// Check if we are a user
OC_Util::checkLoggedIn();
diff --git a/files/ajax/list.php b/files/ajax/list.php
index ec9ab7342dd..83914332a7d 100644
--- a/files/ajax/list.php
+++ b/files/ajax/list.php
@@ -4,7 +4,7 @@
$RUNTIME_APPTYPES=array('filesystem');
// Init owncloud
-require_once('../../lib/base.php');
+
OC_JSON::checkLoggedIn();
diff --git a/files/ajax/mimeicon.php b/files/ajax/mimeicon.php
index ff72ba0f5b7..57898cd82d9 100644
--- a/files/ajax/mimeicon.php
+++ b/files/ajax/mimeicon.php
@@ -4,7 +4,7 @@
$RUNTIME_NOAPPS=false;
// Init owncloud
-require_once('../../lib/base.php');
+
print OC_Helper::mimetypeIcon($_GET['mime']);
diff --git a/files/ajax/move.php b/files/ajax/move.php
index 9af3f80208f..0ad314f873c 100644
--- a/files/ajax/move.php
+++ b/files/ajax/move.php
@@ -1,7 +1,7 @@
<?php
// Init owncloud
-require_once('../../lib/base.php');
+
OC_JSON::checkLoggedIn();
diff --git a/files/ajax/newfile.php b/files/ajax/newfile.php
index 2d1372f06ee..472b577a32a 100644
--- a/files/ajax/newfile.php
+++ b/files/ajax/newfile.php
@@ -1,7 +1,7 @@
<?php
// Init owncloud
-require_once('../../lib/base.php');
+
OC_JSON::checkLoggedIn();
diff --git a/files/ajax/newfolder.php b/files/ajax/newfolder.php
index 228e369fbef..2aff95e5b35 100644
--- a/files/ajax/newfolder.php
+++ b/files/ajax/newfolder.php
@@ -1,7 +1,7 @@
<?php
// Init owncloud
-require_once('../../lib/base.php');
+
OC_JSON::checkLoggedIn();
diff --git a/files/ajax/rawlist.php b/files/ajax/rawlist.php
index e02c5b62733..8f1990d1b8f 100644
--- a/files/ajax/rawlist.php
+++ b/files/ajax/rawlist.php
@@ -4,7 +4,7 @@
$RUNTIME_APPTYPES=array('filesystem');
// Init owncloud
-require_once('../../lib/base.php');
+
require_once('../../lib/template.php');
OC_JSON::checkLoggedIn();
diff --git a/files/ajax/rename.php b/files/ajax/rename.php
index a51b36635b3..dc5d3962abd 100644
--- a/files/ajax/rename.php
+++ b/files/ajax/rename.php
@@ -1,7 +1,7 @@
<?php
// Init owncloud
-require_once('../../lib/base.php');
+
OC_JSON::checkLoggedIn();
diff --git a/files/ajax/upload.php b/files/ajax/upload.php
index b04796e3248..c60e1a3752a 100644
--- a/files/ajax/upload.php
+++ b/files/ajax/upload.php
@@ -1,7 +1,7 @@
<?php
// Init owncloud
-require_once('../../lib/base.php');
+
// Firefox and Konqueror tries to download application/json for me. --Arthur
OC_JSON::setContentTypeHeader('text/plain');