summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-18 17:49:50 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-18 17:49:50 +0200
commit3fb91a74112c00457d549c79d6908acdd32651c5 (patch)
tree62a5592c88b59b64486cb0b37ba738fe4338e3f5 /core
parentb44bc9f4b289eda95ec94321c9698f3ce1a700be (diff)
downloadnextcloud-server-3fb91a74112c00457d549c79d6908acdd32651c5.tar.gz
nextcloud-server-3fb91a74112c00457d549c79d6908acdd32651c5.zip
restore require once command for non app files
Diffstat (limited to 'core')
-rw-r--r--core/ajax/appconfig.php2
-rw-r--r--core/ajax/grouplist.php2
-rw-r--r--core/ajax/translations.php2
-rw-r--r--core/ajax/userlist.php2
-rw-r--r--core/ajax/validateuser.php2
-rw-r--r--core/ajax/vcategories/add.php2
-rw-r--r--core/ajax/vcategories/delete.php2
-rw-r--r--core/ajax/vcategories/edit.php2
-rw-r--r--core/lostpassword/index.php2
-rw-r--r--core/lostpassword/resetpassword.php2
10 files changed, 10 insertions, 10 deletions
diff --git a/core/ajax/appconfig.php b/core/ajax/appconfig.php
index 41e421b2fe4..f815d710631 100644
--- a/core/ajax/appconfig.php
+++ b/core/ajax/appconfig.php
@@ -5,7 +5,7 @@
* See the COPYING-README file.
*/
-
+require_once ("../../lib/base.php");
OC_JSON::checkLoggedIn();
$action=isset($_POST['action'])?$_POST['action']:$_GET['action'];
$result=false;
diff --git a/core/ajax/grouplist.php b/core/ajax/grouplist.php
index ba079e2dae1..cc15102bbc3 100644
--- a/core/ajax/grouplist.php
+++ b/core/ajax/grouplist.php
@@ -22,7 +22,7 @@
*/
$RUNTIME_NOAPPS = TRUE; //no apps, yet
-
+require_once('../../lib/base.php');
if(!OC_User::isLoggedIn()){
if(!isset($_SERVER['PHP_AUTH_USER'])){
diff --git a/core/ajax/translations.php b/core/ajax/translations.php
index 3091926095f..a6433b1964a 100644
--- a/core/ajax/translations.php
+++ b/core/ajax/translations.php
@@ -22,7 +22,7 @@
*/
// Init owncloud
-
+require_once('../../lib/base.php');
$app = $_POST["app"];
diff --git a/core/ajax/userlist.php b/core/ajax/userlist.php
index d9910d5a98f..c8168eaf460 100644
--- a/core/ajax/userlist.php
+++ b/core/ajax/userlist.php
@@ -22,7 +22,7 @@
*/
$RUNTIME_NOAPPS = TRUE; //no apps, yet
-
+require_once('../../lib/base.php');
if(!OC_User::isLoggedIn()){
if(!isset($_SERVER['PHP_AUTH_USER'])){
diff --git a/core/ajax/validateuser.php b/core/ajax/validateuser.php
index a55c54a9a46..258bd50fcad 100644
--- a/core/ajax/validateuser.php
+++ b/core/ajax/validateuser.php
@@ -22,7 +22,7 @@
*/
$RUNTIME_NOAPPS = TRUE; //no apps, yet
-
+require_once('../../lib/base.php');
if(!isset($_SERVER['PHP_AUTH_USER'])){
header('WWW-Authenticate: Basic realm="ownCloud Server"');
diff --git a/core/ajax/vcategories/add.php b/core/ajax/vcategories/add.php
index b0183af7fc5..a58489228d8 100644
--- a/core/ajax/vcategories/add.php
+++ b/core/ajax/vcategories/add.php
@@ -14,7 +14,7 @@ function debug($msg) {
OC_Log::write('core','ajax/vcategories/add.php: '.$msg, OC_Log::DEBUG);
}
-
+require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn();
$category = isset($_GET['category'])?strip_tags($_GET['category']):null;
$app = isset($_GET['app'])?$_GET['app']:null;
diff --git a/core/ajax/vcategories/delete.php b/core/ajax/vcategories/delete.php
index f96add3d8c3..75def433d30 100644
--- a/core/ajax/vcategories/delete.php
+++ b/core/ajax/vcategories/delete.php
@@ -15,7 +15,7 @@ function debug($msg) {
OC_Log::write('core','ajax/vcategories/delete.php: '.$msg, OC_Log::DEBUG);
}
-
+require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn();
$app = isset($_POST['app'])?$_POST['app']:null;
$categories = isset($_POST['categories'])?$_POST['categories']:null;
diff --git a/core/ajax/vcategories/edit.php b/core/ajax/vcategories/edit.php
index 5b346bef28c..252b3d3454c 100644
--- a/core/ajax/vcategories/edit.php
+++ b/core/ajax/vcategories/edit.php
@@ -15,7 +15,7 @@ function debug($msg) {
OC_Log::write('core','ajax/vcategories/edit.php: '.$msg, OC_Log::DEBUG);
}
-
+require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn();
$app = isset($_GET['app'])?$_GET['app']:null;
diff --git a/core/lostpassword/index.php b/core/lostpassword/index.php
index 1400ec67cab..89bb6cfa794 100644
--- a/core/lostpassword/index.php
+++ b/core/lostpassword/index.php
@@ -7,7 +7,7 @@
*/
$RUNTIME_NOAPPS = TRUE; //no apps
-
+require_once('../../lib/base.php');
// Someone lost their password:
if (isset($_POST['user'])) {
diff --git a/core/lostpassword/resetpassword.php b/core/lostpassword/resetpassword.php
index 5f16e854f42..1c78d720947 100644
--- a/core/lostpassword/resetpassword.php
+++ b/core/lostpassword/resetpassword.php
@@ -7,7 +7,7 @@
*/
$RUNTIME_NOAPPS = TRUE; //no apps
-
+require_once('../../lib/base.php');
// Someone wants to reset their password:
if(isset($_GET['token']) && isset($_GET['user']) && OC_Preferences::getValue($_GET['user'], 'owncloud', 'lostpassword') === $_GET['token']) {