remove the require_once lib base from all (or nearly all) files

This commit is contained in:
Georg Ehrke 2012-04-17 19:31:29 +02:00
parent 1281809300
commit 69ee0efc0b
147 changed files with 147 additions and 147 deletions

View File

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

View File

@ -24,7 +24,7 @@
//no apps or filesystem //no apps or filesystem
$RUNTIME_NOSETUPFS=true; $RUNTIME_NOSETUPFS=true;
require_once('../../../lib/base.php');
// Check if we are a user // Check if we are a user
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();

View File

@ -24,7 +24,7 @@
//no apps or filesystem //no apps or filesystem
$RUNTIME_NOSETUPFS=true; $RUNTIME_NOSETUPFS=true;
require_once('../../../lib/base.php');
// Check if we are a user // Check if we are a user
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();

View File

@ -24,7 +24,7 @@
//no apps or filesystem //no apps or filesystem
$RUNTIME_NOSETUPFS=true; $RUNTIME_NOSETUPFS=true;
require_once('../../../lib/base.php');
// Check if we are a user // Check if we are a user
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();

View File

@ -24,7 +24,7 @@
//no apps or filesystem //no apps or filesystem
$RUNTIME_NOSETUPFS=true; $RUNTIME_NOSETUPFS=true;
require_once('../../../lib/base.php');
// Check if we are a user // Check if we are a user
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();

View File

@ -25,7 +25,7 @@
//no apps or filesystem //no apps or filesystem
$RUNTIME_NOSETUPFS=true; $RUNTIME_NOSETUPFS=true;
require_once('../../../lib/base.php');
// Check if we are a user // Check if we are a user
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();

View File

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

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar'); OC_JSON::checkAppEnabled('calendar');
$calendarid = $_POST['calendarid']; $calendarid = $_POST['calendarid'];

View File

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

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar'); OC_JSON::checkAppEnabled('calendar');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar'); OC_JSON::checkAppEnabled('calendar');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar'); OC_JSON::checkAppEnabled('calendar');
$calendarcolor_options = OC_Calendar_Calendar::getCalendarColorOptions(); $calendarcolor_options = OC_Calendar_Calendar::getCalendarColorOptions();

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
// Check if we are a user // Check if we are a user
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
$l10n = OC_L10N::get('calendar'); $l10n = OC_L10N::get('calendar');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar'); OC_JSON::checkAppEnabled('calendar');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
// Check if we are a user // Check if we are a user
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar'); OC_JSON::checkAppEnabled('calendar');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once ("../../../lib/base.php");
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar'); OC_JSON::checkAppEnabled('calendar');
$view = $_GET['v']; $view = $_GET['v'];

