diff --git a/core/ajax/appconfig.php b/core/ajax/appconfig.php index 41e421b2fe4b2a3410e05a92529848ce902b9cf4..f815d710631f81a1ccf6a50acf391f77cc13b199 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 ba079e2dae122b13989f558fe9c280fb0ddde0f1..cc15102bbc343ece229cfe21bde953fc9638a325 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 3091926095ff53eee1e98c08136cb6ff8e0a4b0e..a6433b1964afd4a0d6c9090c7007e374a5a583af 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 d9910d5a98f378e9fab91b880ef50d5bb69d267c..c8168eaf460869eca114f43a218eb2720157b020 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 a55c54a9a46d3d668d99d7e9e4d1b9f45082478e..258bd50fcad01bd14838e507ecee2856b5418a28 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 b0183af7fc5a3294146074ddf8965ce3d6c20704..a58489228d81ede597e59b365980452278821ea0 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 f96add3d8c323ade404c3a83e3dd8a3f22100eba..75def433d30289f15fd03fa8f7b616d13cf71371 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 5b346bef28cdbbecd831984dd20ec429ec357a7f..252b3d3454c9d143baaa40b76a31b0044e63fe9f 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 1400ec67cab9a1eec363a6e86f322e9ef8fccfb0..89bb6cfa794ec07fde85792fe561122089901548 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 5f16e854f42b6fde624b6771b7f1e3cd09f5ef48..1c78d720947a7c5501ff74080808dbc3622f6601 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']) { diff --git a/ocs/providers.php b/ocs/providers.php index d4ccd4ef9f8fddb91c0c5ea64e96e3671b55dbd2..e1d6ef7ee1e0304f8f0b0774cb4a4585f67c1cbf 100644 --- a/ocs/providers.php +++ b/ocs/providers.php @@ -21,7 +21,7 @@ * */ - +require_once('../lib/base.php'); $url='http://'.substr($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],0,-17).'ocs/v1.php/'; diff --git a/ocs/v1.php b/ocs/v1.php index ed97db2d9b355786fac1b6ef903c9cc8e0c10c1b..f5ff6cb6054709908931a4083da630f2e8895a5e 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -21,7 +21,7 @@ * */ - +require_once('../lib/base.php'); @ob_clean(); OC_OCS::handle(); diff --git a/search/ajax/search.php b/search/ajax/search.php index 8f89256b82714524bfb45a3032e357677d6be894..326724d60c4f4787d55a49425c033c50bb9d9ca5 100644 --- a/search/ajax/search.php +++ b/search/ajax/search.php @@ -23,7 +23,7 @@ // Init owncloud - +require_once('../../lib/base.php'); // Check if we are a user OC_JSON::checkLoggedIn(); diff --git a/search/index.php b/search/index.php index d1f94f74a2ed31f5bdbd8828159cb62638d0aedd..518695c56d202d4dab7bc27f6ac1496d9578a63b 100644 --- a/search/index.php +++ b/search/index.php @@ -23,7 +23,7 @@ // Init owncloud - +require_once('../lib/base.php'); // Check if we are a user OC_Util::checkLoggedIn(); diff --git a/settings/admin.php b/settings/admin.php index 399ddd907eec64184716d04f256ed1c5329102e9..a997bad4e3c8553987a73f0ec87ea4194d057dc5 100644 --- a/settings/admin.php +++ b/settings/admin.php @@ -5,7 +5,7 @@ * See the COPYING-README file. */ - +require_once('../lib/base.php'); OC_Util::checkAdminUser(); OC_Util::addStyle( "settings", "settings" ); diff --git a/settings/ajax/changepassword.php b/settings/ajax/changepassword.php index 0ed3c4919f5d92f99e52ae2b2cd3912e199aebd5..860ea987871af323373ebff7a73e245e58655db9 100644 --- a/settings/ajax/changepassword.php +++ b/settings/ajax/changepassword.php @@ -1,7 +1,7 @@ <?php // Init owncloud - +require_once('../../lib/base.php'); $username = isset($_POST["username"]) ? $_POST["username"] : OC_User::getUser(); $password = $_POST["password"]; diff --git a/settings/ajax/creategroup.php b/settings/ajax/creategroup.php index faeccf48b5821c91029ce97dbb20c47ba2a1003f..57d82e7bd94599f16002385cf1de2f8bcc5f82b0 100644 --- a/settings/ajax/creategroup.php +++ b/settings/ajax/creategroup.php @@ -1,7 +1,7 @@ <?php // Init owncloud - +require_once('../../lib/base.php'); // Check if we are a user if( !OC_User::isLoggedIn() || !OC_Group::inGroup( OC_User::getUser(), 'admin' )){ diff --git a/settings/ajax/createuser.php b/settings/ajax/createuser.php index e1eb1a78669d956a57b8a092b4cad85912caf1f1..1ed53efcf062f1c5bc6b3a3b420e81a22d8311b6 100644 --- a/settings/ajax/createuser.php +++ b/settings/ajax/createuser.php @@ -1,7 +1,7 @@ <?php // Init owncloud - +require_once('../../lib/base.php'); // Check if we are a user if( !OC_User::isLoggedIn() || !OC_Group::inGroup( OC_User::getUser(), 'admin' )){ diff --git a/settings/ajax/disableapp.php b/settings/ajax/disableapp.php index 859c293722b16907d28c43ce9e01122900312e32..53e9be379e19eae172eff3b15215a60425060c66 100644 --- a/settings/ajax/disableapp.php +++ b/settings/ajax/disableapp.php @@ -1,6 +1,6 @@ <?php // Init owncloud - +require_once('../../lib/base.php'); OC_JSON::checkAdminUser(); OC_JSON::setContentTypeHeader(); diff --git a/settings/ajax/enableapp.php b/settings/ajax/enableapp.php index bebcbcc903fa4ca6c6ae2f58691251d62778007f..cb116ebe4e84bf1a3e88431d684f12ec03ad8d55 100644 --- a/settings/ajax/enableapp.php +++ b/settings/ajax/enableapp.php @@ -1,7 +1,7 @@ <?php // Init owncloud - +require_once('../../lib/base.php'); OC_JSON::checkAdminUser(); OC_JSON::setContentTypeHeader(); diff --git a/settings/ajax/getlog.php b/settings/ajax/getlog.php index bcb05fdd02b3ff405d942c7ac46b5c2377479982..ed48b2cae1ad14af1f4cfdb8e6b02375ed590832 100644 --- a/settings/ajax/getlog.php +++ b/settings/ajax/getlog.php @@ -6,7 +6,7 @@ */ // Init owncloud - +require_once('../../lib/base.php'); OC_JSON::checkAdminUser(); diff --git a/settings/ajax/lostpassword.php b/settings/ajax/lostpassword.php index 4368566992cd1cf721d85a86121fb4c042590722..5874dec9647d67323123d941dc5bbfe9002d71d3 100644 --- a/settings/ajax/lostpassword.php +++ b/settings/ajax/lostpassword.php @@ -1,7 +1,7 @@ <?php // Init owncloud - +require_once('../../lib/base.php'); OC_JSON::checkLoggedIn(); diff --git a/settings/ajax/openid.php b/settings/ajax/openid.php index 712f5b652feb252ef9c3657386bf453b12098d36..58d071255c205c0c10224e23b836399460bf654b 100644 --- a/settings/ajax/openid.php +++ b/settings/ajax/openid.php @@ -1,7 +1,7 @@ <?php // Init owncloud - +require_once('../../lib/base.php'); $l=OC_L10N::get('settings'); diff --git a/settings/ajax/removegroup.php b/settings/ajax/removegroup.php index 73f86061e3f01c0b550549a0060fee570d06196f..4d3647818949f28d323aeef433082a8918465b89 100644 --- a/settings/ajax/removegroup.php +++ b/settings/ajax/removegroup.php @@ -1,7 +1,7 @@ <?php // Init owncloud - +require_once('../../lib/base.php'); OC_JSON::checkAdminUser(); diff --git a/settings/ajax/removeuser.php b/settings/ajax/removeuser.php index 325549ba3b5316a81c5f3daf47717aaf49a21198..2c288997a1f2467e8db132d6d1855fe2da264e3f 100644 --- a/settings/ajax/removeuser.php +++ b/settings/ajax/removeuser.php @@ -1,7 +1,7 @@ <?php // Init owncloud - +require_once('../../lib/base.php'); OC_JSON::checkAdminUser(); diff --git a/settings/ajax/setlanguage.php b/settings/ajax/setlanguage.php index bcdc3bc1338f1127c9450370c92ae754e18e1cc7..e3b00c3bc8073b980949fc8dafb925755bd54d34 100644 --- a/settings/ajax/setlanguage.php +++ b/settings/ajax/setlanguage.php @@ -1,7 +1,7 @@ <?php // Init owncloud - +require_once('../../lib/base.php'); $l=OC_L10N::get('settings'); diff --git a/settings/ajax/setloglevel.php b/settings/ajax/setloglevel.php index 6383ce3c80850f212dbbf85c8ad70daa36e9ba59..298cbd64738fb1f0629c44af08eb20eed855c614 100644 --- a/settings/ajax/setloglevel.php +++ b/settings/ajax/setloglevel.php @@ -5,7 +5,7 @@ * See the COPYING-README file. */ - +require_once('../../lib/base.php'); OC_Util::checkAdminUser(); OC_Config::setValue( 'loglevel', $_POST['level'] ); diff --git a/settings/ajax/setquota.php b/settings/ajax/setquota.php index 0e2ca31f1470981d56ace0b03bd100b85dceb62c..f59017600ac5b991069a2b057ed63fcea14cb7e0 100644 --- a/settings/ajax/setquota.php +++ b/settings/ajax/setquota.php @@ -6,7 +6,7 @@ */ // Init owncloud - +require_once('../../lib/base.php'); OC_JSON::checkAdminUser(); diff --git a/settings/ajax/togglegroups.php b/settings/ajax/togglegroups.php index 9449261af7c10be8a3b3a63a0857536a23d641bf..3ee3239dd89ddcc42adb97712d0250dd5f3b2a2a 100644 --- a/settings/ajax/togglegroups.php +++ b/settings/ajax/togglegroups.php @@ -1,7 +1,7 @@ <?php // Init owncloud - +require_once('../../lib/base.php'); OC_JSON::checkAdminUser(); diff --git a/settings/apps.php b/settings/apps.php index aed198c77c66bf1986bfea1c0e7fc2644ef74a94..0889b0c45ed720a9b3953f48169f54ec35d21fe0 100644 --- a/settings/apps.php +++ b/settings/apps.php @@ -21,7 +21,7 @@ * */ - +require_once('../lib/base.php'); OC_Util::checkAdminUser(); // Load the files we need diff --git a/settings/help.php b/settings/help.php index 00e93720eecfa322556030884a3f8f1731dc1bc4..48fcec32782bd9a9dcca3aedeea80cf269ee3d40 100644 --- a/settings/help.php +++ b/settings/help.php @@ -5,7 +5,7 @@ * See the COPYING-README file. */ - +require_once('../lib/base.php'); OC_Util::checkLoggedIn(); diff --git a/settings/log.php b/settings/log.php index 31e6f6ff3714b71c0ead394d41d25ef93cd055ad..ddbf72c4433c2f08270fd2b127c12eef3ea38ba5 100644 --- a/settings/log.php +++ b/settings/log.php @@ -20,7 +20,7 @@ * */ - +require_once('../lib/base.php'); OC_Util::checkAdminUser(); // Load the files we need diff --git a/settings/personal.php b/settings/personal.php index 7717bb76667173952284bfa83f496502afe49f61..41499657ac781fd65c23ce1402174e7125f5ef1c 100755 --- a/settings/personal.php +++ b/settings/personal.php @@ -5,7 +5,7 @@ * See the COPYING-README file. */ - +require_once('../lib/base.php'); OC_Util::checkLoggedIn(); // Highlight navigation entry diff --git a/settings/settings.php b/settings/settings.php index c73d6b706eaee3b0d935e617864e585ee7fe3133..a49de85520bf5ef6302427cf3a87e0cf26001f43 100644 --- a/settings/settings.php +++ b/settings/settings.php @@ -5,7 +5,7 @@ * See the COPYING-README file. */ - +require_once('../lib/base.php'); OC_Util::checkLoggedIn(); OC_Util::addStyle( 'settings', 'settings' ); diff --git a/settings/users.php b/settings/users.php index 591d85ff67567584414e3aef4fe7635b4beb9726..96515a90ce456ed4c213316f2affaa04351de4b1 100644 --- a/settings/users.php +++ b/settings/users.php @@ -5,7 +5,7 @@ * See the COPYING-README file. */ - +require_once('../lib/base.php'); OC_Util::checkAdminUser(); // We have some javascript foo!