diff options
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/appconfig.php | 2 | ||||
-rw-r--r-- | core/ajax/grouplist.php | 2 | ||||
-rw-r--r-- | core/ajax/translations.php | 2 | ||||
-rw-r--r-- | core/ajax/userlist.php | 2 | ||||
-rw-r--r-- | core/ajax/validateuser.php | 2 | ||||
-rw-r--r-- | core/ajax/vcategories/add.php | 2 | ||||
-rw-r--r-- | core/ajax/vcategories/delete.php | 2 | ||||
-rw-r--r-- | core/ajax/vcategories/edit.php | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/core/ajax/appconfig.php b/core/ajax/appconfig.php index f815d710631..41e421b2fe4 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 cc15102bbc3..ba079e2dae1 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 a6433b1964a..3091926095f 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 c8168eaf460..d9910d5a98f 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 258bd50fcad..a55c54a9a46 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 a58489228d8..b0183af7fc5 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 75def433d30..f96add3d8c3 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 252b3d3454c..5b346bef28c 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; |