View File

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

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
if(!OC_USER::isLoggedIn()) { if(!OC_USER::isLoggedIn()) {
die('<script type="text/javascript">document.location = oc_webroot;</script>'); die('<script type="text/javascript">document.location = oc_webroot;</script>');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar'); OC_JSON::checkAppEnabled('calendar');

View File

@ -5,7 +5,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
$id = $_POST['id']; $id = $_POST['id'];

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
if(!OC_USER::isLoggedIn()) { if(!OC_USER::isLoggedIn()) {
die('<script type="text/javascript">document.location = oc_webroot;</script>'); die('<script type="text/javascript">document.location = oc_webroot;</script>');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar'); OC_JSON::checkAppEnabled('calendar');

View File

@ -5,7 +5,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
$id = $_POST['id']; $id = $_POST['id'];

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once ('../../../lib/base.php');
require_once('when/When.php'); require_once('when/When.php');
$l = OC_L10N::get('calendar'); $l = OC_L10N::get('calendar');
$unnamed = $l->t('unnamed'); $unnamed = $l->t('unnamed');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_Util::checkAppEnabled('calendar'); OC_Util::checkAppEnabled('calendar');
$tmpl = new OC_Template('calendar', 'part.import'); $tmpl = new OC_Template('calendar', 'part.import');

View File

@ -7,7 +7,7 @@
*/ */
//check for calendar rights or create new one //check for calendar rights or create new one
ob_start(); ob_start();
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_Util::checkAppEnabled('calendar'); OC_Util::checkAppEnabled('calendar');
$nl = "\n\r"; $nl = "\n\r";

View File

@ -5,7 +5,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
$firstday = OC_Preferences::getValue( OC_User::getUser(), 'calendar', 'firstday', 'mo'); $firstday = OC_Preferences::getValue( OC_User::getUser(), 'calendar', 'firstday', 'mo');
OC_JSON::encodedPrint(array('firstday' => $firstday)); OC_JSON::encodedPrint(array('firstday' => $firstday));

View File

@ -5,7 +5,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar'); OC_JSON::checkAppEnabled('calendar');
OC_JSON::success(array('detection' => OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'timezonedetection'))); OC_JSON::success(array('detection' => OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'timezonedetection')));

View File

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

View File

@ -5,7 +5,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
if(isset($_POST["firstday"])){ if(isset($_POST["firstday"])){
OC_Preferences::setValue(OC_User::getUser(), 'calendar', 'firstday', $_POST["firstday"]); OC_Preferences::setValue(OC_User::getUser(), 'calendar', 'firstday', $_POST["firstday"]);

View File

@ -5,7 +5,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
if(isset($_POST["timeformat"])){ if(isset($_POST["timeformat"])){
OC_Preferences::setValue(OC_User::getUser(), 'calendar', 'timeformat', $_POST["timeformat"]); OC_Preferences::setValue(OC_User::getUser(), 'calendar', 'timeformat', $_POST["timeformat"]);

View File

@ -7,7 +7,7 @@
*/ */
// Init owncloud // Init owncloud
require_once('../../../../lib/base.php');
$l=OC_L10N::get('calendar'); $l=OC_L10N::get('calendar');

View File

@ -5,7 +5,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
$timeformat = OC_Preferences::getValue( OC_User::getUser(), 'calendar', 'timeformat', "24"); $timeformat = OC_Preferences::getValue( OC_User::getUser(), 'calendar', 'timeformat', "24");
OC_JSON::encodedPrint(array("timeformat" => $timeformat)); OC_JSON::encodedPrint(array("timeformat" => $timeformat));

View File

@ -5,7 +5,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('calendar'); OC_JSON::checkAppEnabled('calendar');
if($_POST['timezonedetection'] == 'on'){ if($_POST['timezonedetection'] == 'on'){

View File

@ -5,7 +5,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
$id = strip_tags($_GET['id']); $id = strip_tags($_GET['id']);
$idtype = strip_tags($_GET['idtype']); $idtype = strip_tags($_GET['idtype']);
$permission = (int) strip_tags($_GET['permission']); $permission = (int) strip_tags($_GET['permission']);

View File

@ -5,7 +5,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
$user = OC_USER::getUser(); $user = OC_USER::getUser();
$calid = $_GET['calid']; $calid = $_GET['calid'];
$calendar = OC_Calendar_Calendar::find($calid); $calendar = OC_Calendar_Calendar::find($calid);

View File

@ -5,7 +5,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
$id = strip_tags($_GET['id']); $id = strip_tags($_GET['id']);
$idtype = strip_tags($_GET['idtype']); $idtype = strip_tags($_GET['idtype']);
switch($idtype){ switch($idtype){

View File

@ -5,7 +5,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
$id = strip_tags($_GET['id']); $id = strip_tags($_GET['id']);
$idtype = strip_tags($_GET['idtype']); $idtype = strip_tags($_GET['idtype']);
switch($idtype){ switch($idtype){

View File

@ -9,7 +9,7 @@
// Do not load FS ... // Do not load FS ...
$RUNTIME_NOSETUPFS = true; $RUNTIME_NOSETUPFS = true;
require_once('../../lib/base.php');
OC_Util::checkAppEnabled('calendar'); OC_Util::checkAppEnabled('calendar');
// Backends // Backends

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once ('../../lib/base.php');
OC_Util::checkLoggedIn(); OC_Util::checkLoggedIn();
OC_Util::checkAppEnabled('calendar'); OC_Util::checkAppEnabled('calendar');
$cal = isset($_GET['calid']) ? $_GET['calid'] : NULL; $cal = isset($_GET['calid']) ? $_GET['calid'] : NULL;

View File

@ -7,7 +7,7 @@
*/ */
//check for calendar rights or create new one //check for calendar rights or create new one
ob_start(); ob_start();
require_once ('../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_Util::checkAppEnabled('calendar'); OC_Util::checkAppEnabled('calendar');
$nl = "\n"; $nl = "\n";

View File

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

View File

@ -1,4 +1,4 @@
<?php <?php
require_once ("../../lib/base.php");
OC_Preferences::deleteKey(OC_USER::getUser(), 'calendar', 'timezone'); OC_Preferences::deleteKey(OC_USER::getUser(), 'calendar', 'timezone');
?> ?>

View File

@ -7,7 +7,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once ("../../../lib/base.php");
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts'); OC_JSON::checkAppEnabled('contacts');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts'); OC_JSON::checkAppEnabled('contacts');
$book = array( $book = array(

View File

@ -21,7 +21,7 @@
*/ */
// Init owncloud // Init owncloud
require_once('../../../lib/base.php');
function bailOut($msg) { function bailOut($msg) {
OC_JSON::error(array('data' => array('message' => $msg))); OC_JSON::error(array('data' => array('message' => $msg)));
OC_Log::write('contacts','ajax/addcontact.php: '.$msg, OC_Log::DEBUG); OC_Log::write('contacts','ajax/addcontact.php: '.$msg, OC_Log::DEBUG);

View File

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

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts'); OC_JSON::checkAppEnabled('contacts');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts'); OC_JSON::checkAppEnabled('contacts');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts'); OC_JSON::checkAppEnabled('contacts');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts'); OC_JSON::checkAppEnabled('contacts');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts'); OC_JSON::checkAppEnabled('contacts');

View File

@ -21,7 +21,7 @@
*/ */
// Init owncloud // Init owncloud
require_once('../../../lib/base.php');
function bailOut($msg) { function bailOut($msg) {
OC_JSON::error(array('data' => array('message' => $msg))); OC_JSON::error(array('data' => array('message' => $msg)));
OC_Log::write('contacts','ajax/contactdetails.php: '.$msg, OC_Log::DEBUG); OC_Log::write('contacts','ajax/contactdetails.php: '.$msg, OC_Log::DEBUG);

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts'); OC_JSON::checkAppEnabled('contacts');

View File

@ -6,7 +6,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../lib/base.php');
// Check if we are a user // Check if we are a user
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();

View File

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

View File

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

View File

@ -26,7 +26,7 @@ function bailOut($msg) {
} }
// Init owncloud // Init owncloud
require_once('../../../lib/base.php');
// Check if we are a user // Check if we are a user
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();

View File

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

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts'); OC_JSON::checkAppEnabled('contacts');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts'); OC_JSON::checkAppEnabled('contacts');
$addressbook = OC_Contacts_App::getAddressbook($_GET['bookid']); $addressbook = OC_Contacts_App::getAddressbook($_GET['bookid']);

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts'); OC_JSON::checkAppEnabled('contacts');
function bailOut($msg) { function bailOut($msg) {

View File

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

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_Util::checkAppEnabled('contacts'); OC_Util::checkAppEnabled('contacts');
$tmpl = new OC_Template('contacts', 'part.import'); $tmpl = new OC_Template('contacts', 'part.import');

View File

@ -21,7 +21,7 @@
*/ */
// Init owncloud // Init owncloud
require_once('../../../lib/base.php');
function bailOut($msg) { function bailOut($msg) {
OC_JSON::error(array('data' => array('message' => $msg))); OC_JSON::error(array('data' => array('message' => $msg)));
OC_Log::write('contacts','ajax/loadcard.php: '.$msg, OC_Log::DEBUG); OC_Log::write('contacts','ajax/loadcard.php: '.$msg, OC_Log::DEBUG);

View File

@ -21,7 +21,7 @@
*/ */
// Init owncloud // Init owncloud
require_once('../../../lib/base.php');
function bailOut($msg) { function bailOut($msg) {
OC_JSON::error(array('data' => array('message' => $msg))); OC_JSON::error(array('data' => array('message' => $msg)));
OC_Log::write('contacts','ajax/loadintro.php: '.$msg, OC_Log::DEBUG); OC_Log::write('contacts','ajax/loadintro.php: '.$msg, OC_Log::DEBUG);

View File

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

View File

@ -21,7 +21,7 @@
*/ */
// Init owncloud // Init owncloud
require_once('../../../lib/base.php');
function bailOut($msg) { function bailOut($msg) {
OC_JSON::error(array('data' => array('message' => $msg))); OC_JSON::error(array('data' => array('message' => $msg)));
OC_Log::write('contacts','ajax/newcontact.php: '.$msg, OC_Log::DEBUG); OC_Log::write('contacts','ajax/newcontact.php: '.$msg, OC_Log::DEBUG);

View File

@ -22,7 +22,7 @@
* Remember to delete tmp file at some point. * Remember to delete tmp file at some point.
*/ */
// Init owncloud // Init owncloud
require_once('../../../lib/base.php');
OC_Log::write('contacts','ajax/savecrop.php: Huzzah!!!', OC_Log::DEBUG); OC_Log::write('contacts','ajax/savecrop.php: Huzzah!!!', OC_Log::DEBUG);
// Check if we are a user // Check if we are a user

View File

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

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../lib/base.php');
// Check if we are a user // Check if we are a user
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();

View File

@ -20,7 +20,7 @@
* *
*/ */
// Init owncloud // Init owncloud
require_once('../../../lib/base.php');
// Check if we are a user // Check if we are a user
// Firefox and Konqueror tries to download application/json for me. --Arthur // Firefox and Konqueror tries to download application/json for me. --Arthur

View File

@ -23,7 +23,7 @@
// Do not load FS ... // Do not load FS ...
$RUNTIME_NOSETUPFS = true; $RUNTIME_NOSETUPFS = true;
require_once('../../lib/base.php');
OC_Util::checkAppEnabled('contacts'); OC_Util::checkAppEnabled('contacts');
// Backends // Backends

View File

@ -21,7 +21,7 @@
*/ */
// Init owncloud // Init owncloud
require_once('../../lib/base.php');
$tmp_path = $_GET['tmp_path']; $tmp_path = $_GET['tmp_path'];
$maxsize = isset($_GET['maxsize']) ? $_GET['maxsize'] : -1; $maxsize = isset($_GET['maxsize']) ? $_GET['maxsize'] : -1;
header("Cache-Control: no-cache, no-store, must-revalidate"); header("Cache-Control: no-cache, no-store, must-revalidate");

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once ("../../lib/base.php");
OC_Util::checkLoggedIn(); OC_Util::checkLoggedIn();
OC_Util::checkAppEnabled('contacts'); OC_Util::checkAppEnabled('contacts');
$bookid = isset($_GET['bookid']) ? $_GET['bookid'] : NULL; $bookid = isset($_GET['bookid']) ? $_GET['bookid'] : NULL;

View File

@ -7,7 +7,7 @@
*/ */
//check for addressbooks rights or create new one //check for addressbooks rights or create new one
ob_start(); ob_start();
require_once ('../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_Util::checkAppEnabled('calendar'); OC_Util::checkAppEnabled('calendar');
$nl = "\n"; $nl = "\n";

View File

@ -6,7 +6,7 @@
* later. * later.
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../lib/base.php');
// Check if we are a user // Check if we are a user
OC_Util::checkLoggedIn(); OC_Util::checkLoggedIn();

View File

@ -9,7 +9,7 @@
*/ */
// Init owncloud // Init owncloud
require_once('../../lib/base.php');
OC_Util::checkLoggedIn(); OC_Util::checkLoggedIn();
OC_Util::checkAppEnabled('contacts'); OC_Util::checkAppEnabled('contacts');

View File

@ -21,7 +21,7 @@
*/ */
// Init owncloud // Init owncloud
require_once('../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
//OC_Util::checkLoggedIn(); //OC_Util::checkLoggedIn();
OC_Util::checkAppEnabled('contacts'); OC_Util::checkAppEnabled('contacts');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file. * See the COPYING-README file.
*/ */
require_once('../../../lib/base.php');
OC_Util::checkAdminUser(); OC_Util::checkAdminUser();
$sites = array(); $sites = array();

View File

@ -20,7 +20,7 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>. * License along with this library. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
require_once('../../lib/base.php');
require_once('lib/external.php'); require_once('lib/external.php');
OC_Util::checkLoggedIn(); OC_Util::checkLoggedIn();

View File

@ -1,7 +1,7 @@
<?php <?php
//$RUNTIME_NOAPPS = true; //$RUNTIME_NOAPPS = true;
require_once('../../../lib/base.php');
OC_JSON::checkAppEnabled('files_sharing'); OC_JSON::checkAppEnabled('files_sharing');
require_once('../lib_share.php'); require_once('../lib_share.php');

View File

@ -1,7 +1,7 @@
<?php <?php
//$RUNTIME_NOAPPS = true; //$RUNTIME_NOAPPS = true;
require_once('../../../lib/base.php');
OC_JSON::checkAppEnabled('files_sharing'); OC_JSON::checkAppEnabled('files_sharing');
require_once('../lib_share.php'); require_once('../lib_share.php');

View File

@ -1,7 +1,7 @@
<?php <?php
//$RUNTIME_NOAPPS = true; //$RUNTIME_NOAPPS = true;
require_once('../../../lib/base.php');
OC_JSON::checkAppEnabled('files_sharing'); OC_JSON::checkAppEnabled('files_sharing');
require_once('../lib_share.php'); require_once('../lib_share.php');

View File

@ -1,7 +1,7 @@
<?php <?php
//$RUNTIME_NOAPPS = true; //$RUNTIME_NOAPPS = true;
require_once('../../../lib/base.php');
OC_JSON::checkAppEnabled('files_sharing'); OC_JSON::checkAppEnabled('files_sharing');
require_once('../lib_share.php'); require_once('../lib_share.php');

View File

@ -1,7 +1,7 @@
<?php <?php
//$RUNTIME_NOAPPS = true; //$RUNTIME_NOAPPS = true;
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('files_sharing'); OC_JSON::checkAppEnabled('files_sharing');

View File

@ -20,7 +20,7 @@
* *
*/ */
require_once('../../lib/base.php');
require_once('lib_share.php'); require_once('lib_share.php');
OC_Util::checkLoggedIn(); OC_Util::checkLoggedIn();

View File

@ -21,7 +21,7 @@
*/ */
// Init owncloud // Init owncloud
require_once('../../../lib/base.php');
// Check if we are a user // Check if we are a user

View File

@ -21,7 +21,7 @@
*/ */
// Init owncloud // Init owncloud
require_once('../../../lib/base.php');
// Check if we are a user // Check if we are a user

View File

@ -21,7 +21,7 @@
*/ */
// Init owncloud // Init owncloud
require_once('../../../lib/base.php');
// Check if we are a user // Check if we are a user

View File

@ -4,7 +4,7 @@
* This file is licensed under the Affero General Public License version 3 or * This file is licensed under the Affero General Public License version 3 or
* later. * later.
*/ */
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
// Fetch current commit (or HEAD if not yet set) // Fetch current commit (or HEAD if not yet set)

View File

@ -4,7 +4,7 @@
* This file is licensed under the Affero General Public License version 3 or * This file is licensed under the Affero General Public License version 3 or
* later. * later.
*/ */
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
if(isset($_POST["file_versioning_head"])){ if(isset($_POST["file_versioning_head"])){
OC_Preferences::setValue(OC_User::getUser(), 'files_versioning', 'head', $_POST["file_versioning_head"]); OC_Preferences::setValue(OC_User::getUser(), 'files_versioning', 'head', $_POST["file_versioning_head"]);

View File

@ -21,7 +21,7 @@
* *
*/ */
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('gallery'); OC_JSON::checkAppEnabled('gallery');

View File

@ -22,7 +22,7 @@
*/ */
header('Content-type: text/html; charset=UTF-8') ; header('Content-type: text/html; charset=UTF-8') ;
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('gallery'); OC_JSON::checkAppEnabled('gallery');

View File

@ -21,7 +21,7 @@
* *
*/ */
require_once('../../../lib/base.php');
if (!isset($_GET['token']) || !isset($_GET['operation'])) { if (!isset($_GET['token']) || !isset($_GET['operation'])) {
OC_JSON::error(array('cause' => 'Not enought arguments')); OC_JSON::error(array('cause' => 'Not enought arguments'));

View File

@ -21,7 +21,7 @@
* *
*/ */
require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn(); OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('gallery'); OC_JSON::checkAppEnabled('gallery');

View File

@ -21,7 +21,7 @@
* *
*/ */
require_once('../../lib/base.php');
OC_Util::checkLoggedIn(); OC_Util::checkLoggedIn();
OC_Util::checkAppEnabled('gallery'); OC_Util::checkAppEnabled('gallery');

View File

@ -92,7 +92,7 @@ class OC_Gallery_Album {
} }
public static function changeThumbnailPath($oldname, $newname) { public static function changeThumbnailPath($oldname, $newname) {
require_once('../../../lib/base.php');
$thumbpath = OC::$CONFIG_DATADIRECTORY.'/../gallery/'; $thumbpath = OC::$CONFIG_DATADIRECTORY.'/../gallery/';
rename($thumbpath.$oldname.'.png', $thumbpath.$newname.'.png'); rename($thumbpath.$oldname.'.png', $thumbpath.$newname.'.png');
} }

View File

@ -22,7 +22,7 @@
*/ */
if (file_exists('../../../lib/base.php')) if (file_exists('../../../lib/base.php'))
require_once('../../../lib/base.php');
elseif (file_exists('lib/base.php')) elseif (file_exists('lib/base.php'))
require_once('lib/base.php'); require_once('lib/base.php');

Some files were not shown because too many files have changed in this diff Show More