]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove the require_once lib base from all (or nearly all) files
authorGeorg Ehrke <dev@georgswebsite.de>
Tue, 17 Apr 2012 17:31:29 +0000 (19:31 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Tue, 17 Apr 2012 17:31:29 +0000 (19:31 +0200)
147 files changed:
apps/bookmarks/addBm.php
apps/bookmarks/ajax/addBookmark.php
apps/bookmarks/ajax/delBookmark.php
apps/bookmarks/ajax/editBookmark.php
apps/bookmarks/ajax/recordClick.php
apps/bookmarks/ajax/updateList.php
apps/bookmarks/index.php
apps/calendar/ajax/calendar/activation.php
apps/calendar/ajax/calendar/delete.php
apps/calendar/ajax/calendar/edit.form.php
apps/calendar/ajax/calendar/edit.php
apps/calendar/ajax/calendar/new.form.php
apps/calendar/ajax/calendar/new.php
apps/calendar/ajax/calendar/overview.php
apps/calendar/ajax/calendar/update.php
apps/calendar/ajax/categories/rescan.php
apps/calendar/ajax/changeview.php
apps/calendar/ajax/event/delete.php
apps/calendar/ajax/event/edit.form.php
apps/calendar/ajax/event/edit.php
apps/calendar/ajax/event/move.php
apps/calendar/ajax/event/new.form.php
apps/calendar/ajax/event/new.php
apps/calendar/ajax/event/resize.php
apps/calendar/ajax/events.php
apps/calendar/ajax/import/dialog.php
apps/calendar/ajax/import/import.php
apps/calendar/ajax/settings/getfirstday.php
apps/calendar/ajax/settings/gettimezonedetection.php
apps/calendar/ajax/settings/guesstimezone.php
apps/calendar/ajax/settings/setfirstday.php
apps/calendar/ajax/settings/settimeformat.php
apps/calendar/ajax/settings/settimezone.php
apps/calendar/ajax/settings/timeformat.php
apps/calendar/ajax/settings/timezonedetection.php
apps/calendar/ajax/share/changepermission.php
apps/calendar/ajax/share/dropdown.php
apps/calendar/ajax/share/share.php
apps/calendar/ajax/share/unshare.php
apps/calendar/caldav.php
apps/calendar/export.php
apps/calendar/import.php
apps/calendar/index.php
apps/calendar/resettimezone.php
apps/contacts/ajax/activation.php
apps/contacts/ajax/addbook.php
apps/contacts/ajax/addcontact.php
apps/contacts/ajax/addproperty.php
apps/contacts/ajax/categories/categoriesfor.php
apps/contacts/ajax/categories/delete.php
apps/contacts/ajax/categories/list.php
apps/contacts/ajax/categories/rescan.php
apps/contacts/ajax/chooseaddressbook.php
apps/contacts/ajax/contactdetails.php
apps/contacts/ajax/contacts.php
apps/contacts/ajax/createaddressbook.php
apps/contacts/ajax/cropphoto.php
apps/contacts/ajax/deletebook.php
apps/contacts/ajax/deletecard.php
apps/contacts/ajax/deleteproperty.php
apps/contacts/ajax/editaddress.php
apps/contacts/ajax/editaddressbook.php
apps/contacts/ajax/editname.php
apps/contacts/ajax/getdetails.php
apps/contacts/ajax/importdialog.php
apps/contacts/ajax/loadcard.php
apps/contacts/ajax/loadintro.php
apps/contacts/ajax/loadphoto.php
apps/contacts/ajax/newcontact.php
apps/contacts/ajax/savecrop.php
apps/contacts/ajax/saveproperty.php
apps/contacts/ajax/updateaddressbook.php
apps/contacts/ajax/uploadphoto.php
apps/contacts/carddav.php
apps/contacts/dynphoto.php
apps/contacts/export.php
apps/contacts/import.php
apps/contacts/index.php
apps/contacts/photo.php
apps/contacts/thumbnail.php
apps/external/ajax/setsites.php
apps/external/index.php
apps/files_sharing/ajax/getitem.php
apps/files_sharing/ajax/setpermissions.php
apps/files_sharing/ajax/share.php
apps/files_sharing/ajax/unshare.php
apps/files_sharing/ajax/userautocomplete.php
apps/files_sharing/list.php
apps/files_texteditor/ajax/loadfile.php
apps/files_texteditor/ajax/mtime.php
apps/files_texteditor/ajax/savefile.php
apps/files_versioning/ajax/gethead.php
apps/files_versioning/ajax/sethead.php
apps/gallery/ajax/createAlbum.php
apps/gallery/ajax/galleryOp.php
apps/gallery/ajax/sharing.php
apps/gallery/ajax/thumbnail.php
apps/gallery/index.php
apps/gallery/lib/album.php
apps/gallery/lib/images_utils.php
apps/gallery/sharing.php
apps/media/ajax/api.php
apps/media/ajax/autoupdate.php
apps/media/index.php
apps/media/server/xml.server.php
apps/media/tomahawk.php
apps/remoteStorage/WebDAV.php
apps/remoteStorage/ajax/revokeToken.php
apps/remoteStorage/auth.php
apps/user_migrate/ajax/export.php
apps/user_webfinger/webfinger.php
core/ajax/appconfig.php
core/ajax/grouplist.php
core/ajax/translations.php
core/ajax/userlist.php
core/ajax/validateuser.php
core/ajax/vcategories/add.php
core/ajax/vcategories/delete.php
core/ajax/vcategories/edit.php
core/lostpassword/index.php
core/lostpassword/resetpassword.php
files/ajax/autocomplete.php
files/ajax/delete.php
files/ajax/download.php
files/ajax/list.php
files/ajax/mimeicon.php
files/ajax/move.php
files/ajax/newfile.php
files/ajax/newfolder.php
files/ajax/rawlist.php
files/ajax/rename.php
files/ajax/upload.php
search/ajax/search.php
settings/ajax/changepassword.php
settings/ajax/creategroup.php
settings/ajax/createuser.php
settings/ajax/disableapp.php
settings/ajax/enableapp.php
settings/ajax/getlog.php
settings/ajax/lostpassword.php
settings/ajax/openid.php
settings/ajax/removegroup.php
settings/ajax/removeuser.php
settings/ajax/setlanguage.php
settings/ajax/setloglevel.php
settings/ajax/setquota.php
settings/ajax/togglegroups.php

index 861b677222d2232f5ba7d4f12f49d11363c4b2b1..27e01bb3baf6a625b3e90ccd1833a7040e2e6d9e 100644 (file)
@@ -21,7 +21,7 @@
 * 
 */
 
-require_once('../../lib/base.php');
+
 
 // Check if we are a user
 OC_Util::checkLoggedIn();
index 8cda7f0f060dc4d03495cfe5fe89af405ef646e4..4daed58af3b4a2b8c2c8b8ad5c1498f9f0a0902d 100644 (file)
@@ -24,7 +24,7 @@
 //no apps or filesystem
 $RUNTIME_NOSETUPFS=true;
 
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 4aef86e771b4b125b71fe56bc3bc1ef7fe1fc7fd..655d9f825d9605110bfab9c386aa58549887af53 100644 (file)
@@ -24,7 +24,7 @@
 //no apps or filesystem
 $RUNTIME_NOSETUPFS=true;
 
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 35f30ebcb7a9e7b8fb3d7e8b1d9b413e0271d225..a834cd216e6e435879ee261410a07b766f15f63b 100644 (file)
@@ -24,7 +24,7 @@
 //no apps or filesystem
 $RUNTIME_NOSETUPFS=true;
 
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index e6fdfe043e1dcd6691e4c55f87da376dbc2f6933..a542f636d8c4feed1137b97af10750c882eeab11 100644 (file)
@@ -24,7 +24,7 @@
 //no apps or filesystem
 $RUNTIME_NOSETUPFS=true;
 
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 487e0d290e3d664097d018fd86c90644e6e84285..6aa951bbb65479186be32ddeb6136c70881fea99 100644 (file)
@@ -25,7 +25,7 @@
 //no apps or filesystem
 $RUNTIME_NOSETUPFS=true;
 
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 50fea3fddbd68b4966838690799a434c730530b9..4d604a4fd559e1c4e9416d246028d992466497d3 100644 (file)
@@ -21,7 +21,7 @@
 * 
 */
 
-require_once('../../lib/base.php');
+
 
 // Check if we are a user
 OC_Util::checkLoggedIn();
index 7677d85aff30d67c1318aee177f4fbb4c83cbfa1..c93a0495717c1c4da9d7903d817a139dd25e070c 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
 $calendarid = $_POST['calendarid'];
index a2f5311731c5edb0b137a8e0876639109dca3fd9..4bef912333c5b83a305a5149b61fadde27a3480a 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
index 8922b3eba4ed5e05ae174d95ff357c3b6bb71806..d3f9629f1aea9a824b4b28fa45c02b3dc2ba70d0 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
 
index 8922b3eba4ed5e05ae174d95ff357c3b6bb71806..d3f9629f1aea9a824b4b28fa45c02b3dc2ba70d0 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
 
index fa014351f7735b2f662104c594374abdb2aeb797..3de56460c2d65007e59f75b1a9a3612151720158 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
 $calendarcolor_options = OC_Calendar_Calendar::getCalendarColorOptions();
index 228e6247724dfbf0dcfc32235ca2294b86c6a5a4..ada28a9fc07c099fc41bf4b679cba4fce98f980b 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index dd55f3e018f8ba1555e85993f45a1b4dc5d2bd8f..f66d1eae8f80df8243a81e4ba6e73a1f333152c5 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 $l10n = OC_L10N::get('calendar');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
index f400c8c14b43018fdf12efb541b9f422430d5ba0..9bb1307a8458b5ee0cb881e125928f729030d249 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 0fd878ed8f93cbc9a6497449be80c57f9a24a54b..9273986cad4816db90c5ea98793eba19ba822ba5 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
 
index ae48b229b164f6be44dbed1664fe37958fc4ed87..707c8c59ebf8338e3eb8c9423d3c2c134fb16f78 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once ("../../../lib/base.php");
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
 $view = $_GET['v'];
index 5fc12900ef3bcb23623fb8b96de868f1d697d7d3..49b740656de98c042cc81aaf53723ed0feb4a473 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
index 98c22eb0206c8f5772750d34d7e0eec08349b602..1634e7ea416a10ff1d41d8314f0d3eb8d37d71d3 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 
 if(!OC_USER::isLoggedIn()) {
        die('<script type="text/javascript">document.location = oc_webroot;</script>');
index 64daffddef01b6aad9a7755af270681b65976368..53912cb4c9356c298ec5ce853e98d36682fe735b 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
 
index 8150fdbaa3207fcee344fe15c201476fbea12d52..bfebefb8fe0a5fd301e89b072ac5e6365d41cbaf 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 
 $id = $_POST['id'];
index 838002a3a09e62edec9a4e2c8021db9e2efcec5e..2e03c02af27fb7230015c436eb3621f71a3fbf80 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 
 if(!OC_USER::isLoggedIn()) {
        die('<script type="text/javascript">document.location = oc_webroot;</script>');
index 7070bbf05d7959eb3ac65cf54dcf42120e9dec9a..5e8c305e97a408631994d1682d7ee1b7cd6fd758 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
index aa2d420e77d595d5b8ade1288f79b1576ccfb3d2..9a9d37ff3d4b511133eeea6cab23b36f66452260 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 
 $id = $_POST['id'];
index d053df2e4c11e0e719c1e748a8fc1c51bb360c7e..0cfee0dbdc10e3c48fd0c076b94d1b0427abc917 100755 (executable)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once ('../../../lib/base.php');
 require_once('when/When.php');
 $l = OC_L10N::get('calendar');
 $unnamed = $l->t('unnamed');
index 16ec54d14a2d6d5a77b350dc0400898bf6c73063..0c1a8f94943bd9c8602d5386bf446238ea743730 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_Util::checkAppEnabled('calendar');
 $tmpl = new OC_Template('calendar', 'part.import');
index d0bdab4f0d508a13cb219c4cacd9e50032bdb8ee..95294948f753d5091dc7c76b593f0bd33f618609 100644 (file)
@@ -7,7 +7,7 @@
  */
 //check for calendar rights or create new one
 ob_start();
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_Util::checkAppEnabled('calendar');
 $nl = "\n\r";
index cab5870509a3718c598beee612987dfc7a8665c1..63218dcd0285b4d582d04b8076fcd73855fb61b8 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 $firstday = OC_Preferences::getValue( OC_User::getUser(), 'calendar', 'firstday', 'mo');
 OC_JSON::encodedPrint(array('firstday' => $firstday));
index 11255fe8ef386739105d36fe99838ba729032bfe..b9555900a0ec04f26396e451c327f7a5afcbad92 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
 OC_JSON::success(array('detection' => OC_Preferences::getValue(OC_USER::getUser(), 'calendar', 'timezonedetection')));
\ No newline at end of file
index c02b8d10b8d8352d93569880a70c2dbb830bafee..c0b4ef65263ecd00a01ab664a47a3f1e4de08229 100755 (executable)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
index 3b6522122059598ac64f545e75e92fec9888e684..3b1b5481db4bc7315f38bf5ae9d6e5f91b9f78f3 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 if(isset($_POST["firstday"])){
        OC_Preferences::setValue(OC_User::getUser(), 'calendar', 'firstday', $_POST["firstday"]);
index 8f65447065c1deb22908bcf23b68d23a5bb0a358..374825a5d4043ac4095e69a319e62fe10f22d552 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 if(isset($_POST["timeformat"])){
        OC_Preferences::setValue(OC_User::getUser(), 'calendar', 'timeformat', $_POST["timeformat"]);
index 8dda28335f7fc7cb779ee9b08e901b4e1a4e6f6d..b0ca9dcd9448b2b92e1db4038e17c362d52abc34 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 // Init owncloud
-require_once('../../../../lib/base.php');
 
 $l=OC_L10N::get('calendar');
 
index e0dbe8d3cd7b8631d6780434eb532e0fd7afaf5f..728b7155efeedafcb539ff2fbdde2facf3416075 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 $timeformat = OC_Preferences::getValue( OC_User::getUser(), 'calendar', 'timeformat', "24");
 OC_JSON::encodedPrint(array("timeformat" => $timeformat));
index f67bab901e7e6197f30360a8f32d6ed17cf2f955..d29c5568e4914a200d104350c590609a087404a2 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('calendar');
 if($_POST['timezonedetection'] == 'on'){
index d91f87b613f617487c76dcc5a2a84debd919690d..5538637eab4d9a22ae3fc15e2626bbb757343fdc 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 $id = strip_tags($_GET['id']);
 $idtype = strip_tags($_GET['idtype']);
 $permission = (int) strip_tags($_GET['permission']);
index eb396d38fd9f067c562b8e449c659852bfc28499..85530c163ed1930a3f8821147bff2593c593347d 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 $user = OC_USER::getUser();
 $calid = $_GET['calid'];
 $calendar = OC_Calendar_Calendar::find($calid);
index d892727701a9c5cb7ebc2f2add41af2bacbaef76..88885cd7c10b0cd1e7fe3cc86057d5706b155290 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 $id = strip_tags($_GET['id']);
 $idtype = strip_tags($_GET['idtype']);
 switch($idtype){
index ec3150a89aa882040f2a9ad5a5bbdcde4d49ba1e..97ef7ab2cb099cedb7d8b1cfa64f22f36cb7472e 100644 (file)
@@ -5,7 +5,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../../lib/base.php');
 $id = strip_tags($_GET['id']);
 $idtype = strip_tags($_GET['idtype']);
 switch($idtype){
index b710b99ea43bf069cc8cf989e35a1b120b080dd3..a319fd05223938627b8279f05ef0eac0ded7feeb 100644 (file)
@@ -9,7 +9,7 @@
 // Do not load FS ...
 $RUNTIME_NOSETUPFS = true;
 
-require_once('../../lib/base.php');
+
 OC_Util::checkAppEnabled('calendar');
 
 // Backends
index 2736eec96c2124e0d9363b30f0aaad6b6bd10fe3..658df9db230844a7b5809b320ae9e57b5d0acc6f 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once ('../../lib/base.php');
 OC_Util::checkLoggedIn();
 OC_Util::checkAppEnabled('calendar');
 $cal = isset($_GET['calid']) ? $_GET['calid'] : NULL;
index b1c6f91df8479ea6c15759aaa1367a1fa3923ffc..f4a40e3b4279257608202c66bc8732b2a69009fa 100644 (file)
@@ -7,7 +7,7 @@
  */
 //check for calendar rights or create new one
 ob_start();
-require_once ('../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_Util::checkAppEnabled('calendar');
 $nl = "\n";
index f964a13ef790339a50f03b9a736d856f20a2928a..4aa1f695e31a1e18c50b059c3cae8bb2c06e4d0c 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once ('../../lib/base.php');
 OC_Util::checkLoggedIn();
 OC_Util::checkAppEnabled('calendar');
 
index 1ef9591ae39d8f01f8bdc836b67ae20e3dab482e..0996924b5ad1b66033eeeb46a9a2deab7e6e33e8 100644 (file)
@@ -1,4 +1,4 @@
 <?php
-require_once ("../../lib/base.php"); 
+  
 OC_Preferences::deleteKey(OC_USER::getUser(), 'calendar', 'timezone');
 ?>
\ No newline at end of file
index d69e3dba3f8ce2c7a1259fa226ef6920c2cb3e24..06d1a7e24fcdb84c8063071bee464c3351d0dfa9 100644 (file)
@@ -7,7 +7,7 @@
  * See the COPYING-README file.
  */
 
-require_once ("../../../lib/base.php");
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('contacts');
 
index f5852183cc340b380204c0a8ab7e705d3faeb2b0..f466d57e12e1da59e9f2d7c3f675e9a885512d40 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('contacts');
 $book = array(
index 68da54655aea760a8521fe8f40e5cd575124a8e5..152277181bb6b5ec119a408335be499e0d5c5bc0 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 function bailOut($msg) {
        OC_JSON::error(array('data' => array('message' => $msg)));
        OC_Log::write('contacts','ajax/addcontact.php: '.$msg, OC_Log::DEBUG);
index d2c0291e8c62fcf3d5230835963fbc5ec06029a5..9a5e59692d635ee0a160e81e5570c58ca281ffee 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index c02c37914a22f97a379f575e94e4e52f8caf6fcd..39a7758c8fbdbf276cee9a923b50b00e7419b19d 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('contacts');
 
index 3ba5aa16068eced43d40eec07c245b5ba84bd898..3cc2dea6638e41115c72e896416ea3bd7249a71a 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('contacts');
 
index 64d74c82e69d3e34315fc5f3aaed658f8870b5f2..98c1c7051808905ca56c3832141ad82a71040de2 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('contacts');
 
index 5f1057bab44e5a04f0eadaf6a0c252a8398f681c..09208c3f685fef4e2a987d719c7510f12510a42d 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('contacts');
 
index d6080791299794e83ddebaa82386f97493e60e56..b47c872e9aaab432b71b18922f5994d3b00e3706 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('contacts');
 
index 03895c862aab3ed195a885a962e6b54506e96737..13c3f80c3b5a9d1b1fa4741116d259ab56d53813 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 function bailOut($msg) {
        OC_JSON::error(array('data' => array('message' => $msg)));
        OC_Log::write('contacts','ajax/contactdetails.php: '.$msg, OC_Log::DEBUG);
index cf86764105f1a5bcadb50a0f0bf3f915dd2350a4..3e75e4c80e3acba7a06644b349b3a34eabfd9b88 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('contacts');
 
index 28944fe864c8de48a602f2c92cb921869adcdbb6..5cdb9b49ef826e33136ab72c4b4f622084da8c27 100644 (file)
@@ -6,7 +6,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 878fb5610c611d2a81e4a4a64804d9c2c12b98a1..96e66ffb69c5ea4d8f2699878a6a0029e2dd9250 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 46d8deb48687c44f01d133bba2bf496cfc272fd5..b80df526f9525c5ad6fd9abd0b5c1af98e272259 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 5675aef5f15143d1ca5ade32a2a6b161a644d426..98cdb85f0fc938cd56064174618d86dfd20696d9 100644 (file)
@@ -26,7 +26,7 @@ function bailOut($msg) {
 }
 
 // Init owncloud
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index ab0958cac58ab0a6cdb5c9ff3d2da78871c9845b..73786cb10cf07f858748ce50cc87e773ccaac77d 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 4e6456f6045d42644b5c5b1e3a76e463395355d9..73f34ef5c6c58b52f5136523ed0d25f8c819eb13 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('contacts');
 
index a6262f39b23e244ea7e5b2119cc48c630e86228a..ef797778d959fc5e7e8ae56517d81c8c84cc198d 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('contacts');
 $addressbook = OC_Contacts_App::getAddressbook($_GET['bookid']);
index 31bdd125675445f1c173b5cb14bebb1d4224fff7..9e4d6814620b37f66798df2f790e8d93cb63f8f2 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('contacts');
 function bailOut($msg) {
index 4819916f4c301ae8d9ab088599f55b9b3aacc53d..aac69f4c52ebaef6feeb2304df0c42dbac1d1714 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 280e462f662307b3ee1c4635e53ea81ef6fc6513..cde6bb2f5c4fb301069ed59ef46087db3e93351d 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_Util::checkAppEnabled('contacts');
 $tmpl = new OC_Template('contacts', 'part.import');
index 037fe2a6df279adba220b14a5484bc9baaab9740..4b2a65db911e12b4cf1d65f5a3265f2909668759 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 function bailOut($msg) {
        OC_JSON::error(array('data' => array('message' => $msg)));
        OC_Log::write('contacts','ajax/loadcard.php: '.$msg, OC_Log::DEBUG);
index 8e5673655a17541e9d1f513ba6439ef610eb98bc..7185c5cbe0ace8e5e3063b73e0cac910ded6241f 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 function bailOut($msg) {
        OC_JSON::error(array('data' => array('message' => $msg)));
        OC_Log::write('contacts','ajax/loadintro.php: '.$msg, OC_Log::DEBUG);
index 2c8bb7bf1ed80e1097d1ba70446fea3248605b44..669f9e2844d8259bb67e1ce72cb722d9918d04ef 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 // Init owncloud
-require_once('../../../lib/base.php');
 // Check if we are a user
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('contacts');
index fcfd12ca80d7600ffce43dbbd9e7afa4fda94497..36c37e039e9e1a3b6f2ce2bbddab34f87a2d7332 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 function bailOut($msg) {
        OC_JSON::error(array('data' => array('message' => $msg)));
        OC_Log::write('contacts','ajax/newcontact.php: '.$msg, OC_Log::DEBUG);
index 0df4e1998cba0630765198c0b08745ee76df990f..36ba6a046dcb82154ee9dcfa4acab9f905c6777c 100644 (file)
@@ -22,7 +22,7 @@
  *       Remember to delete tmp file at some point.
  */
 // Init owncloud
-require_once('../../../lib/base.php');
 OC_Log::write('contacts','ajax/savecrop.php: Huzzah!!!', OC_Log::DEBUG);
 
 // Check if we are a user
index 99d55e7927acc7fc5115bd69c2cdbde41c9e28a1..e459ed733d8263bb819c9e92f0dfc3f77e6f86ad 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 211df84b1d18811964964475fb76c4898e496464..06028db479a1f4c3a9745b352158fe673ffb8cd8 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 9780df464767a1cfb2a5b238f3ffb2cacc8eb1e7..9623159622228e7685aed5bf275fdf2aba62ce3d 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 // Init owncloud
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 // Firefox and Konqueror tries to download application/json for me.  --Arthur
index 654aeb66a72174ec9d73c60c76c4b3f13f6ab896..794fb890898b912a0872219e001ec14617b5eff5 100644 (file)
@@ -23,7 +23,7 @@
 // Do not load FS ...
 $RUNTIME_NOSETUPFS = true;
 
-require_once('../../lib/base.php');
+
 OC_Util::checkAppEnabled('contacts');
 
 // Backends
index 2beac15e1437db469517b6089e3b42acd5a28b77..c1646e483deb7fb624753ec7403eb7d9ef747ce6 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 $tmp_path = $_GET['tmp_path'];
 $maxsize = isset($_GET['maxsize']) ? $_GET['maxsize'] : -1;
 header("Cache-Control: no-cache, no-store, must-revalidate");
index fb3e0a41ae7bc9eafe37c8718c6db2a3cbc424b2..95d02a9afd4a0efbb9d3a366ddc67be9797beb5f 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once ("../../lib/base.php");
 OC_Util::checkLoggedIn();
 OC_Util::checkAppEnabled('contacts');
 $bookid = isset($_GET['bookid']) ? $_GET['bookid'] : NULL;
index 04cfc397d56a7322dadbaae7ad90f8e551092f3b..8cf0a173db1570a12e4c3ea963b4707671340c76 100644 (file)
@@ -7,7 +7,7 @@
  */
 //check for addressbooks rights or create new one
 ob_start();
-require_once ('../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_Util::checkAppEnabled('calendar');
 $nl = "\n";
index 4039b8afd3d9479813ca31a0dc3fe6a8f6daca06..d5545e761971600cc73d29d4af3fa83a55dbab37 100644 (file)
@@ -6,7 +6,7 @@
  * later.
  * See the COPYING-README file.
  */
-require_once('../../lib/base.php');
+
 
 // Check if we are a user
 OC_Util::checkLoggedIn();
index 298f1215e3c467685b629cdd37d832093ba28a57..cd0ae350102a7d5c047da345264cd6f243a1fbca 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 OC_Util::checkLoggedIn();
 OC_Util::checkAppEnabled('contacts');
 
index 5082626499bacbd10fc33a58a19157dd4f8c7af0..c7d37b755fe590c0f2ea5932738d4f28e1e2a327 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 OC_JSON::checkLoggedIn();
 //OC_Util::checkLoggedIn();
 OC_Util::checkAppEnabled('contacts');
index 0537b7ea5810fb92f9252c770b2100d8390641e4..3223bf68d9bf9fc5b14e8ba82de2b9b640038c0e 100644 (file)
@@ -6,7 +6,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../../lib/base.php');
 OC_Util::checkAdminUser();
 
 $sites = array();
index 1c20f59eaffc9b0e280e1fdef58c776f10d6d842..0baa62a94b67258e3cd87bf27fddd45d9679427a 100644 (file)
@@ -20,7 +20,7 @@
  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
  * 
  */
-require_once('../../lib/base.php');
+
 require_once('lib/external.php');
 
 OC_Util::checkLoggedIn();
index ba01adffb9a6fa1e45fc95790db7af9e55edf1b6..c838895efbe269497ee65ac4b6b5d7e835b4b937 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 //$RUNTIME_NOAPPS = true;
 
-require_once('../../../lib/base.php');
 OC_JSON::checkAppEnabled('files_sharing');
 require_once('../lib_share.php');
 
index 200202c704c0da0b95cb5a466240fc2bf5e82bbf..d46f6f0c7b4346c4573b4b2a1cf6a38911e6a32a 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 //$RUNTIME_NOAPPS = true;
 
-require_once('../../../lib/base.php');
 OC_JSON::checkAppEnabled('files_sharing');
 require_once('../lib_share.php');
 
index 9b10260da5a0e10945f300b6d69559d3182c7064..cd9166913cb9e57bfb95691122898dd4f303461a 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 //$RUNTIME_NOAPPS = true;
 
-require_once('../../../lib/base.php');
 OC_JSON::checkAppEnabled('files_sharing');
 require_once('../lib_share.php');
 
index d8a72a00efe4317dd41dffa672f550cefe122378..150d6504863220374e27c5800f9048011f1a740f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 //$RUNTIME_NOAPPS = true;
 
-require_once('../../../lib/base.php');
 OC_JSON::checkAppEnabled('files_sharing');
 require_once('../lib_share.php');
 
index 38b673ee51b585ebccbf7f9145a3d26a530fef94..cc22a0cd1a79d45a02c4a6d8172e190475283c97 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 //$RUNTIME_NOAPPS = true;
 
-require_once('../../../lib/base.php');
 
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('files_sharing');
index 721620dc92253b3c8313272380972d5e8c0f0288..a9006faf1a92a288254a207ee571fc9c705b2a06 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-require_once('../../lib/base.php');
+
 require_once('lib_share.php');
 
 OC_Util::checkLoggedIn();
index 8ece844aa29fdf2d32a8345c45b5a3c3a0b565c4..a946e26f210f60a641dd569393c872fb5160819f 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 
 
 // Check if we are a user
index df90a68ca7a37af3ad16a20b1d12894f1172fb2f..436592c383f7417843a03396eda94c7af9ad487f 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 
 
 // Check if we are a user
index 57a948478f52d6f4c8f8b1e38a6a82843c14761c..9f67cc4b4e6f325381448ecb6ece468869801dcc 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 // Init owncloud
-require_once('../../../lib/base.php');
 
 
 // Check if we are a user
index cc93b7a1d17aa0ac33ab6410caa74c219269bf02..a0bfe77db5102a53111fcfacb01bec67035fabbf 100644 (file)
@@ -4,7 +4,7 @@
  * This file is licensed under the Affero General Public License version 3 or
  * later.
  */
-require_once('../../../lib/base.php');
 
 OC_JSON::checkLoggedIn();
 // Fetch current commit (or HEAD if not yet set)
index d1b2df9b00ff1fae2236b2ef075111013027f74b..dd8b924b1185552f4b25cbff8c2f677925b8724b 100644 (file)
@@ -4,7 +4,7 @@
  * This file is licensed under the Affero General Public License version 3 or
  * later.
  */
-require_once('../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 if(isset($_POST["file_versioning_head"])){
        OC_Preferences::setValue(OC_User::getUser(), 'files_versioning', 'head', $_POST["file_versioning_head"]);
index 152f5834bcb4130d7f0f1db203c13f0aa521bbf0..ca02c3ae2093fe99d5982fd665da4680e0a62fa3 100644 (file)
@@ -21,7 +21,7 @@
 * 
 */
 
-require_once('../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('gallery');
 
index 1b3ad48f561046574d6f3c7ffadcf5580196a8c5..98cf71ec14f49c27a6fc64505ae0fa864034fa11 100644 (file)
@@ -22,7 +22,7 @@
 */
 
 header('Content-type: text/html; charset=UTF-8') ;
-require_once('../../../lib/base.php');
 
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('gallery');
index fba85fa34ee8589336b45e172311d846aad3a866..ce56d652c6025746a246129edb6e1a53ed878389 100644 (file)
@@ -21,7 +21,7 @@
 * 
 */
 
-require_once('../../../lib/base.php');
 
 if (!isset($_GET['token']) || !isset($_GET['operation'])) {
   OC_JSON::error(array('cause' => 'Not enought arguments'));
index 184171f8fcadaad7eb5400aa575b6bf79fddd9bf..bf42fd2becb1d79af138481e01a14ad76ddde6f7 100644 (file)
@@ -21,7 +21,7 @@
 * 
 */
 
-require_once('../../../lib/base.php');
 OC_JSON::checkLoggedIn();
 OC_JSON::checkAppEnabled('gallery');
 
index 7de7c0941429aa0c0f922a51f112aa3d2cda97a0..8c45cfb19fc9bf3d1bfefd83d3781e09a69383df 100644 (file)
@@ -21,7 +21,7 @@
 * 
 */
 
-require_once('../../lib/base.php');
+
 
 OC_Util::checkLoggedIn();
 OC_Util::checkAppEnabled('gallery');
index ef361a3791319e0661c1e44b11754e4843d11541..efc545f0205ccd208945f156a3a0782524c93a5d 100644 (file)
@@ -92,7 +92,7 @@ class OC_Gallery_Album {
        }
 
        public static function changeThumbnailPath($oldname, $newname) {
-               require_once('../../../lib/base.php');
+                
                $thumbpath = OC::$CONFIG_DATADIRECTORY.'/../gallery/';
                rename($thumbpath.$oldname.'.png', $thumbpath.$newname.'.png');
        }
index 126298913be10ce71e93ce5bfbdda8c2b8f70d71..6f3959a342d4701e6c7ff276ea1bbcf37d4adc70 100644 (file)
@@ -22,7 +22,7 @@
 */
 
 if (file_exists('../../../lib/base.php'))
-  require_once('../../../lib/base.php');
+   
 elseif (file_exists('lib/base.php'))
   require_once('lib/base.php');
 
index d7430becf4329b4c8c8efd87976f932520b0a7a1..2739f63d4e0599723e7eea0c7e6206a1c90e3fea 100644 (file)
@@ -25,7 +25,7 @@ if (!isset($_GET['token']) || empty($_GET['token'])) {
   exit;
 }
 
-require_once('../../lib/base.php');
+
 
 OC_Util::checkAppEnabled('gallery');
 
index 9d9c14deb1705d02977e0b92d9f04a3314fba2ca..72235bf5db8c7934a84e890374fd1c563f8810d9 100644 (file)
@@ -23,7 +23,7 @@
 
 header('Content-type: text/html; charset=UTF-8') ;
 
-require_once('../../../lib/base.php');
 OC_JSON::checkAppEnabled('media');
 require_once('../lib_collection.php');
 require_once('../lib_scanner.php');
index a78b5e25dd1290f83b4d45506e1991130ae0b5ab..ea7c5006e7046bcde3349b594b9eaa0ef54f2311 100644 (file)
@@ -27,7 +27,7 @@ header('Content-type: text/html; charset=UTF-8') ;
 $RUNTIME_NOAPPS=true;
 $RUNTIME_NOSETUPFS=true;
 
-require_once('../../../lib/base.php');
 OC_JSON::checkAppEnabled('media');
 
 $autoUpdate=(isset($_GET['autoupdate']) and $_GET['autoupdate']=='true');
index 419d4ae0bde1bbc70ef0be4232201132236fc23f..f51d62b77cd4f71357378ec03e53c880e7b55fda 100644 (file)
@@ -22,7 +22,7 @@
 */
 
 
-require_once('../../lib/base.php');
+
 
 // Check if we are a user
 OC_Util::checkLoggedIn();
index cb9b68fc4224462444248e5e380c52c258492e6c..83339c91af131dbde8513136137770e537be56fb 100644 (file)
@@ -22,7 +22,7 @@
 */
 
 
-require_once('../../../lib/base.php');
 OC_Util::checkAppEnabled('media');
 require_once('../lib_collection.php');
 require_once('../lib_ampache.php');
index 6dd41233f12929f8c5deb6a67ae747e7a02ebe5c..1ff2599e10317cad01a4ed1b84f08e5d4349536d 100644 (file)
@@ -23,7 +23,7 @@
 
 $_POST=$_GET; //debug
 
-require_once('../../lib/base.php');
+
 OC_JSON::checkAppEnabled('media');
 require_once('lib_collection.php');
 
index cad465181a985488f5a70369f673e06c39b3988b..3522d1ed68349ac6552c18f7b9934b9a3567c745 100644 (file)
@@ -29,7 +29,7 @@
 // Do not load FS ...
 $RUNTIME_NOSETUPFS = true;
 
-require_once('../../lib/base.php');
+
 OC_Util::checkAppEnabled('remoteStorage');
 require_once('Sabre/autoload.php');
 require_once('lib_remoteStorage.php');
index ca56cf560ecdc868ee3f2e21a09d92673298b255..376fe29b3e7c66309f7e6e38277fee3a60f031f8 100644 (file)
@@ -29,7 +29,7 @@
 // Do not load FS ...
 $RUNTIME_NOSETUPFS = true;
 
-require_once('../../../lib/base.php');
 OC_Util::checkAppEnabled('remoteStorage');
 require_once('Sabre/autoload.php');
 require_once('../lib_remoteStorage.php');
index c00f9d5555cbe8c4f25a2697cca2ab17d4a5c496..d2b9eece35bdb60cc05f33a2a339696336e9f6f8 100644 (file)
@@ -29,7 +29,7 @@
 // Do not load FS ...
 $RUNTIME_NOSETUPFS = true;
 
-require_once('../../lib/base.php');
+
 OC_Util::checkAppEnabled('remoteStorage');
 require_once('Sabre/autoload.php');
 require_once('lib_remoteStorage.php');
index 86745d6b1629efe2a8e9075a98370e988052bd70..99503cad142ce80523f271f9a87437bd3a67405d 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 // Init owncloud
-require_once('../../../lib/base.php');
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 9ada473ca875c7d35df18caab63da8020f96df95..51686111bf77709c5113afca0c45e406a0d71b7b 100644 (file)
@@ -25,7 +25,7 @@ $SUBURI=substr(realpath($_SERVER["SCRIPT_FILENAME"]),strlen($SERVERROOT));
 $WEBROOT=substr($SUBURI,0,-34);
 */
 
-require_once('../../lib/base.php');
+
 $request = urldecode($_GET['q']);
 if($_GET['q']) {
        $reqParts = explode('@', $request);
index f815d710631f81a1ccf6a50acf391f77cc13b199..41e421b2fe4b2a3410e05a92529848ce902b9cf4 100644 (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;
index cc15102bbc343ece229cfe21bde953fc9638a325..ba079e2dae122b13989f558fe9c280fb0ddde0f1 100644 (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'])){
index a6433b1964afd4a0d6c9090c7007e374a5a583af..3091926095ff53eee1e98c08136cb6ff8e0a4b0e 100644 (file)
@@ -22,7 +22,7 @@
 */
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 $app = $_POST["app"];
 
index c8168eaf460869eca114f43a218eb2720157b020..d9910d5a98f378e9fab91b880ef50d5bb69d267c 100644 (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'])){
index 258bd50fcad01bd14838e507ecee2856b5418a28..a55c54a9a46d3d668d99d7e9e4d1b9f45082478e 100644 (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"');
index a58489228d81ede597e59b365980452278821ea0..b0183af7fc5a3294146074ddf8965ce3d6c20704 100644 (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;
index 75def433d30289f15fd03fa8f7b616d13cf71371..f96add3d8c323ade404c3a83e3dd8a3f22100eba 100644 (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;
index 252b3d3454c9d143baaa40b76a31b0044e63fe9f..5b346bef28cdbbecd831984dd20ec429ec357a7f 100644 (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;
 
index 89bb6cfa794ec07fde85792fe561122089901548..1400ec67cab9a1eec363a6e86f322e9ef8fccfb0 100644 (file)
@@ -7,7 +7,7 @@
 */
 
 $RUNTIME_NOAPPS = TRUE; //no apps
-require_once('../../lib/base.php');
+
 
 // Someone lost their password:
 if (isset($_POST['user'])) {
index 1c78d720947a7c5501ff74080808dbc3622f6601..5f16e854f42b6fde624b6771b7f1e3cd09f5ef48 100644 (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']) {
index 8d7a5b482bd490903705b1661c586d4339f2ab9b..8cdb6188a022f6d2dee9867d0386b0ae93893652 100644 (file)
@@ -3,7 +3,7 @@
 
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkLoggedIn();
 
index 1725201fdd9e4541bce45d4334c6c86be60f274b..d8a01d7acf1c3731b30f88a559bb31745d52aa56 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkLoggedIn();
 
index 39852613ab95ae10dd86fd86b7e07e029dc1d7db..65c04c36fafd655b06c849e379d05ec55c637f9c 100644 (file)
@@ -25,7 +25,7 @@
 $RUNTIME_APPTYPES=array('filesystem');
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 // Check if we are a user
 OC_Util::checkLoggedIn();
index ec9ab7342dd94df17585afc359de882816c375c0..83914332a7daea3a9b1584c9c48434e90d857150 100644 (file)
@@ -4,7 +4,7 @@
 $RUNTIME_APPTYPES=array('filesystem');
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkLoggedIn();
 
index ff72ba0f5b76af7142000c5b981a7f60dc6f6d22..57898cd82d9c09f68289284c6a8e2a19c3573244 100644 (file)
@@ -4,7 +4,7 @@
 $RUNTIME_NOAPPS=false;
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 print OC_Helper::mimetypeIcon($_GET['mime']);
 
index 9af3f80208f5e0b8d31e8f00279a39efcc222ede..0ad314f873c26b20606bdadd26461b0a9a74d17d 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkLoggedIn();
 
index 2d1372f06ee5fb8d40c57233fd6b964d9a9d6d5e..472b577a32a23254e2c95454c78db850cc3fe419 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkLoggedIn();
 
index 228e369fbef95c336dfd6426470a9a0951f2bbb9..2aff95e5b357afed91c55ad00624deeac142e3fc 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkLoggedIn();
 
index e02c5b6273342930cbb70695cc23f8931e48c50d..8f1990d1b8ff694a4bbb87123bacc03e4094bd21 100644 (file)
@@ -4,7 +4,7 @@
 $RUNTIME_APPTYPES=array('filesystem');
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 require_once('../../lib/template.php');
 
 OC_JSON::checkLoggedIn();
index a51b36635b376694166ab1914c8ab6004b24f2e3..dc5d3962abd7c3160bf5273a4ae4fad1c240553e 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkLoggedIn();
 
index b04796e3248591ae38a61397b1b708facb946248..c60e1a3752ac28be021b7cba3481eb5c0b799a7f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 // Firefox and Konqueror tries to download application/json for me.  --Arthur
 OC_JSON::setContentTypeHeader('text/plain');
index 326724d60c4f4787d55a49425c033c50bb9d9ca5..8f89256b82714524bfb45a3032e357677d6be894 100644 (file)
@@ -23,7 +23,7 @@
 
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 // Check if we are a user
 OC_JSON::checkLoggedIn();
index 860ea987871af323373ebff7a73e245e58655db9..0ed3c4919f5d92f99e52ae2b2cd3912e199aebd5 100644 (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"];
index 57d82e7bd94599f16002385cf1de2f8bcc5f82b0..faeccf48b5821c91029ce97dbb20c47ba2a1003f 100644 (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' )){
index 1ed53efcf062f1c5bc6b3a3b420e81a22d8311b6..e1eb1a78669d956a57b8a092b4cad85912caf1f1 100644 (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' )){
index 53e9be379e19eae172eff3b15215a60425060c66..859c293722b16907d28c43ce9e01122900312e32 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Init owncloud
-require_once('../../lib/base.php');
+
 OC_JSON::checkAdminUser();
 OC_JSON::setContentTypeHeader();
 
index cb116ebe4e84bf1a3e88431d684f12ec03ad8d55..bebcbcc903fa4ca6c6ae2f58691251d62778007f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 OC_JSON::checkAdminUser();
 OC_JSON::setContentTypeHeader();
 
index ed48b2cae1ad14af1f4cfdb8e6b02375ed590832..bcb05fdd02b3ff405d942c7ac46b5c2377479982 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkAdminUser();
 
index 5874dec9647d67323123d941dc5bbfe9002d71d3..4368566992cd1cf721d85a86121fb4c042590722 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkLoggedIn();
 
index 58d071255c205c0c10224e23b836399460bf654b..712f5b652feb252ef9c3657386bf453b12098d36 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 $l=OC_L10N::get('settings');
 
index 4d3647818949f28d323aeef433082a8918465b89..73f86061e3f01c0b550549a0060fee570d06196f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkAdminUser();
 
index 2c288997a1f2467e8db132d6d1855fe2da264e3f..325549ba3b5316a81c5f3daf47717aaf49a21198 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkAdminUser();
 
index e3b00c3bc8073b980949fc8dafb925755bd54d34..bcdc3bc1338f1127c9450370c92ae754e18e1cc7 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 $l=OC_L10N::get('settings');
 
index 298cbd64738fb1f0629c44af08eb20eed855c614..6383ce3c80850f212dbbf85c8ad70daa36e9ba59 100644 (file)
@@ -5,7 +5,7 @@
  * See the COPYING-README file.
  */
 
-require_once('../../lib/base.php');
+
 OC_Util::checkAdminUser();
 
 OC_Config::setValue( 'loglevel', $_POST['level'] );
index f59017600ac5b991069a2b057ed63fcea14cb7e0..0e2ca31f1470981d56ace0b03bd100b85dceb62c 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkAdminUser();
 
index 3ee3239dd89ddcc42adb97712d0250dd5f3b2a2a..9449261af7c10be8a3b3a63a0857536a23d641bf 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 // Init owncloud
-require_once('../../lib/base.php');
+
 
 OC_JSON::checkAdminUser();