restore require once command for non app files

This commit is contained in:
Georg Ehrke 2012-04-18 17:49:50 +02:00
parent b44bc9f4b2
commit 3fb91a7411
35 changed files with 35 additions and 35 deletions

View File

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

View File

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

View File

@ -22,7 +22,7 @@
*/
// Init owncloud
require_once('../../lib/base.php');
$app = $_POST["app"];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@
*/
$RUNTIME_NOAPPS = TRUE; //no apps
require_once('../../lib/base.php');
// Someone lost their password:
if (isset($_POST['user'])) {

View File

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

View File

@ -21,7 +21,7 @@
*
*/
require_once('../lib/base.php');
$url='http://'.substr($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'],0,-17).'ocs/v1.php/';

View File

@ -21,7 +21,7 @@
*
*/
require_once('../lib/base.php');
@ob_clean();
OC_OCS::handle();

View File

@ -23,7 +23,7 @@
// Init owncloud
require_once('../../lib/base.php');
// Check if we are a user
OC_JSON::checkLoggedIn();

View File

@ -23,7 +23,7 @@
// Init owncloud
require_once('../lib/base.php');
// Check if we are a user
OC_Util::checkLoggedIn();

View File

@ -5,7 +5,7 @@
* See the COPYING-README file.
*/
require_once('../lib/base.php');
OC_Util::checkAdminUser();
OC_Util::addStyle( "settings", "settings" );

View File

@ -1,7 +1,7 @@
<?php
// Init owncloud
require_once('../../lib/base.php');
$username = isset($_POST["username"]) ? $_POST["username"] : OC_User::getUser();
$password = $_POST["password"];

View File

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

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@
*/
// Init owncloud
require_once('../../lib/base.php');
OC_JSON::checkAdminUser();

View File

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

View File

@ -1,7 +1,7 @@
<?php
// Init owncloud
require_once('../../lib/base.php');
$l=OC_L10N::get('settings');

View File

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

View File

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

View File

@ -1,7 +1,7 @@
<?php
// Init owncloud
require_once('../../lib/base.php');
$l=OC_L10N::get('settings');

View File

@ -5,7 +5,7 @@
* See the COPYING-README file.
*/
require_once('../../lib/base.php');
OC_Util::checkAdminUser();
OC_Config::setValue( 'loglevel', $_POST['level'] );

View File

@ -6,7 +6,7 @@
*/
// Init owncloud
require_once('../../lib/base.php');
OC_JSON::checkAdminUser();

View File

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

View File

@ -21,7 +21,7 @@
*
*/
require_once('../lib/base.php');
OC_Util::checkAdminUser();
// Load the files we need

View File

@ -5,7 +5,7 @@
* See the COPYING-README file.
*/
require_once('../lib/base.php');
OC_Util::checkLoggedIn();

View File

@ -20,7 +20,7 @@
*
*/
require_once('../lib/base.php');
OC_Util::checkAdminUser();
// Load the files we need

View File

@ -5,7 +5,7 @@
* See the COPYING-README file.
*/
require_once('../lib/base.php');
OC_Util::checkLoggedIn();
// Highlight navigation entry

View File

@ -5,7 +5,7 @@
* See the COPYING-README file.
*/
require_once('../lib/base.php');
OC_Util::checkLoggedIn();
OC_Util::addStyle( 'settings', 'settings' );

View File

@ -5,7 +5,7 @@
* See the COPYING-README file.
*/
require_once('../lib/base.php');
OC_Util::checkAdminUser();
// We have some javascript foo!