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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save