Răsfoiți Sursa

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

Georg Ehrke 12 ani în urmă
părinte
comite
69ee0efc0b
100 a modificat fișierele cu 100 adăugiri și 100 ștergeri
  1. 1 1
      apps/bookmarks/addBm.php
  2. 1 1
      apps/bookmarks/ajax/addBookmark.php
  3. 1 1
      apps/bookmarks/ajax/delBookmark.php
  4. 1 1
      apps/bookmarks/ajax/editBookmark.php
  5. 1 1
      apps/bookmarks/ajax/recordClick.php
  6. 1 1
      apps/bookmarks/ajax/updateList.php
  7. 1 1
      apps/bookmarks/index.php
  8. 1 1
      apps/calendar/ajax/calendar/activation.php
  9. 1 1
      apps/calendar/ajax/calendar/delete.php
  10. 1 1
      apps/calendar/ajax/calendar/edit.form.php
  11. 1 1
      apps/calendar/ajax/calendar/edit.php
  12. 1 1
      apps/calendar/ajax/calendar/new.form.php
  13. 1 1
      apps/calendar/ajax/calendar/new.php
  14. 1 1
      apps/calendar/ajax/calendar/overview.php
  15. 1 1
      apps/calendar/ajax/calendar/update.php
  16. 1 1
      apps/calendar/ajax/categories/rescan.php
  17. 1 1
      apps/calendar/ajax/changeview.php
  18. 1 1
      apps/calendar/ajax/event/delete.php
  19. 1 1
      apps/calendar/ajax/event/edit.form.php
  20. 1 1
      apps/calendar/ajax/event/edit.php
  21. 1 1
      apps/calendar/ajax/event/move.php
  22. 1 1
      apps/calendar/ajax/event/new.form.php
  23. 1 1
      apps/calendar/ajax/event/new.php
  24. 1 1
      apps/calendar/ajax/event/resize.php
  25. 1 1
      apps/calendar/ajax/events.php
  26. 1 1
      apps/calendar/ajax/import/dialog.php
  27. 1 1
      apps/calendar/ajax/import/import.php
  28. 1 1
      apps/calendar/ajax/settings/getfirstday.php
  29. 1 1
      apps/calendar/ajax/settings/gettimezonedetection.php
  30. 1 1
      apps/calendar/ajax/settings/guesstimezone.php
  31. 1 1
      apps/calendar/ajax/settings/setfirstday.php
  32. 1 1
      apps/calendar/ajax/settings/settimeformat.php
  33. 1 1
      apps/calendar/ajax/settings/settimezone.php
  34. 1 1
      apps/calendar/ajax/settings/timeformat.php
  35. 1 1
      apps/calendar/ajax/settings/timezonedetection.php
  36. 1 1
      apps/calendar/ajax/share/changepermission.php
  37. 1 1
      apps/calendar/ajax/share/dropdown.php
  38. 1 1
      apps/calendar/ajax/share/share.php
  39. 1 1
      apps/calendar/ajax/share/unshare.php
  40. 1 1
      apps/calendar/caldav.php
  41. 1 1
      apps/calendar/export.php
  42. 1 1
      apps/calendar/import.php
  43. 1 1
      apps/calendar/index.php
  44. 1 1
      apps/calendar/resettimezone.php
  45. 1 1
      apps/contacts/ajax/activation.php
  46. 1 1
      apps/contacts/ajax/addbook.php
  47. 1 1
      apps/contacts/ajax/addcontact.php
  48. 1 1
      apps/contacts/ajax/addproperty.php
  49. 1 1
      apps/contacts/ajax/categories/categoriesfor.php
  50. 1 1
      apps/contacts/ajax/categories/delete.php
  51. 1 1
      apps/contacts/ajax/categories/list.php
  52. 1 1
      apps/contacts/ajax/categories/rescan.php
  53. 1 1
      apps/contacts/ajax/chooseaddressbook.php
  54. 1 1
      apps/contacts/ajax/contactdetails.php
  55. 1 1
      apps/contacts/ajax/contacts.php
  56. 1 1
      apps/contacts/ajax/createaddressbook.php
  57. 1 1
      apps/contacts/ajax/cropphoto.php
  58. 1 1
      apps/contacts/ajax/deletebook.php
  59. 1 1
      apps/contacts/ajax/deletecard.php
  60. 1 1
      apps/contacts/ajax/deleteproperty.php
  61. 1 1
      apps/contacts/ajax/editaddress.php
  62. 1 1
      apps/contacts/ajax/editaddressbook.php
  63. 1 1
      apps/contacts/ajax/editname.php
  64. 1 1
      apps/contacts/ajax/getdetails.php
  65. 1 1
      apps/contacts/ajax/importdialog.php
  66. 1 1
      apps/contacts/ajax/loadcard.php
  67. 1 1
      apps/contacts/ajax/loadintro.php
  68. 1 1
      apps/contacts/ajax/loadphoto.php
  69. 1 1
      apps/contacts/ajax/newcontact.php
  70. 1 1
      apps/contacts/ajax/savecrop.php
  71. 1 1
      apps/contacts/ajax/saveproperty.php
  72. 1 1
      apps/contacts/ajax/updateaddressbook.php
  73. 1 1
      apps/contacts/ajax/uploadphoto.php
  74. 1 1
      apps/contacts/carddav.php
  75. 1 1
      apps/contacts/dynphoto.php
  76. 1 1
      apps/contacts/export.php
  77. 1 1
      apps/contacts/import.php
  78. 1 1
      apps/contacts/index.php
  79. 1 1
      apps/contacts/photo.php
  80. 1 1
      apps/contacts/thumbnail.php
  81. 1 1
      apps/external/ajax/setsites.php
  82. 1 1
      apps/external/index.php
  83. 1 1
      apps/files_sharing/ajax/getitem.php
  84. 1 1
      apps/files_sharing/ajax/setpermissions.php
  85. 1 1
      apps/files_sharing/ajax/share.php
  86. 1 1
      apps/files_sharing/ajax/unshare.php
  87. 1 1
      apps/files_sharing/ajax/userautocomplete.php
  88. 1 1
      apps/files_sharing/list.php
  89. 1 1
      apps/files_texteditor/ajax/loadfile.php
  90. 1 1
      apps/files_texteditor/ajax/mtime.php
  91. 1 1
      apps/files_texteditor/ajax/savefile.php
  92. 1 1
      apps/files_versioning/ajax/gethead.php
  93. 1 1
      apps/files_versioning/ajax/sethead.php
  94. 1 1
      apps/gallery/ajax/createAlbum.php
  95. 1 1
      apps/gallery/ajax/galleryOp.php
  96. 1 1
      apps/gallery/ajax/sharing.php
  97. 1 1
      apps/gallery/ajax/thumbnail.php
  98. 1 1
      apps/gallery/index.php
  99. 1 1
      apps/gallery/lib/album.php
  100. 1 1
      apps/gallery/lib/images_utils.php

