Pārlūkot izejas kodu

restore require once command for non app files

tags/v4.0.0beta
Georg Ehrke pirms 12 gadiem
vecāks
revīzija
3fb91a7411

+ 1
- 1
core/ajax/appconfig.php Parādīt failu

@@ -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;

+ 1
- 1
core/ajax/grouplist.php Parādīt failu

@@ -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'])){

+ 1
- 1
core/ajax/translations.php Parādīt failu

@@ -22,7 +22,7 @@
*/

// Init owncloud
require_once('../../lib/base.php');

$app = $_POST["app"];


+ 1
- 1
core/ajax/userlist.php Parādīt failu

@@ -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'])){

+ 1
- 1
core/ajax/validateuser.php Parādīt failu

@@ -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"');

+ 1
- 1
core/ajax/vcategories/add.php Parādīt failu

@@ -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;

+ 1
- 1
core/ajax/vcategories/delete.php Parādīt failu

@@ -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;

+ 1
- 1
core/ajax/vcategories/edit.php Parādīt failu

@@ -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;


+ 1
- 1
core/lostpassword/index.php Parādīt failu

@@ -7,7 +7,7 @@
*/

$RUNTIME_NOAPPS = TRUE; //no apps
require_once('../../lib/base.php');

// Someone lost their password:
if (isset($_POST['user'])) {

+ 1
- 1
core/lostpassword/resetpassword.php Parādīt failu

@@ -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']) {

+ 1
- 1
ocs/providers.php Parādīt failu

@@ -21,7 +21,7 @@
*
*/

require_once('../lib/base.php');

$url='http://'.substr($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],0,-17).'ocs/v1.php/';


+ 1
- 1
ocs/v1.php Parādīt failu

@@ -21,7 +21,7 @@
*
*/

require_once('../lib/base.php');
@ob_clean();
OC_OCS::handle();


+ 1
- 1
search/ajax/search.php Parādīt failu

@@ -23,7 +23,7 @@


// Init owncloud
require_once('../../lib/base.php');

// Check if we are a user
OC_JSON::checkLoggedIn();

+ 1
- 1
search/index.php Parādīt failu

@@ -23,7 +23,7 @@


// Init owncloud
require_once('../lib/base.php');

// Check if we are a user
OC_Util::checkLoggedIn();

+ 1
- 1
settings/admin.php Parādīt failu

@@ -5,7 +5,7 @@
* See the COPYING-README file.
*/

require_once('../lib/base.php');
OC_Util::checkAdminUser();

OC_Util::addStyle( "settings", "settings" );

+ 1
- 1
settings/ajax/changepassword.php Parādīt failu

@@ -1,7 +1,7 @@
<?php

// Init owncloud
require_once('../../lib/base.php');

$username = isset($_POST["username"]) ? $_POST["username"] : OC_User::getUser();
$password = $_POST["password"];

+ 1
- 1
settings/ajax/creategroup.php Parādīt failu

@@ -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' )){

+ 1
- 1
settings/ajax/createuser.php Parādīt failu

@@ -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' )){

+ 1
- 1
settings/ajax/disableapp.php Parādīt failu

@@ -1,6 +1,6 @@
<?php
// Init owncloud
require_once('../../lib/base.php');
OC_JSON::checkAdminUser();
OC_JSON::setContentTypeHeader();


+ 1
- 1
settings/ajax/enableapp.php Parādīt failu

@@ -1,7 +1,7 @@
<?php

// Init owncloud
require_once('../../lib/base.php');
OC_JSON::checkAdminUser();
OC_JSON::setContentTypeHeader();


+ 1
- 1
settings/ajax/getlog.php Parādīt failu

@@ -6,7 +6,7 @@
*/

// Init owncloud
require_once('../../lib/base.php');

OC_JSON::checkAdminUser();


+ 1
- 1
settings/ajax/lostpassword.php Parādīt failu

@@ -1,7 +1,7 @@
<?php

// Init owncloud
require_once('../../lib/base.php');

OC_JSON::checkLoggedIn();


+ 1
- 1
settings/ajax/openid.php Parādīt failu

@@ -1,7 +1,7 @@
<?php

// Init owncloud
require_once('../../lib/base.php');

$l=OC_L10N::get('settings');


+ 1
- 1
settings/ajax/removegroup.php Parādīt failu

@@ -1,7 +1,7 @@
<?php

// Init owncloud
require_once('../../lib/base.php');

OC_JSON::checkAdminUser();


+ 1
- 1
settings/ajax/removeuser.php Parādīt failu

@@ -1,7 +1,7 @@
<?php

// Init owncloud
require_once('../../lib/base.php');

OC_JSON::checkAdminUser();


+ 1
- 1
settings/ajax/setlanguage.php Parādīt failu

@@ -1,7 +1,7 @@
<?php

// Init owncloud
require_once('../../lib/base.php');

$l=OC_L10N::get('settings');


+ 1
- 1
settings/ajax/setloglevel.php Parādīt failu

@@ -5,7 +5,7 @@
* See the COPYING-README file.
*/

require_once('../../lib/base.php');
OC_Util::checkAdminUser();

OC_Config::setValue( 'loglevel', $_POST['level'] );

+ 1
- 1
settings/ajax/setquota.php Parādīt failu

@@ -6,7 +6,7 @@
*/

// Init owncloud
require_once('../../lib/base.php');

OC_JSON::checkAdminUser();


+ 1
- 1
settings/ajax/togglegroups.php Parādīt failu

@@ -1,7 +1,7 @@
<?php

// Init owncloud
require_once('../../lib/base.php');

OC_JSON::checkAdminUser();


+ 1
- 1
settings/apps.php Parādīt failu

@@ -21,7 +21,7 @@
*
*/

require_once('../lib/base.php');
OC_Util::checkAdminUser();

// Load the files we need

+ 1
- 1
settings/help.php Parādīt failu

@@ -5,7 +5,7 @@
* See the COPYING-README file.
*/

require_once('../lib/base.php');
OC_Util::checkLoggedIn();



+ 1
- 1
settings/log.php Parādīt failu

@@ -20,7 +20,7 @@
*
*/

require_once('../lib/base.php');
OC_Util::checkAdminUser();

// Load the files we need

+ 1
- 1
settings/personal.php Parādīt failu

@@ -5,7 +5,7 @@
* See the COPYING-README file.
*/

require_once('../lib/base.php');
OC_Util::checkLoggedIn();

// Highlight navigation entry

+ 1
- 1
settings/settings.php Parādīt failu

@@ -5,7 +5,7 @@
* See the COPYING-README file.
*/

require_once('../lib/base.php');
OC_Util::checkLoggedIn();

OC_Util::addStyle( 'settings', 'settings' );

+ 1
- 1
settings/users.php Parādīt failu

@@ -5,7 +5,7 @@
* See the COPYING-README file.
*/

require_once('../lib/base.php');
OC_Util::checkAdminUser();

// We have some javascript foo!

Notiek ielāde…
Atcelt
Saglabāt