index.php 643 B

12345678910111213141516171819202122
  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. OCP\User::checkLoggedIn();
  9. OCP\App::checkAppEnabled('files_sharing_log');
  10. OCP\App::setActiveNavigationEntry('files_sharing_log_index');
  11. OCP\Util::addStyle('files_sharing_log', 'style');
  12. $query = OCP\DB::prepare('SELECT * FROM *PREFIX*sharing_log WHERE user_id = ?');
  13. $log = $query->execute(array(OCP\User::getUser()))->fetchAll();
  14. $output = new OCP\Template('files_sharing_log', 'index', 'user');
  15. $output->assign('log', $log);
  16. $output->printPage();