+ 1 - 1
apps/bookmarks/addBm.php

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

+ 1 - 1
apps/bookmarks/ajax/addBookmark.php

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

+ 1 - 1
apps/bookmarks/ajax/delBookmark.php

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

+ 1 - 1
apps/bookmarks/ajax/editBookmark.php

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

+ 1 - 1
apps/bookmarks/ajax/recordClick.php

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

+ 1 - 1
apps/bookmarks/ajax/updateList.php

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

+ 1 - 1
apps/bookmarks/index.php

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

+ 1 - 1
apps/calendar/ajax/calendar/activation.php

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

+ 1 - 1
apps/calendar/ajax/calendar/delete.php

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

+ 1 - 1
apps/calendar/ajax/calendar/edit.form.php

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

+ 1 - 1
apps/calendar/ajax/calendar/edit.php

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

+ 1 - 1
apps/calendar/ajax/calendar/new.form.php

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

+ 1 - 1
apps/calendar/ajax/calendar/new.php

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

+ 1 - 1
apps/calendar/ajax/calendar/overview.php

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

+ 1 - 1
apps/calendar/ajax/calendar/update.php

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

+ 1 - 1
apps/calendar/ajax/categories/rescan.php

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

+ 1 - 1
apps/calendar/ajax/changeview.php

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

+ 1 - 1
apps/calendar/ajax/event/delete.php

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

+ 1 - 1
apps/calendar/ajax/event/edit.form.php

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

+ 1 - 1
apps/calendar/ajax/event/edit.php

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

+ 1 - 1
apps/calendar/ajax/event/move.php

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

+ 1 - 1
apps/calendar/ajax/event/new.form.php

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

+ 1 - 1
apps/calendar/ajax/event/new.php

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

+ 1 - 1
apps/calendar/ajax/event/resize.php

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

+ 1 - 1
apps/calendar/ajax/events.php

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

+ 1 - 1
apps/calendar/ajax/import/dialog.php

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

+ 1 - 1
apps/calendar/ajax/import/import.php

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

+ 1 - 1
apps/calendar/ajax/settings/getfirstday.php

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

+ 1 - 1
apps/calendar/ajax/settings/gettimezonedetection.php

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

+ 1 - 1
apps/calendar/ajax/settings/guesstimezone.php

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

+ 1 - 1
apps/calendar/ajax/settings/setfirstday.php

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

+ 1 - 1
apps/calendar/ajax/settings/settimeformat.php

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

+ 1 - 1
apps/calendar/ajax/settings/settimezone.php

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

