app.php 887 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright (c) 2012 Bart Visscher <bartv@thisnet.nl>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. OC::$CLASSPATH['OC_Files_Sharing_Log'] = 'apps/files_sharing_log/log.php';
  9. $l=new OC_L10N('files_sharing_log');
  10. OCP\App::addNavigationEntry( array(
  11. 'id' => 'files_sharing_log_index',
  12. 'order' => 5,
  13. 'href' => OCP\Util::linkTo( 'files_sharing_log', 'index.php' ),
  14. 'icon' => OCP\Util::imagePath( 'files_sharing_log', 'icon.png' ),
  15. 'name' => $l->t('Shared files log'))
  16. );
  17. OCP\Util::connectHook('OC_Filestorage_Shared', 'fopen', 'OC_Files_Sharing_Log', 'fopen');
  18. OCP\Util::connectHook('OC_Filestorage_Shared', 'file_get_contents', 'OC_Files_Sharing_Log', 'file_get_contents');
  19. OCP\Util::connectHook('OC_Filestorage_Shared', 'file_put_contents', 'OC_Files_Sharing_Log', 'file_put_contents');