diff options
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/apps/ocs.php | 3 | ||||
-rw-r--r-- | settings/ajax/changepassword.php | 3 | ||||
-rw-r--r-- | settings/ajax/creategroup.php | 2 | ||||
-rw-r--r-- | settings/ajax/createuser.php | 2 | ||||
-rw-r--r-- | settings/ajax/disableapp.php | 2 | ||||
-rw-r--r-- | settings/ajax/enableapp.php | 2 | ||||
-rw-r--r-- | settings/ajax/getlog.php | 3 | ||||
-rw-r--r-- | settings/ajax/lostpassword.php | 2 | ||||
-rw-r--r-- | settings/ajax/openid.php | 3 | ||||
-rw-r--r-- | settings/ajax/removegroup.php | 3 | ||||
-rw-r--r-- | settings/ajax/removeuser.php | 5 | ||||
-rw-r--r-- | settings/ajax/setlanguage.php | 3 | ||||
-rw-r--r-- | settings/ajax/setloglevel.php | 1 | ||||
-rw-r--r-- | settings/ajax/setquota.php | 3 | ||||
-rw-r--r-- | settings/ajax/togglegroups.php | 3 | ||||
-rw-r--r-- | settings/ajax/togglesubadmins.php | 5 | ||||
-rw-r--r-- | settings/ajax/userlist.php | 4 |
17 files changed, 3 insertions, 46 deletions
diff --git a/settings/ajax/apps/ocs.php b/settings/ajax/apps/ocs.php index fb78cc89248..4d6f1116e7d 100644 --- a/settings/ajax/apps/ocs.php +++ b/settings/ajax/apps/ocs.php @@ -6,9 +6,6 @@ * See the COPYING-README file. */ -// Init owncloud -require_once '../../../lib/base.php'; - OC_JSON::checkAdminUser(); $l = OC_L10N::get('settings'); diff --git a/settings/ajax/changepassword.php b/settings/ajax/changepassword.php index 12d3b67037a..a0fe5947b6d 100644 --- a/settings/ajax/changepassword.php +++ b/settings/ajax/changepassword.php @@ -1,8 +1,5 @@ <?php -// Init owncloud -require_once '../../lib/base.php'; - // Check if we are a user OCP\JSON::callCheck(); OC_JSON::checkLoggedIn(); diff --git a/settings/ajax/creategroup.php b/settings/ajax/creategroup.php index 431b449a811..0a79527c219 100644 --- a/settings/ajax/creategroup.php +++ b/settings/ajax/creategroup.php @@ -1,7 +1,5 @@ <?php -// Init owncloud -require_once '../../lib/base.php'; OCP\JSON::callCheck(); OC_JSON::checkAdminUser(); diff --git a/settings/ajax/createuser.php b/settings/ajax/createuser.php index b3e5c23de54..c87ff422f61 100644 --- a/settings/ajax/createuser.php +++ b/settings/ajax/createuser.php @@ -1,7 +1,5 @@ <?php -// Init owncloud -require_once '../../lib/base.php'; OCP\JSON::callCheck(); OC_JSON::checkSubAdminUser(); diff --git a/settings/ajax/disableapp.php b/settings/ajax/disableapp.php index 977a536af21..a39b06b9c7d 100644 --- a/settings/ajax/disableapp.php +++ b/settings/ajax/disableapp.php @@ -1,6 +1,4 @@ <?php -// Init owncloud -require_once '../../lib/base.php'; OC_JSON::checkAdminUser(); OCP\JSON::callCheck(); OC_JSON::setContentTypeHeader(); diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php index c3b3491db93..f4d5c53adef 100644 --- a/settings/ajax/enableapp.php +++ b/settings/ajax/enableapp.php @@ -1,7 +1,5 @@ <?php -// Init owncloud -require_once '../../lib/base.php'; OC_JSON::checkAdminUser(); OCP\JSON::callCheck(); OC_JSON::setContentTypeHeader(); diff --git a/settings/ajax/getlog.php b/settings/ajax/getlog.php index 9b9240f8253..22128ef57b5 100644 --- a/settings/ajax/getlog.php +++ b/settings/ajax/getlog.php @@ -5,9 +5,6 @@ * See the COPYING-README file. */ -// Init owncloud -require_once '../../lib/base.php'; - OC_JSON::checkAdminUser(); $count=(isset($_GET['count']))?$_GET['count']:50; diff --git a/settings/ajax/lostpassword.php b/settings/ajax/lostpassword.php index 2a40ba09a8a..b5f47bbceab 100644 --- a/settings/ajax/lostpassword.php +++ b/settings/ajax/lostpassword.php @@ -1,7 +1,5 @@ <?php -// Init owncloud -require_once '../../lib/base.php'; OC_JSON::checkLoggedIn(); OCP\JSON::callCheck(); diff --git a/settings/ajax/openid.php b/settings/ajax/openid.php index ecec085383c..23c43c3c48e 100644 --- a/settings/ajax/openid.php +++ b/settings/ajax/openid.php @@ -1,8 +1,5 @@ <?php -// Init owncloud -require_once '../../lib/base.php'; - $l=OC_L10N::get('settings'); OC_JSON::checkLoggedIn(); diff --git a/settings/ajax/removegroup.php b/settings/ajax/removegroup.php index 33e1a514c88..798d7916e61 100644 --- a/settings/ajax/removegroup.php +++ b/settings/ajax/removegroup.php @@ -1,8 +1,5 @@ <?php -// Init owncloud -require_once '../../lib/base.php'; - OC_JSON::checkAdminUser(); OCP\JSON::callCheck(); diff --git a/settings/ajax/removeuser.php b/settings/ajax/removeuser.php index 1e3cd2993b0..9ffb32a0b23 100644 --- a/settings/ajax/removeuser.php +++ b/settings/ajax/removeuser.php @@ -1,8 +1,5 @@ <?php -// Init owncloud -require_once '../../lib/base.php'; - OC_JSON::checkSubAdminUser(); OCP\JSON::callCheck(); @@ -25,4 +22,4 @@ if( OC_User::deleteUser( $username )) { } else{ OC_JSON::error(array("data" => array( "message" => $l->t("Unable to delete user") ))); -}
\ No newline at end of file +} diff --git a/settings/ajax/setlanguage.php b/settings/ajax/setlanguage.php index 42eea7a96fd..aebb1b31b6f 100644 --- a/settings/ajax/setlanguage.php +++ b/settings/ajax/setlanguage.php @@ -1,8 +1,5 @@ <?php -// Init owncloud -require_once '../../lib/base.php'; - $l=OC_L10N::get('settings'); OC_JSON::checkLoggedIn(); diff --git a/settings/ajax/setloglevel.php b/settings/ajax/setloglevel.php index 982899e106a..542219f86c6 100644 --- a/settings/ajax/setloglevel.php +++ b/settings/ajax/setloglevel.php @@ -5,7 +5,6 @@ * See the COPYING-README file. */ -require_once '../../lib/base.php'; OC_Util::checkAdminUser(); OCP\JSON::callCheck(); diff --git a/settings/ajax/setquota.php b/settings/ajax/setquota.php index 2352ae9e427..4b32585b306 100644 --- a/settings/ajax/setquota.php +++ b/settings/ajax/setquota.php @@ -5,9 +5,6 @@ * See the COPYING-README file. */ -// Init owncloud -require_once '../../lib/base.php'; - OC_JSON::checkSubAdminUser(); OCP\JSON::callCheck(); diff --git a/settings/ajax/togglegroups.php b/settings/ajax/togglegroups.php index 65747968c17..de941f99132 100644 --- a/settings/ajax/togglegroups.php +++ b/settings/ajax/togglegroups.php @@ -1,8 +1,5 @@ <?php -// Init owncloud -require_once '../../lib/base.php'; - OC_JSON::checkSubAdminUser(); OCP\JSON::callCheck(); diff --git a/settings/ajax/togglesubadmins.php b/settings/ajax/togglesubadmins.php index 5f7126dca34..7aaa90aad5f 100644 --- a/settings/ajax/togglesubadmins.php +++ b/settings/ajax/togglesubadmins.php @@ -1,8 +1,5 @@ <?php -// Init owncloud -require_once '../../lib/base.php'; - OC_JSON::checkAdminUser(); OCP\JSON::callCheck(); @@ -16,4 +13,4 @@ if(OC_SubAdmin::isSubAdminofGroup($username, $group)) { OC_SubAdmin::createSubAdmin($username, $group); } -OC_JSON::success();
\ No newline at end of file +OC_JSON::success(); diff --git a/settings/ajax/userlist.php b/settings/ajax/userlist.php index 840b6d72dc7..61b1a388fc3 100644 --- a/settings/ajax/userlist.php +++ b/settings/ajax/userlist.php @@ -20,8 +20,6 @@ * */ -require_once '../../lib/base.php'; - OC_JSON::callCheck(); OC_JSON::checkSubAdminUser(); if (isset($_GET['offset'])) { @@ -49,4 +47,4 @@ if (OC_Group::inGroup(OC_User::getUser(), 'admin')) { 'quota' => OC_Preferences::getValue($user, 'files', 'quota', 'default')); } } -OC_JSON::success(array('data' => $users));
\ No newline at end of file +OC_JSON::success(array('data' => $users)); |