+ 1 - 1
apps/calendar/ajax/settings/timeformat.php

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

+ 1 - 1
apps/calendar/ajax/settings/timezonedetection.php

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

+ 1 - 1
apps/calendar/ajax/share/changepermission.php

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

+ 1 - 1
apps/calendar/ajax/share/dropdown.php

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

+ 1 - 1
apps/calendar/ajax/share/share.php

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

+ 1 - 1
apps/calendar/ajax/share/unshare.php

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

+ 1 - 1
apps/calendar/caldav.php

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

+ 1 - 1
apps/calendar/export.php

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

+ 1 - 1
apps/calendar/import.php

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

+ 1 - 1
apps/calendar/index.php

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

+ 1 - 1
apps/calendar/resettimezone.php

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

+ 1 - 1
apps/contacts/ajax/activation.php

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

+ 1 - 1
apps/contacts/ajax/addbook.php

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

+ 1 - 1
apps/contacts/ajax/addcontact.php

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

+ 1 - 1
apps/contacts/ajax/addproperty.php

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

+ 1 - 1
apps/contacts/ajax/categories/categoriesfor.php

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

+ 1 - 1
apps/contacts/ajax/categories/delete.php

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

+ 1 - 1
apps/contacts/ajax/categories/list.php

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

+ 1 - 1
apps/contacts/ajax/categories/rescan.php

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

+ 1 - 1
apps/contacts/ajax/chooseaddressbook.php

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

+ 1 - 1
apps/contacts/ajax/contactdetails.php

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

+ 1 - 1
apps/contacts/ajax/contacts.php

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

+ 1 - 1
apps/contacts/ajax/createaddressbook.php

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

+ 1 - 1
apps/contacts/ajax/cropphoto.php

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

+ 1 - 1
apps/contacts/ajax/deletebook.php

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

+ 1 - 1
apps/contacts/ajax/deletecard.php

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

+ 1 - 1
apps/contacts/ajax/deleteproperty.php

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

+ 1 - 1
apps/contacts/ajax/editaddress.php

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

+ 1 - 1
apps/contacts/ajax/editaddressbook.php

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

+ 1 - 1
apps/contacts/ajax/editname.php

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

+ 1 - 1
apps/contacts/ajax/getdetails.php

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

+ 1 - 1
apps/contacts/ajax/importdialog.php

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

+ 1 - 1
apps/contacts/ajax/loadcard.php

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

+ 1 - 1
apps/contacts/ajax/loadintro.php

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

+ 1 - 1
apps/contacts/ajax/loadphoto.php

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

+ 1 - 1
apps/contacts/ajax/newcontact.php

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

+ 1 - 1
apps/contacts/ajax/savecrop.php

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

+ 1 - 1
apps/contacts/ajax/saveproperty.php

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

+ 1 - 1
apps/contacts/ajax/updateaddressbook.php

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

+ 1 - 1
apps/contacts/ajax/uploadphoto.php

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

+ 1 - 1
apps/contacts/carddav.php

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

+ 1 - 1
apps/contacts/dynphoto.php

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

+ 1 - 1
apps/contacts/export.php

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

+ 1 - 1
apps/contacts/import.php

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

+ 1 - 1
apps/contacts/index.php

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

+ 1 - 1
apps/contacts/photo.php

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

+ 1 - 1
apps/contacts/thumbnail.php

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

+ 1 - 1
apps/external/ajax/setsites.php

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

+ 1 - 1
apps/external/index.php

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

+ 1 - 1
apps/files_sharing/ajax/getitem.php

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

+ 1 - 1
apps/files_sharing/ajax/setpermissions.php

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

+ 1 - 1
apps/files_sharing/ajax/share.php

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

+ 1 - 1
apps/files_sharing/ajax/unshare.php

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

+ 1 - 1
apps/files_sharing/ajax/userautocomplete.php

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

+ 1 - 1
apps/files_sharing/list.php

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

+ 1 - 1
apps/files_texteditor/ajax/loadfile.php

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

+ 1 - 1
apps/files_texteditor/ajax/mtime.php

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

+ 1 - 1
apps/files_texteditor/ajax/savefile.php

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

+ 1 - 1
apps/files_versioning/ajax/gethead.php

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

+ 1 - 1
apps/files_versioning/ajax/sethead.php

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

+ 1 - 1
apps/gallery/ajax/createAlbum.php

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

+ 1 - 1
apps/gallery/ajax/galleryOp.php

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

+ 1 - 1
apps/gallery/ajax/sharing.php

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

+ 1 - 1
apps/gallery/ajax/thumbnail.php

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

+ 1 - 1
apps/gallery/index.php

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

+ 1 - 1
apps/gallery/lib/album.php

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

+ 1 - 1
apps/gallery/lib/images_utils.php

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

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff