apps.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * @author Bart Visscher <bartv@thisnet.nl>
  4. * @author Frank Karlitschek <frank@owncloud.org>
  5. * @author Jan-Christoph Borchardt <hey@jancborchardt.net>
  6. * @author Lukas Reschke <lukas@owncloud.com>
  7. * @author Morris Jobke <hey@morrisjobke.de>
  8. * @author Robin Appelman <icewind@owncloud.com>
  9. * @author Thomas Müller <thomas.mueller@tmit.eu>
  10. *
  11. * @copyright Copyright (c) 2015, ownCloud, Inc.
  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. OC_Util::checkAdminUser();
  28. \OC::$server->getSession()->close();
  29. // Load the files we need
  30. \OC_Util::addVendorScript('handlebars/handlebars');
  31. \OCP\Util::addScript("settings", "settings");
  32. \OCP\Util::addStyle("settings", "settings");
  33. \OC_Util::addVendorScript('select2/select2');
  34. \OC_Util::addVendorStyle('select2/select2');
  35. \OCP\Util::addScript("settings", "apps");
  36. \OC_App::setActiveNavigationEntry( "core_apps" );
  37. $tmpl = new OC_Template( "settings", "apps", "user" );
  38. $tmpl->printPage();