You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

list.php 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Bart Visscher <bartv@thisnet.nl>
  6. * @author Björn Schießle <bjoern@schiessle.org>
  7. * @author Christoph Wurst <christoph@winzerhof-wurst.at>
  8. * @author John Molakvoæ <skjnldsv@protonmail.com>
  9. * @author Roeland Jago Douma <roeland@famdouma.nl>
  10. * @author Vincent Petry <vincent@nextcloud.com>
  11. *
  12. * @license AGPL-3.0
  13. *
  14. * This code is free software: you can redistribute it and/or modify
  15. * it under the terms of the GNU Affero General Public License, version 3,
  16. * as published by the Free Software Foundation.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU Affero General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU Affero General Public License, version 3,
  24. * along with this program. If not, see <http://www.gnu.org/licenses/>
  25. *
  26. */
  27. // Check if we are a user
  28. OC_Util::checkLoggedIn();
  29. $config = \OC::$server->getConfig();
  30. $userSession = \OC::$server->getUserSession();
  31. $showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
  32. $isIE = OC_Util::isIe();
  33. $tmpl = new OCP\Template('files_trashbin', 'index', '');
  34. // gridview not available for ie
  35. $tmpl->assign('showgridview', $showgridview && !$isIE);
  36. OCP\Util::addScript('files_trashbin', 'files_trashbin');
  37. $tmpl->printPage();